Msg 8115 on a linked server SQL 2012

Mioara mitrea 1 Reputation point
2021-06-30T11:00:00.647+00:00

I have a MsSQL Server 2016 and a linked server MsSQL Server 2012. In the linked server there are some tables that contains columns of type "bigint". When I try to access data from these tables using a SELECT clause , the query returns the next message error :

OLE DB provider "SQLNCLI11" for linked server "..." returned message "Unspecified error".
Msg 8115, Level 16, State 2, Procedure "sp_tables_info_90_rowset _64, Line 9.
Arithmetic overflow error converting expression to data type int.

How can I solve this problem?

Thank you,
Mioara

SQL Server Other
{count} votes

2 answers

Sort by: Most helpful
  1. Olaf Helper 47,436 Reputation points
    2021-06-30T11:10:41.117+00:00
    0 comments No comments

  2. Seeya Xi-MSFT 16,586 Reputation points
    2021-07-01T03:24:00.043+00:00

    Hi @Mioara mitrea ,

    So install the latest service pack and CU on the SQL Server 2012 (and 2016).

    Agree with Olaf.
    If it dosesn't work, please refer to these to check the process of creating linked server.
    https://learn.microsoft.com/en-us/sql/relational-databases/linked-servers/create-linked-servers-sql-server-database-engine?view=sql-server-ver15
    https://www.sqlshack.com/how-to-create-and-configure-a-linked-server-in-sql-server-management-studio/

    Best regards,
    Seeya


    If the response is helpful, please click "Accept Answer" and upvote it, as this could help other community members looking for similar queries.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.