G
Guest
I'm having problem opening SqlConnection after MSDE reinstallation.
In the following snippet:
SqlConnection cnn = new System.Data.SqlClient.SqlConnection( );
cnn.ConnectionString = "Connect Timeout=30; Initial Catalog=master; Packet
Size=4096; Data Source=(local); User ID=sa; Password=abc"
cnn.Open( );
I'm getting exception -
'System.Data.SqlClient.SqlException'
Message:
'SQL Server does not exist or access denied.'
Call Stack:
at System.Data.SqlClient.ConnectionPool.GetConnection(Boolean&
isInTransaction)
at
System.Data.SqlClient.SqlConnectionPoolManager.GetPooledConnection(SqlConnectionString options, Boolean& isInTransaction)
at System.Data.SqlClient.SqlConnection.Open()
Whne I added "Pooling=false;" to connection string call stack changed as
well -
Call Stack:
at System.Data.SqlClient.SqlInternalConnection.OpenAndLogin()
at System.Data.SqlClient.SqlInternalConnection..ctor(SqlConnection
connection, SqlConnectionString connectionOptions)
at System.Data.SqlClient.SqlConnection.Open()
Any suggestions, please?
Thank you,
Eugene
In the following snippet:
SqlConnection cnn = new System.Data.SqlClient.SqlConnection( );
cnn.ConnectionString = "Connect Timeout=30; Initial Catalog=master; Packet
Size=4096; Data Source=(local); User ID=sa; Password=abc"
cnn.Open( );
I'm getting exception -
'System.Data.SqlClient.SqlException'
Message:
'SQL Server does not exist or access denied.'
Call Stack:
at System.Data.SqlClient.ConnectionPool.GetConnection(Boolean&
isInTransaction)
at
System.Data.SqlClient.SqlConnectionPoolManager.GetPooledConnection(SqlConnectionString options, Boolean& isInTransaction)
at System.Data.SqlClient.SqlConnection.Open()
Whne I added "Pooling=false;" to connection string call stack changed as
well -
Call Stack:
at System.Data.SqlClient.SqlInternalConnection.OpenAndLogin()
at System.Data.SqlClient.SqlInternalConnection..ctor(SqlConnection
connection, SqlConnectionString connectionOptions)
at System.Data.SqlClient.SqlConnection.Open()
Any suggestions, please?
Thank you,
Eugene