Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Qlikuser09
Creator II
Creator II

The following error occurred: Connector reply error: ErrorSource: Microsoft OLE DB Provider for SQL Server, ErrorMsg: Invalid object name

I'm trying to add a new SQL Script to an already existing load Script in QLiksense, when I try to load I get the following error 

The following error occurred:
Connector reply error: ErrorSource: Microsoft OLE DB Provider for SQL Server, ErrorMsg: Invalid object name.
 
However, the new load script connects to a different DB.
1 Solution

Accepted Solutions
vinieme12
Champion III
Champion III

What I think is happening is your existing dB connection is not closed and you are trying to query again to a different db without closing the first connection and 

Example

Lib Connect to db1connection

Some SQL script querying db1;

Some SQL script querying db2;

Now since you are trying to find db2 tables/views in db1 you are getting invalid object name 

 

Proper way 

Lib Connect to db1connection;

Some SQL script querying db1;

Disconnect; // close previous connection

Lib Connect to db2connection;//open new connection to db2

Some SQL script querying db2;

Disconnect;

 

 

 

 

 

 

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.

View solution in original post

1 Reply
vinieme12
Champion III
Champion III

What I think is happening is your existing dB connection is not closed and you are trying to query again to a different db without closing the first connection and 

Example

Lib Connect to db1connection

Some SQL script querying db1;

Some SQL script querying db2;

Now since you are trying to find db2 tables/views in db1 you are getting invalid object name 

 

Proper way 

Lib Connect to db1connection;

Some SQL script querying db1;

Disconnect; // close previous connection

Lib Connect to db2connection;//open new connection to db2

Some SQL script querying db2;

Disconnect;

 

 

 

 

 

 

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.