I
Iwan Petrow
Hi,
I have an .net windows form application and sql server 2005.
In one of the functions I have one connection for a sqldatareader and
after that I want to use other connections to sql server (do some
things like insert and update statements).
At this moment I create other SqlConnection objects in this way :
SqlConnection newSqlConn=new
SqlConnection(basicSqlConnection.ConnectionString). And this procedure
two or three times.
Is there other possibilities to do this? (If it is possible to avoid so
many SqlConnections)?
Thanks.
I have an .net windows form application and sql server 2005.
In one of the functions I have one connection for a sqldatareader and
after that I want to use other connections to sql server (do some
things like insert and update statements).
At this moment I create other SqlConnection objects in this way :
SqlConnection newSqlConn=new
SqlConnection(basicSqlConnection.ConnectionString). And this procedure
two or three times.
Is there other possibilities to do this? (If it is possible to avoid so
many SqlConnections)?
Thanks.