OLE DB connection to SQL Server, I can't get it to work
OLE DB connection to SQL Server, I can't get it to work
(OP)
I've just started using VB6. When adding a data environment to my project I have problems connecting to a SQL server database. I add a connection and try to set up the data link properties. I Select Microsoft OLE DB Provider for SQL Server, I can select the named server but cannot see or select any of the databases on it. I just typed in the database name. If I click test connection I get the message Test Connection Succeeded.
If I then add a command and try to set the properties I change Source of data to Table but can see no object names. I then get the message Operation requested by the application not supported by the provider.
However I can connect using the SQL builder at second attempt, first attempt I get message Query designer encountered a MS design tools error, unspecified error. If I close and reopen it works fine. I know I must be doing something wrong, but what ?
If I then add a command and try to set the properties I change Source of data to Table but can see no object names. I then get the message Operation requested by the application not supported by the provider.
However I can connect using the SQL builder at second attempt, first attempt I get message Query designer encountered a MS design tools error, unspecified error. If I close and reopen it works fine. I know I must be doing something wrong, but what ?
RE: OLE DB connection to SQL Server, I can't get it to work