MS SQL Connection

Discussion in 'Databases' started by davidl, Aug 12, 2004.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. 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
     
  2. Bruce

    Bruce DiscountASP.NET Staff

    the code looks fine to me.

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

    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
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page