Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Mur
Contributor II
Contributor II

Issue with loading data from SSMS

Hello,

I have an application built in Qlik Sense which is already connected to SSMS. There are already tables pulled over from SSMS, and many reports are built using that data. I am adding a new section in the data load editor, and I am trying to pull another table from SSMS and load it into Qlik Sense. However, every time I write my load script, it gives me an error. Interestingly, when I tried loading the same data into an empty application, it worked fine. What could be the problem preventing me from pulling the data into my existing application?

 

My load script is simple:

Load:

select ID, Rev1, Rev2,Rev3

From ABCTable

Where Year=2024 and Status= 'Active'

Thank you!

6 Replies
Fabiano_Martino_Intelco
Partner - Creator
Partner - Creator

Hi @Mur 

can you post more information about the error?

Do you receive a specific error message?

Regards

Mario_De_Felipe
Luminary
Luminary

Probably you have a syntax error. Did you miss the final semicolon?

Load:

select ID, Rev1, Rev2,Rev3

From ABCTable

Where Year=2024 and Status= 'Active' ;

Pablo007
Contributor III
Contributor III

Hi @Mur ,

 

Looks like you are missing single quotes in 2024  

 

where reads =2024 

Should read ='2024'

 

Pablo007_0-1714980494984.png

 

mshann01
Contributor III
Contributor III

You definitely don't need quotes around the year value.  Even if it was improperly stored as a varchar, SQL Server converts it on the fly and never throws an error for that.

mshann01
Contributor III
Contributor III

send us error and the full script and we'll tell you what the issue is

Mur
Contributor II
Contributor II
Author

Thank you all... I found the error.