>>Just a SWAG, but in the Data Source isn't the ".\" syntax referring to the local machine? Is the SQL server you're trying to attach to on the local machine, or a remote one? If remote you might need something like
Data Source=\\MachineName\InstanceName
>
>It is local.
>
>I also tried:
>
>
>lcSQLString=[Driver={SQL Server};Server=./SQLEXPRESS;Database=test;Trusted_Connection=yes;]
>lcSQLString=[Driver=SQL Server;Server=./SQLEXPRESS;Database=test;Trusted_Connection=yes;]
>lcSQLString=[Driver={SQL Server};Server=./SQLEXPRESS;Database=test;Integrated Security=SSPI;User Instance=yes;]
>lcSQLString=[Driver=SQL Server;Server=./SQLEXPRESS;Database=test;Integrated Security=SSPI;User Instance=yes;]
>
>
>I always get SQL Server does not exist or access denied.
Have you tried without the "./" in the server name?
Regards. Al
"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov
Neither a despot, nor a doormat, be
Every app wants to be a database app when it grows up