1. Santosh Natal
  2. PowerBuilder
  3. Wednesday, 20 December 2023 15:26 PM UTC

Select Error: SQLSTATE = 42S22
Microsoft OLE DB Driver for SQL Server
Invalid column name 'X'.

Getting this error when I am using Synonym for table on other database in SQL Server as source to my DW. I am using below version on MS SQL Server 2019

 

 

Attachments (1)
David Peace Accepted Answer Pending Moderation
  1. Thursday, 21 December 2023 10:48 AM UTC
  2. PowerBuilder
  3. # 1

Hi

I think we need a bit more information, below are some questions and ideas:

1. Can you run the select in the DW against the database in SQL Managemnt Studio, using the same login user? That will elimiante the PB layer and prove you have the correct syntax for your database synonym.

2. If the above works and you still get the error in the DW IDE, can you supply the SQl being used and we can try the same here.

3. Where is the column "X" comming from I wonder?

If you give more information we can help.

Regards

David

Comment
  1. Sivaprakash BKR
  2. Friday, 22 December 2023 05:31 AM UTC
Adding what David has said,

Can you check whether you have any comments in your SQL? If yes, try removing those comments and check whether that works.
  1. Helpful
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.