Log in
::
Register
::
Not logged in
Home
Tags
Articles
Editorials
Stairways
Forums
Scripts
Videos
Blogs
QotD
Books
Ask SSC
SQL Jobs
Training
Authors
About us
Contact us
Newsletters
Write for us
Recent Posts
Recent Posts
Popular Topics
Popular Topics
Home
Search
Members
Calendar
Who's On
Home
»
SQL Server 7,2000
»
Administration
»
Problem while executing Query batch
Problem while executing Query batch
Rate Topic
Display Mode
Topic Options
Author
Message
harendra.singh
harendra.singh
Posted Tuesday, July 14, 2009 4:53 AM
Grasshopper
Group: General Forum Members
Last Login: Tuesday, March 01, 2011 3:14 AM
Points: 11,
Visits: 45
Im running batch of query using c# code.
each query is seperated by(;). When i excecute some deadlock type condition occurs.
Batch can be anything like
select * from tbl1;Update tbl2...; declare cursor... etc
So can we stop execution of batch if this contains (;)
Post #752570
Suresh B.
Suresh B.
Posted Tuesday, July 14, 2009 5:56 AM
Ten Centuries
Group: General Forum Members
Last Login: Wednesday, June 12, 2013 2:54 AM
Points: 1,076,
Visits: 5,128
Instead of running batch of query using C# code,
create a stored procedure with all these queries and call the stored procedure from the C# code.
Post #752598
LutzM
LutzM
Posted Tuesday, July 14, 2009 9:04 AM
SSCertifiable
Group: General Forum Members
Last Login: Wednesday, June 12, 2013 12:04 PM
Points: 6,739,
Visits: 12,167
triple post.
please see
here
and
here
. All posts have one answer so far, making it hard to tell where to continue if required...
Lutz
A pessimist is an optimist with experience.
How to get fast answers to your question
How to post performance related questions
Links for
Tally Table
,
Cross Tabs
and
Dynamic Cross Tabs
,
Delimited Split Function
Post #752748
« 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-2013 Simple Talk Publishing. All Rights Reserved.
Privacy Policy.
Terms of Use.
Report Abuse.