![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Is it possible to create a cursor with some input parameter on which the cursor query can be based, if so then what is the syntax of using that? -- Ejaz ul Haq |
#3
| |||
| |||
|
|
Either create a stored procedure or a user-defined function that accepts the parameter. Create Procedure dbo.MyProc @Parameter1 int As Declare myCursor Cursor Fast_Forward Read_Only For Select Field2, Field3 From MyTable Where Field1 = @Parameter1 ......... and so on Robert. "Ejaz ul Haq" wrote: Is it possible to create a cursor with some input parameter on which the cursor query can be based, if so then what is the syntax of using that? -- Ejaz ul Haq |
#4
| |||
| |||
|
#5
| |||
| |||
|
#6
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |