D
Donnie Darko
I'm trying to understand SqlConnection(), SqlCommand()
For example. I use SqlConnection() as a parameter when I create a new
SqlCommand. Then I open SqlConnection(), then I execute the SqlCommand().
At that point I cannot use SqlConnection() again. Unless I .Close() it and
then .Open it right?
Then what is 'connection pooling' ?
Can't I run multiple SqlCommand()s on the same SqlConnection() somehow ?
For example. I use SqlConnection() as a parameter when I create a new
SqlCommand. Then I open SqlConnection(), then I execute the SqlCommand().
At that point I cannot use SqlConnection() again. Unless I .Close() it and
then .Open it right?
Then what is 'connection pooling' ?
Can't I run multiple SqlCommand()s on the same SqlConnection() somehow ?