2011-12-30 6 views

답변

0

다음 스 니펫을 시작해야합니다.

SQLConnectionStringBuilder bldr = new SQLConnectionStringBuilder   
    bldr.DataSource = "Server" //Put your server or server\instance name here. Likely YourComputerName\SQLExpress   
    bldr.InitialCatalog = "MyDB" //The database on the server that you want to connect to.   
    bldr.UserID = "SomeUser" //The user id   
    bldr.Password = "SomePassword" //The pwd for said user account 
SQLConnection myConnection = new SQLConnection(bldr.ConnectionString) 
관련 문제