none
ConnectionString RRS feed

  • Question

  • Hi Everyone,

     

       I am new to .net, I want to connect with database (MSSQL 2005) with WPF C# 3.5. Can anyone tell me how to find the connection string in my system?

     

    Thank You

     

    Thursday, February 14, 2008 7:54 AM

Answers


  • ConnectionString(" Data Source =" S+ystem.Enviroment.MechineName+" ; Initial Catalog= UserDataBaseName; Integrated Security =SSPI");
     What the problem with this.
    If it is not woking Then
    Data form the menue and create new DataBase from the database and See what is the Connction String

    I hope you will got your answer
    Thursday, February 14, 2008 10:43 AM

All replies


  • ConnectionString(" Data Source =" S+ystem.Enviroment.MechineName+" ; Initial Catalog= UserDataBaseName; Integrated Security =SSPI");
     What the problem with this.
    If it is not woking Then
    Data form the menue and create new DataBase from the database and See what is the Connction String

    I hope you will got your answer
    Thursday, February 14, 2008 10:43 AM
  • Ya

    Thank You

     

    Is there  any other way to find the connection string?

     

     

    Thursday, February 14, 2008 11:08 AM