|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
sqlcmd examplesI am suprised - Googling found nothing. Does anyone have any sample scripts
they can share? Or have pointers to any? Thanks Chris Harrington Active Interface, LLC. http://www.activeinterface.com Take a look into
http://www.dbazine.com/sql/sql-articles/cook15 Thanks Hari Show quote "ChrisHarrington" wrote: > I am suprised - Googling found nothing. Does anyone have any sample scripts > they can share? Or have pointers to any? > > Thanks > > Chris Harrington > Active Interface, LLC. > http://www.activeinterface.com > > > Thanks. Good reference. I didn't know about "SQLCMD mode" in SQL mgmt
studio. Show quote "Hari Prasad" <HariPra***@discussions.microsoft.com> wrote in message news:2FD78705-3F3E-4126-A6B7-0342009C25D3@microsoft.com... > Take a look into > > http://www.dbazine.com/sql/sql-articles/cook15 > > Thanks > Hari > > "ChrisHarrington" wrote: > >> I am suprised - Googling found nothing. Does anyone have any sample >> scripts >> they can share? Or have pointers to any? >> >> Thanks >> >> Chris Harrington >> Active Interface, LLC. >> http://www.activeinterface.com >> >> >> It's just regular T-SQL. The same things you run in SSMS Query window
should run just fine in sqlcmd. SQLCMD also allows scripting variables. The docs for sqlcmd are here: http://msdn2.microsoft.com/en-us/library/ms162773.aspx Show quote "ChrisHarrington" <charrington-at-activeinterface.com> wrote in message news:eH5f9CSMHHA.3552@TK2MSFTNGP03.phx.gbl... >I am suprised - Googling found nothing. Does anyone have any sample scripts >they can share? Or have pointers to any? > > Thanks > > Chris Harrington > Active Interface, LLC. > http://www.activeinterface.com > > |
|||||||||||||||||||||||