CDatabase's connect string
-
Hello, If I have to provide CDatabase class with the connect string which gives me access to a database at the server or a PC then what should be my connect string (CString )? What info about the PC on the internet should I have ex port address, IP address etc? Prithaa
-
Hello, If I have to provide CDatabase class with the connect string which gives me access to a database at the server or a PC then what should be my connect string (CString )? What info about the PC on the internet should I have ex port address, IP address etc? Prithaa
You can provide the connection information with either the
CDatabase
or theCRecordset
object. A UNC path will be just fine.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
-
Hello, If I have to provide CDatabase class with the connect string which gives me access to a database at the server or a PC then what should be my connect string (CString )? What info about the PC on the internet should I have ex port address, IP address etc? Prithaa
Also, connect strings can vary by driver. For example - Using Connection String Keywords with SQL Native Client[^]
-
Hello, If I have to provide CDatabase class with the connect string which gives me access to a database at the server or a PC then what should be my connect string (CString )? What info about the PC on the internet should I have ex port address, IP address etc? Prithaa
I think you have to configure the proper ODBC first. And then provide the information in CDatabase::Open() function
Known is a drop, unknown is an ocean
-
I think you have to configure the proper ODBC first. And then provide the information in CDatabase::Open() function
Known is a drop, unknown is an ocean