Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Migrating SQL 2000 queries to 2005

Status
Not open for further replies.

ncscott

MIS
Jan 10, 2003
36
US
I have several queries that were part of a DTS package in the old SQL 2000 system. This database is migrating to 2005, and I am having to re-build the function. Mostly it hasn't been a problem, except for a series of SQL query groups that necessarily declare variables. When viewing the query in Business Intelligence Development Studio, it gives me this error:

"The Declare cursor SQL construct or statement is not supported."

Then the query is displayed, and (for example) the first line in the original SQL 2000 query:

Declare @i int

Appears like this in the SQL editing window:

DECLARE ? int

All the variable declarations in the query package are displayed like this, as if SQL 2005 cannot process the variable declaration, however nothing I've found on the Microsoft site or anywhere else suggests that variable declarations are handled any differently in sQL 2005 than they were in 2000.

Any ideas?



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top