PDA

View Full Version : MS SQL Connection


davidl
08-12-2004, 01:06 AM
Greetings,

I need some help with the SqlConnection. I am getting a
"[SqlException: SQL Server does not exist or access denied.]" when
performing an SqlConnection.Open();

I am using the connection string you provided, substituting the database password. The code I am using is:
connection = new SqlConnection();
connection.ConnectionString = "Data Source=mssql06;Initial Catalog=DB_83134;User ID=xxxxxxx;Password=xxxxxxx";

What am I doing wrong?

Regards,

David

bruce
08-12-2004, 06:52 AM
the code looks fine to me.

try create a support ticket, we may need to take a look at it from the server side.

[b]quote:Originally posted by davidl

Greetings,

I need some help with the SqlConnection. I am getting a
"[SqlException: SQL Server does not exist or access denied.]" when
performing an SqlConnection.Open();

I am using the connection string you provided, substituting the database password. The code I am using is:
connection = new SqlConnection();
connection.ConnectionString = "Data Source=mssql06;Initial Catalog=DB_83134;User ID=xxxxxxx;Password=xxxxxxx";

What am I doing wrong?

Regards,

David

</blockquote id="quote"></font id="quote">

B.

DiscountASP.NET
http://www.DiscountASP.NET