Click here to Skip to main content
12,064,812 members (41,183 online)
Click here to Skip to main content

Stats

0 views
Posted

How to use a variable in a select statement for a declare cursor

, 27 Dec 2012 CPOL
While you can use EXECUTE[^] to run a dynamic SQL statement, I'm really suspicious if this is a good approach.If you dynamically define the result set columns wouldn't this result into a situation where you have difficulties in selecting the values from the cursor since you don't know the...

Revisions


  

Compare Revision Minor Date Status Editor
2 - publicly available No 27-Dec-12 18:00 Available Mika Wendelius
Updates in content. 76 changes had been made.
1 No 27-Dec-12 16:21 Available Mika Wendelius

License

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

Share

About the Author

Mika Wendelius
Architect
Finland Finland
No Biography provided

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web04 | 2.8.160204.4 | Last Updated 27 Dec 2012
Article Copyright 2012 by Mika Wendelius
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid