.
SqlConnection sqlConnection1 = new SqlConnection("Data Source=" + SqlServer + ";Initial Catalog=DhcpDB;Persist Security Info=True;User ID=user");
.
SqlCommand selCommand = new SqlCommand(strSQL, sqlConnection1);
.
sqlConnection1.Open();
.
sqlConnection1.Close();
.
static extern short SQLConnect (int connectionHandle, string serverName,
.
Private Function SQLConnect(ByVal hDBc As IntPtr, ByVal servername As String, ByVal serverlen As Short, _
.
RetCode = SQLConnect(hdbc, "Northwind",-3,null,-3,null,-3);
.
Documentation
[SQLConnect] on MSDN
.
Summary
SQLDriverConnect is an alternative API to
SQLConnect . The difference is that it can popup the dialog to ask the user for more information about the connection
SQLDriverConnect is an alternative API to SQLConnect. The difference is that it can popup the dialog to ask the user for more information about the connection
6/26/2010 8:09:19 AM - Steve Waggoner-65.223.32.12
TODO - a short description
6/26/2010 8:16:28 AM - mbielanczuk-83.15.121.158