Error in query The operation could not be performe

  • I am getting an error when running the below code,

    EXEC sp_addlinkedserver @server = N'teamserver', @srvproduct = N'SQL SERVER'

    EXEC sp_addlinkedsrvlogin 'teamserver', 'false','sa','sa','vision'

    exec teamserver...xp_servicecontrol 'QUERYSTATE', 'SQLServerAgent'

    create table #sqlstatus(status nvarchar(20))

    insert into #sqlstatus (status) exec teamserver...xp_servicecontrol 'QUERYSTATE', 'SQLServerAgent'

    if exists (select * from #sqlstatus where status='Stopped.')

    exec sqlserver...xp_servicecontrol 'START', 'SQLServerAgent'

    drop table #sqlstatus

    the error is

    Database name 'teamserver' ignored, referencing object in tempdb.

    [OLE/DB provider returned message: New transaction cannot enlist in the specified transaction coordinator. ]

    OLE DB error trace [OLE/DB Provider 'SQLOLEDB' ITransactionJoin::JoinTransaction returned 0x8004d00a].

    Msg 7391, Level 16, State 1, Line 1

    The operation could not be performed because the OLE DB provider 'SQLOLEDB' was unable to begin a distributed transaction.

    has any one got any idea's on what might be causing it ?

    thanks in advance

    ps the sql server is MSDE

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply