Connection error for SQL Server OleDB

F

feng

I am connecting to SQL Server through OleDB provider. The
SQL server I am testing is running on the same machine
that my VB.Net app is running. Here is my connection
string:

"Provider=SQLOLEDB;Data
Source=MyMachine\MySQLInstance;Initial catalog=testDB;user
id=sa;Password=mypwd"

What I got is an error message that says "Login failed for
user 'sa'. Reason: Not associated with a trusted SQL
Server connection."

What am I doing wrong here?

Please help!

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top