Applies to: the ADOExample.app from the Clarion 6.2 examples, SQL Server 2005 Express, Northwind sample database (2013). Other versions are not named.
Problem
The ADO example fails to log in with an error beginning "user not associated..." and code -2147467259. The same credentials and server name work in Management Studio Express. The connection string in the example reads: Provider=SQLOLEDB.1;Persist Security Info=False;User ID=sa;Initial Catalog=northwind;Data Source=server1 Replacing server1 with the poster's own server name did not help.
Solution
Data Sourcemust be the server name plus the instance name, typicallysqlserver\myinstanceormycomputername\someinstance.- The respondent pointed out that the string has a user id but no password.
- SQL Server Express installs with remote connections switched off by default, so enable them if the client is another machine.
- Another poster suggested reading a working connection string from a report wizard: the C8 report writer connects through OLEDB, and the "+" on its connection string shows the full text.
Caveats
- The poster thanked both respondents and planned to try the advice; he did not report the result.
- The first respondent advised spending little effort on ADO in Win32, because Microsoft planned to drop OLE DB, and using ODBC instead. The second said OLE DB is still useful short term and once worked where the ODBC driver did not for a FoxPro database with auto-incremented keys.
Today (2026)
Not re-tested. The server\instance form and the missing password are still plain connection-string facts; the OLE DB outlook in 2013 is a forecast the thread does not settle for today.
Sources: Lyle H. (Apr 2013, the question), Dennis E., Jon W. (Apr 2013) in softvelocity.clarion.databasedrivers.