Click here to Skip to main content
15,892,298 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
this is my sql in sqlserver
CSS
Declare @SQL varchar(max)SET @SQL ='select c.pid,''Not Exists'' as Pstate from( SELECT '''+REPLACE(@JoinID,',',''' pid UNION ALL SELECT ''')+''' pid ) c where c.pid not in
(SELECT   pn_id FROM  pytable )' 
exec(@SQL)
else
begin
select null as Psatet, null as split 
end


I need to use the sql in a report that the data source pointed to a vertica

when I set the commandTest like this:

CSS
set v1 'NTR.pytable'; select pn_id from :v1


It shows error:

Unsupported SET option v1


knows what to do ? thanks
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900