September 22nd, 2003, 09:07 AM
Microsoft SQL Server Connection ?
iam new into MS SQL Server. I wanted to connect via Visual Studio NET C++ to the MS SQL Server. I got experience php and mysql but none in c++.
anyone can help me with code or links or tutorial ?
December 17th, 2003, 09:14 AM
Check out the SQLConnection Class.
Here is the syntax for C#:
public void CreateSqlConnection()
string myConnectString = "user id=sa;password=Jx$442pt;initial catalog=northwind;data source=mySQLServer;Connect Timeout=30";
SqlConnection myConnection = new SqlConnection(myConnectString);
Hope this helps.