Cannot initialize the data source for linked server

S

Stephane

Hi,

I have this error when I run a stored procedure calling a linked server :

System.Data.SqlClient.SqlException: Cannot initialize the data source object
of OLE DB provider "MSDASQL" for linked server "linkedServerABC"

The problem is that when I run the exact stored proc in SQL Server in the
query editor it works well.

So why ASP.Net on the same server can't execute this stored proc?

Any idea?

Thanks

Stephane
 
J

Jeff Dillon

Stephane said:
Hi,

I have this error when I run a stored procedure calling a linked server :

System.Data.SqlClient.SqlException: Cannot initialize the data source
object
of OLE DB provider "MSDASQL" for linked server "linkedServerABC"

The problem is that when I run the exact stored proc in SQL Server in the
query editor it works well.

So why ASP.Net on the same server can't execute this stored proc?

Any idea?

Thanks

Stephane

When using the SQL query editor, I assume you're using SQL authentication
(username/password) to log in? This scenario will most likely not work with
Windows Authentication. I suspect it's a permissions issue.

Jeff
 

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

Members online

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,812
Latest member
GracielaWa

Latest Threads

Top