|
|||
|
To connect to the database sqlserver with sql server authentication
sqlconnection cn=new sqlconnection("data source=xxx;database=yyy;user id=sa;password=zzz"); where xxx=server name, yyy= database name, zzz= password for sqlserver while u connect. if you wanna connect with windows authentication: sqlconnection cn=new sqlconnection("data source=xxx;database=yyy;trusted_connection=yes"); where xxx=server name, yyy= database name |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Help Needed to Connect to Database | cyrus | C and C++ | 1 | 06-28-2007 03:26 PM |
| Comp.software-eng FAQ (Part 0): periodic postings and archives | David Alex Lamb | Tech FAQ | 2 | 05-23-2004 06:15 AM |
| Comp.software-eng FAQ (Part 0): periodic postings and archives | David Alex Lamb | Tech FAQ | 3 | 04-18-2004 06:15 AM |
| Kerberos FAQ, v2.0 (last modified 8/18/2000) | Ken Hornstein | Tech FAQ | 0 | 04-17-2004 08:28 AM |
| [FAQ] FileMaker Pro - database for Macintosh and Windows | Martin Trautmann | Tech FAQ | 0 | 04-17-2004 08:26 AM |