How do we refer the linked server name in report builder query

  • Hi All,

    I am getting the error from report designer for the linked server name as below

    could not find the server 'DC01SQLV03' in sysservers

    for the below query

    select System.AD_Site_Name0 as OfficeLocation,

    System.Netbios_Name0 as ComputerName,

    System.Operating_System_Name_and0 as OperatingSystem,

    ENA.UserName,

    ENA.Title,

    ENA.Department,

    ENA.TelephoneNumber,

    ENA.OfficeName

    FROM OPENQUERY(DC01SQLV03,

    'select ENA.Name as UserName,

    ENA.Title,

    ENA.Department,

    ENA.TelephoneNumber,

    ENA.PhysicalDeliveryOfficeName as OfficeName,

    ENA.sAMAccountName

    from [dc01sqlv03\sql_inst3].it_infrastructure.dbo.v_enabledusers ENA') AS ENA

    INNER JOIN dc01sqls01.SMS_D01.dbo.V_R_System System on System.User_Name0=ENA.sAMAccountName

    WHERE System.Operating_System_Name_and0='Microsoft Windows NT Workstation 5.1'

    ORDER BY System.AD_Site_Name0

    Is there any way to refer the linked server like tables and other database objects in the above query.

    But this query works fine in the query analyser in the local server.

    BR,

    Parthi

  • Does the user being used for the report connection have rights to use the linked server and rights to the table(s) on the linked server?

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

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