PC Review


Reply
Thread Tools Rate Thread

C# SqlConnection question in SQL Server 2000

 
 
Jason Huang
Guest
Posts: n/a
 
      23rd Jun 2006
Hi,

In our C# windows application, if we build up a SqlCommand array, saying
TestCommand [20].
And in the SqlCommand array, later on we try each TestCommand[0], ...,
TestCommand[19],
by testing the TestCommand[i].Transaction, TestCommand[i].ExecuteNonQuery().
Will this cause problems in our SQL Server 2000? What should I pay
attention to?
Thanks for help.


Jason


 
Reply With Quote
 
 
 
 
Nicholas Paldino [.NET/C# MVP]
Guest
Posts: n/a
 
      23rd Jun 2006
Jason,

It shouldn't be a problem on SQL Server 2000. Why do you think there
would be a problem? Is there a specific concern you have?


--
- Nicholas Paldino [.NET/C# MVP]
- (E-Mail Removed)

"Jason Huang" <(E-Mail Removed)> wrote in message
news:%23XWOa%(E-Mail Removed)...
> Hi,
>
> In our C# windows application, if we build up a SqlCommand array, saying
> TestCommand [20].
> And in the SqlCommand array, later on we try each TestCommand[0], ...,
> TestCommand[19],
> by testing the TestCommand[i].Transaction,
> TestCommand[i].ExecuteNonQuery().
> Will this cause problems in our SQL Server 2000? What should I pay
> attention to?
> Thanks for help.
>
>
> Jason
>
>



 
Reply With Quote
 
Jason Huang
Guest
Posts: n/a
 
      24th Jun 2006
Thanks Nicholas.
We have a SqlTransaction MyTrans, it is myConn.BeginTransaction().
All SqlCommand's ExecuteNonQuery on this MyTrans, if it doesn't work, the
MyTrans has to be Rollback.
Sayiny the TestCommand[0], ..., TestCommand[5].

But now the situation is if one of the TestCommand[i]'s ExecuteNonQuery
fails, the Rollback in the SQL Server has some problems and the whole SQL
Server 2000 just hanged.


"Nicholas Paldino [.NET/C# MVP]" <(E-Mail Removed)> ¼¶¼g©ó¶l¥ó·s»D:(E-Mail Removed)...
> Jason,
>
> It shouldn't be a problem on SQL Server 2000. Why do you think there
> would be a problem? Is there a specific concern you have?
>
>
> --
> - Nicholas Paldino [.NET/C# MVP]
> - (E-Mail Removed)
>
> "Jason Huang" <(E-Mail Removed)> wrote in message
> news:%23XWOa%(E-Mail Removed)...
>> Hi,
>>
>> In our C# windows application, if we build up a SqlCommand array, saying
>> TestCommand [20].
>> And in the SqlCommand array, later on we try each TestCommand[0], ...,
>> TestCommand[19],
>> by testing the TestCommand[i].Transaction,
>> TestCommand[i].ExecuteNonQuery().
>> Will this cause problems in our SQL Server 2000? What should I pay
>> attention to?
>> Thanks for help.
>>
>>
>> Jason
>>
>>

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Server 2000 Terminal Server 'Administrative Mode' question =?Utf-8?B?U3RlcGhlbg==?= Microsoft Windows 2000 1 30th Sep 2005 03:25 AM
Windows 2000 Server & 2003 Server Question =?Utf-8?B?TWFyYw==?= Microsoft Windows 2000 Networking 1 22nd Jul 2005 02:20 AM
SQLConnection question bnob Microsoft ASP .NET 10 9th Dec 2004 11:44 PM
sqlConnection question Mike D Microsoft C# .NET 1 8th Sep 2004 09:50 PM
SqlConnection Question Cor Ligthert Microsoft ADO .NET 9 25th Apr 2004 08:11 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:31 PM.