Calling remote Stored Procedure's
From: Rick Knight (knight_rjb_at_yahoo.com.au)
Date: 11/08/04
- Next message: Henry: "SQL Report Form Authentication Problem"
- Previous message: \: "Re: trigger question"
- Next in thread: Uri Dimant: "Re: Calling remote Stored Procedure's"
- Reply: Uri Dimant: "Re: Calling remote Stored Procedure's"
- Messages sorted by: [ date ] [ thread ]
Date: 7 Nov 2004 18:04:45 -0800
Hi,
I am experiencing some difficulties when it comes to executing a SQL
Stored procedure on a remote SQL server.
I have two SQL servers.
1st Server: Named 'SQLServer' running on Win2k Server (SP4)
2nd Server: Named 'SQLClient' running on Win2k Profession (SP4)
When I try to execute the Stored Procedure 'Ten Most Expensive
Products' (from the Northwind database), from my client machine
(SQLClient), on the server machine (SQLServer).
For example.
execute OpenDataSource('SQLOLEDB',N'SERVER=SQLServer;UID=sa;PWD=;').[Northwind].[dbo].[Ten
Most Expensive Products]
I get the following error.
Server: Msg 7212, Level 17, State 1, Line 1
Could not execute procedure 'Ten Most Expensive Products' on remote
server 'SQLOLEDB'.
However if I simply query a table directly (from the remote machine
'SQLClient'), all works fine. For example, the Customers table from
the Northwind database.
select * from OpenDataSource('SQLOLEDB',N'SERVER=SQLServer;UID=sa;PWD=;').[Northwind].[dbo].Customers
I also tried executing the stored procedure from 'SQLServer', and that
worked fine too. eg.
execute OpenDataSource('SQLOLEDB',N'SERVER=SQL;UID=sa;PWD=;').[Northwind].[dbo].[Ten
Most Expensive Products]
I think the problem may have something to do with RPC permissions. Can
anyone shed some light on why this doesn't work, and/or how to fix it.
Thanks in advance.
Rick 8-)
- Next message: Henry: "SQL Report Form Authentication Problem"
- Previous message: \: "Re: trigger question"
- Next in thread: Uri Dimant: "Re: Calling remote Stored Procedure's"
- Reply: Uri Dimant: "Re: Calling remote Stored Procedure's"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|