Welcome to Sign in | Help
in Search

Synonym pe un tabel remote avand o coloana de tip XML

Last post 09-29-2013, 10:41 PM by mitza. 2 replies.
Sort Posts: Previous Next
  •  09-24-2013, 7:05 AM 9590

    Synonym pe un tabel remote avand o coloana de tip XML

    Hello world.
    Am urmatoarea problema.
    Avand 2 servere(Server 1 si Server 2). Pe Server 1 creez un synonym al unui tabel care se afla pe Server 2 si care
    contine o coloana de tip XML. Synonym-ul se creaza, dar nu poate fi accesat, generand urmatoarea eroare (select * from Synonym_name / select convert(nvarchar(max), XML_column) from Synonym_name):
    "Msg 9514, Level 16, State 1, Line 1
    Xml data type is not supported in distributed queries. Remote object 'Synonym_name' has xml column(s).".
    Va multumesc.
  •  09-28-2013, 11:47 PM 9591 in reply to 9590

    Re: Synonym pe un tabel remote avand o coloana de tip XML

    1) Daca nu dorești să accesezi coloanele XML remote atunci este suficient să creezi un view care să nu conțină aceste coloane si accesezi view-ul astfel:

    SELECT ... FROM LinkedServer.BazaRemote.Schema.NumeView;

    2) Dacă dorești să accesezi si coloanele XML atunci poți să creezi un view care transformă (CONVERT) valorile XML la NVARCHAR(MAX).


    3) Poti să creezi o procedură stocată care "filtrează" datele remote.
  •  09-29-2013, 10:41 PM 9592 in reply to 9591

    Re: Synonym pe un tabel remote avand o coloana de tip XML

    Va multumesc.
View as RSS news feed in XML
Powered by Community Server (Commercial Edition), by Telligent Systems