471,306 Members | 1,268 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,306 software developers and data experts.

How to build several SqlCommands on one SqlConnection?

Hi,

In C# Windows Form, how to build several SqlCommands on one SqlConnection?
Would someone show me an exzmple?
Thanks for help.
Jason
Jan 22 '06 #1
1 1271
Hello Jason,

Lets say you have two commands, command1 and command2, you can always do
the following -

command1.Connection = _sqlConnection;
command2.Connection = _sqlConnection;

HTH,
r.
http://codebetter.com/blogs/ranjan.sakalley/
Hi,

In C# Windows Form, how to build several SqlCommands on one
SqlConnection?
Would someone show me an exzmple?
Thanks for help.
Jason

Jan 22 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

10 posts views Thread by Douglas Buchanan | last post: by
14 posts views Thread by Giovanni Bajo | last post: by
reply views Thread by Stephen Cairns | last post: by
3 posts views Thread by Hans | last post: by
8 posts views Thread by S. HP | last post: by
4 posts views Thread by Bob Garbados | last post: by
4 posts views Thread by Nawoct | last post: by
1 post views Thread by Matt Fielder | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.