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 2005 Forums
 Transact-SQL (2005)
 at end of sql file, exec automatic other sql file

Author  Topic 

Pherkad
Starting Member

23 Posts

Posted - 2007-04-03 : 11:00:44
i have two sql files.
- one with create table statements
- one with fill table statements.

when i execute the first .sql file, is there a command to let automatically execute the second script, at the end of the first?

X002548
Not Just a Number

15586 Posts

Posted - 2007-04-03 : 11:10:10
Sure, create a batt file with a buch of osql steps, or have a job with several steps for each file





Brett

8-)

Hint: Want your questions answered fast? Follow the direction in this link
http://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspx

Add yourself!
http://www.frappr.com/sqlteam



Go to Top of Page
   

- Advertisement -