I used to use DAO to connect to my SQL Server. How do I establish a connection to SQL Server using ODBCDirect?
For this, we need to create a new Connection object using the OpenConnection method. The new Connection object can be viewed as just a modified Database object, containing information about the connection, such as the server name, the data source name, and so on. The following code sample demonstrates a typically “preconnect” routine using ODBCDirect.
Related Questions
- Can standard coax cable be used to carry a network connection (i.e, can I connect my Ethernet cable to coax which is already throughout the house)?
- I used to use DAO to connect to my SQL Server. How do I establish a connection to SQL Server using ODBCDirect?
- Can one dircproxy connection class be used to connect to multiple servers?