Log in
::
Register
::
Not logged in
Home
Tags
Articles
Editorials
Forums
Scripts
Videos
Blogs
QotD
Books
Ask SSC
SQL Jobs
Training
Authors
About us
Contact us
Newsletters
Advertise
Write for us
Recent Posts
Recent Posts
Popular Topics
Popular Topics
Home
Search
Members
Calendar
Who's On
Home
»
SQL Server 2005
»
Development
»
how to execute procedures one after the...
how to execute procedures one after the another in an script
Rate Topic
Display Mode
Topic Options
Author
Message
giri_engg2001
giri_engg2001
Posted Wednesday, September 24, 2008 9:55 AM
Forum Newbie
Group: General Forum Members
Last Login: Monday, September 29, 2008 4:42 AM
Points: 6,
Visits: 15
I have Script in which it contains one batch file followed by two procedures in it
my requirement is when we run script first batch file should run after completion of batch file run only it should go to 2nd ,3rd procedures
for example..
my script
declare @...
exec batch_file
exec proce2
exec proc 3
once completion of batch file execution the curosr should start execution of 2nd procedure
Post #575352
GSquared
GSquared
Posted Wednesday, September 24, 2008 11:21 AM
SSCrazy Eights
Group: General Forum Members
Last Login: Today @ 6:52 AM
Points: 8,685,
Visits: 4,956
I guess I don't understand the question. Stuff in a script is run in the order it's in the script.
If you have a batch, and then two procs, it will run the batch, and then run the two procs. In that order.
- GSquared
"Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon
Post #575434
Bhuvnesh
Bhuvnesh
Posted Thursday, September 25, 2008 3:55 AM
SSChasing Mays
Group: General Forum Members
Last Login: Today @ 7:03 AM
Points: 630,
Visits: 871
My dear
your example will get executed as u desired bcoz execution is done in the same sequence as u write in your sql script
-------Bhuvnesh----------
While 1 = 1 (Learning SQL....)
For Quick Result:
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
Speed up Databases Like Formula 1
=http://www.brentozar.com/sql-server-training-videos/t-sql-performance-tuning-for-race-car-drivers/
Post #575819
« Prev Topic
|
Next Topic »
Permissions
You
cannot
post new topics.
You
cannot
post topic replies.
You
cannot
post new polls.
You
cannot
post replies to polls.
You
cannot
edit your own topics.
You
cannot
delete your own topics.
You
cannot
edit other topics.
You
cannot
delete other topics.
You
cannot
edit your own posts.
You
cannot
edit other posts.
You
cannot
delete your own posts.
You
cannot
delete other posts.
You
cannot
post events.
You
cannot
edit your own events.
You
cannot
edit other events.
You
cannot
delete your own events.
You
cannot
delete other events.
You
cannot
send private messages.
You
cannot
send emails.
You
may
read topics.
You
cannot
rate topics.
You
cannot
vote within polls.
You
cannot
upload attachments.
You
may
download attachments.
You
cannot
post HTML code.
You
cannot
edit HTML code.
You
cannot
post IFCode.
You
cannot
post JavaScript.
You
cannot
post EmotIcons.
You
cannot
post or upload images.
Copyright © 2002-2010 Simple Talk Publishing. All Rights Reserved.
Privacy Policy.
Terms of Use