Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
maxsheva
Creator II
Creator II

SQL DECLARE with a UserTable type

Hi,

I am trying to use SQL DECLARE with a UserTable type

SQL DECLARE @Variable UserTable;

It works properly in SSMS but error appears in QlikView

ErrorMsg: Parameter or variable '@Variable' has an invalid data type.

 

Any help would be appreciated.

 

1 Solution

Accepted Solutions
jonathandienst
Partner - Champion III
Partner - Champion III

You need to define the table in the declare:

DECLARE @ProductTotals TABLE
(
  ProductID int,
  Revenue money
)
Logic will get you from a to b. Imagination will take you everywhere. - A Einstein

View solution in original post

2 Replies
jonathandienst
Partner - Champion III
Partner - Champion III

You need to define the table in the declare:

DECLARE @ProductTotals TABLE
(
  ProductID int,
  Revenue money
)
Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
maxsheva
Creator II
Creator II
Author

Thanks for quick reply.

 

It works!