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.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Help

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.
Go to Top of Page

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 parameters
1.userid
2.password
3.servername

I want throw an error message when there is no parameter passed for servername..

Go to Top of Page

nr
SQLTeam MVY

12543 Posts

Posted - 2009-04-22 : 05:44:04
Is this in the batch file?

try

if (%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.
Go to Top of Page

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..
Go to Top of Page
   

- Advertisement -