SQL server 2005 database connection

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • xtianixm
    New Member
    • Jul 2007
    • 52

    SQL server 2005 database connection

    hi to all,

    how can i connect my application to the database

    i use SQL server 2005
  • slapshock
    New Member
    • Oct 2006
    • 57

    #2
    if you are using visual studio 2005..then this will help u...
    this code is in c#....

    using System.Data.Sql Client;

    string strConnect = "Data Source=(localho st); database=databa se name; UID=sa;PWD=" ;
    SqlConnection Conn = new SqlConnection(s trConnect);

    Comment

    Working...