Re: Executing INSERT INTO EXEC against linled server

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Igor Marchenko (igormarchenko_at_hotmail.com)
Date: 02/02/05


Date: Tue, 1 Feb 2005 19:18:39 -0800

Hello Steve,

Computer I am querying from is using Windows XP SP2. Linked server running
Windows 2000. Both computers have SQL Server 2000 SP3 instralled. As I
mentioned, both computers run MS DTC. I am trying to collect list of the
databases and RECOVERY MODEL from linked server. The easiest way would be
executing sp_help and inserting output into temporary table on my local
server. That''s what I am trying to accomplish. No problems when running
locally but OLEDB error when inserting into temporary table output from
linked server. No problems executing SQL without INSERT INTO:
EXEC LAOLAP.master.dbo.sp_helpdb (fine)
INSERT INTO
#tmp_Database(database_name,database_size,owner,dbid,created,status,
                          compatibility_level)
EXEC LAOLAP.master.dbo.sp_helpdb (error)

Thanks,
Igor

"Steve Kass" <skass@drew.edu> wrote in message
news:eXUX9PNCFHA.3940@TK2MSFTNGP09.phx.gbl...
> Igor,
>
> Does this help?
>
> http://support.microsoft.com/default.aspx?scid=kb;en-us;816701
>
> If not, can you provide more details? What versions of SQL Server,
> what operating systems? Anything else mentioned in the article
> that you think applies or doesn't apply to you?
>
> Steve Kass
> Drew University
>
> Igor Marchenko wrote:
>
>>Hello!
>>I am trying to execute following code against linked server LAOLAP:
>>
>>CREATE TABLE #tmp_Database(
>>database_name sysname,
>>database_size nvarchar(13) null,
>>owner sysname,
>>dbid smallint,
>>created nvarchar(11),
>>status nvarchar(600),
>>compatibility_level tinyint
>>)
>>INSERT INTO
>>#tmp_Database(database_name,database_size,owner,dbid,created,status,
>> compatibility_level)
>>EXEC LAOLAP.master.dbo.sp_helpdb
>>
>>I am getting follwoinf error:
>>'The operation could not be performed because the OLE DB provider
>>'SQLOLEDB' was unable to begin a distributed transaction.'
>>
>>DTC is running on both source and target servers. I need to grab output of
>>sp_helpdb from linked server. Is there a work around to make this work? I
>>simply need to determine RECOVERY model in all databases on linked server.
>>
>>Any help would be greately appreciated.
>>
>>Igor
>>
>>



Relevant Pages

  • Re: SQL Server 2000 linked server problem
    ... The delegated Kerberos authentication does not work stably. ... of SQL Server 2000 to fix some known bugs on the SQL Server side. ... the both two SQL Server instances (local and linked server), ... If Windows Firewall or other third party firewall is used, ...
    (microsoft.public.sqlserver.connect)
  • Re: SQL Server 2000 linked server problem
    ... if we are able to connect the linked server ... successfully on the SQL Server itself but fails to connect from the remote ... client, the most common cause of this behavior is the delegation problem. ... If Windows Firewall or other third party firewall is used, ...
    (microsoft.public.sqlserver.connect)
  • RE: Another issue with Linked Server
    ... Access mdb file as Linked Server in SQL Server. ... MSSQLServer is started by the account you start Windows. ... Operation System) and "Girish" is in Administartor Group of Windows 2003, ...
    (microsoft.public.sqlserver.tools)
  • Linked Server Error in Windows2003 Server
    ... I've got this error message on creating the linked server to the SQL Server ... server side is SQL Server 2000 (in Windows 2000 Server or WinXP Pro). ...
    (microsoft.public.sqlserver.connect)
  • Linked Server error in Windows2003Server
    ... I've got this error message on creating the linked server to the SQL Server ... server side is SQL Server 2000 (in Windows 2000 Server or WinXP Pro). ...
    (microsoft.public.sqlserver.clients)