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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Another SQL Stored Procedure Question

I'm just testing at the moment but want to get the recordset loaded into Qlikview as returned from a stored procedure.

ALTER PROCEDURE dbo.pTest
AS
SELECT
ac_id
FROM
dbo.fcAccount

RETURN





Running "EXEC dbo. pTest" in MS SQL server it returns a recordset as expected.

In the Load script in Qlikview I have

CONNECT TO [Provider=SQLNCLI.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=FC;Data Source=(local);Use Procedure for Prepare=1;Auto Translate=True;Packet Size=4096;Workstation ID=CHUCK-PC2;Use Encryption for Data=False;Tag with column collation when possible=False;MARS Connection=False;DataTypeCompatibility=0;Trust Server Certificate=False];


SQL EXECUTE dbo.pTest;

I don't get any errors so it appears to work ok but qlikview doesn't load any columns/rows.

Looks like I need to specifiy that it's returning a recordset some how. How do I do it.

I also tried

LOAD ac_id;

SQL EXECUTE dbo.pTest;

It didn't like it

Any ideas?

Cheers

2 Replies
Not applicable
Author

Hello,

Try using an ODBC instead a connection string. Something like:





ODBC

CONNECT TO ODBC01 (XUserId is LcZMDD, XPassword is aHQSPRMFBMaGCA);

Ids:

LOAD

ac_id;

SQL

EXEC BD01.dbo.pTest;

Steve

Not applicable
Author

Thank you, Steve!  Switching to ODBC worked for me.

I had to use a user DSN - my File DSNs do not work.  Just thought I would throw that out as it was frustrating me when my File DSNs were not showing up.