Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
sqlfresher2k7
Aged Yak Warrior
623 Posts |
Posted - 2009-04-21 : 17:43:41
|
I want to create a batch file which i wants to include the scripts which contains create database, create tables,insert data scripts.Thanks for your help in advance !! |
|
nr
SQLTeam MVY
12543 Posts |
Posted - 2009-04-21 : 20:11:54
|
Which part of that are you stuck on?I usually create them as separate files then concatenate.==========================================Cursors are useful if you don't know sql.DTS can be used in a similar way.Beer is not cold and it isn't fizzy. |
|
|
sqlfresher2k7
Aged Yak Warrior
623 Posts |
Posted - 2009-04-21 : 21:16:54
|
I am struck with checking for the empty string..I am passing the parameters1.userid2.password3.servernameI want throw an error message when there is no parameter passed for servername.. |
|
|
nr
SQLTeam MVY
12543 Posts |
Posted - 2009-04-22 : 05:44:04
|
Is this in the batch file?tryif (%1) = () goto errorcode==========================================Cursors are useful if you don't know sql.DTS can be used in a similar way.Beer is not cold and it isn't fizzy. |
|
|
sqlfresher2k7
Aged Yak Warrior
623 Posts |
Posted - 2009-04-22 : 10:41:44
|
yes its in batch file.Thanks i will try with yur script.. |
|
|
|
|
|