Carl Yuan Posted April 15, 2019 Share Posted April 15, 2019 Hi guys, I have a SQL scripts with "declare table variable" clause that runs in Microsoft SQL Server. When I try the same query in Spotfire, it gives me an error. I'm wondering what can I do to fix this SQL query: declare @myCaleTable Table (asdate datetime) insert into @myCaleTable select distinct as_date from [dbo].[My_Metric_V] where .... select top 1 asdate from @myCaleTable where.... When copied into custom query designer, getting the following error: External error: Incorrect syntax near the keyword 'declare'. Incorrect syntax near ')'. Link to comment Share on other sites More sharing options...
Carl Yuan Posted April 16, 2019 Author Share Posted April 16, 2019 Anyone Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now