Board index » delphi » SQL 2000 'Not associated with a trusted SQL Server Connection'

SQL 2000 'Not associated with a trusted SQL Server Connection'

Delphi5 Pro & ADOExpress //all current service packs applied.
Client using Windows2000 Pro SP2.

I'm converting a client app which was used to connect to SQL7
Server - we have now upgraded to SQL2000, but the app now
falls at the first hurdle. I've traced the problem down to
ADOConnection.open

I'm using a standard connectionstring:
ADOConnection1.ConnectionString := 'Provider=SQLOLEDB.1;'+
          'Password='+password+';'+
          'Persist Security Info=true;User ID='+user+';'+
          'Data Source='+ServerName;

- but it's producing the following error:

"Project X raised exception class EOleException with message
'Login failed for user 'username'. Reason : Not associated with
a trusted SQL Server connection'. Process stopped."

Has anyone any advice?

Regards,

AndyMG.

 

Re:SQL 2000 'Not associated with a trusted SQL Server Connection'


Quote
> "Project X raised exception class EOleException with message
> 'Login failed for user 'username'. Reason : Not associated with
> a trusted SQL Server connection'. Process stopped."

You can normally configure the SQL Server client to either take passwords,
or to work with trusted logins.  Check your client setup and you will
probably find that it requires trusted logins.  Simply change it to take
passwords or trusted logins.

Oliver

Re:SQL 2000 'Not associated with a trusted SQL Server Connection'


Start the SQL Server Enterprise
Right-Click on the your listed Server
Choose properties
select tab 'security'
change the settings of 'authentication' from 'Windows Only' to 'SQL Server
and Windows'

Freddy Biets

Quote
"AndyMG" <a...@andymg.co.uk> wrote in message news:3b182b82$1_2@dnews...

> Delphi5 Pro & ADOExpress file://all current service packs applied.
> Client using Windows2000 Pro SP2.

> I'm converting a client app which was used to connect to SQL7
> Server - we have now upgraded to SQL2000, but the app now
> falls at the first hurdle. I've traced the problem down to
> ADOConnection.open

> I'm using a standard connectionstring:
> ADOConnection1.ConnectionString := 'Provider=SQLOLEDB.1;'+
>           'Password='+password+';'+
>           'Persist Security Info=true;User ID='+user+';'+
>           'Data Source='+ServerName;

> - but it's producing the following error:

> "Project X raised exception class EOleException with message
> 'Login failed for user 'username'. Reason : Not associated with
> a trusted SQL Server connection'. Process stopped."

> Has anyone any advice?

> Regards,

> AndyMG.

Other Threads