Click here to Skip to main content
16,016,580 members
Home / Discussions / Database
   

Database

 
AnswerRe: DTS - SQL Server: Connection/memory leak? Transaction deadlocks? Pin
Frank Kerrigan14-Dec-06 23:52
Frank Kerrigan14-Dec-06 23:52 
QuestionHow can I specify temp table as Source/Destination table for DTS "Transform Data Task"? Pin
devvvy14-Dec-06 21:10
devvvy14-Dec-06 21:10 
AnswerRe: How can I specify temp table as Source/Destination table for DTS "Transform Data Task"? Pin
Frank Kerrigan14-Dec-06 23:51
Frank Kerrigan14-Dec-06 23:51 
GeneralURGENT Re: How can I specify temp table as Source/Destination table for DTS "Transform Data Task"? Pin
devvvy17-Dec-06 17:09
devvvy17-Dec-06 17:09 
QuestionExporting and Import DTS packages? Pin
devvvy14-Dec-06 21:08
devvvy14-Dec-06 21:08 
AnswerRe: Exporting and Import DTS packages? Pin
Frank Kerrigan14-Dec-06 23:48
Frank Kerrigan14-Dec-06 23:48 
GeneralRe: Exporting and Import DTS packages? Pin
devvvy16-Dec-06 15:37
devvvy16-Dec-06 15:37 
QuestionCursor and set , execute Statement related Query Pin
param thaker14-Dec-06 19:47
param thaker14-Dec-06 19:47 
Hi friends

I want to execute the procedure which is as shown below
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
CREATE procedure xyz(@refno as varchar(25),@Type as varchar(15))
as set nocount on


Create Table #tbl_xyz
(
'some fileds
)

Set @Tempcode=0

Declare xyz_cursor Cursor for

Set @sql1 = 'Select a,b c and d like ''' + @labrefno + ''' order by e ' + @Type

exec sp_executesql @sql1

Open xyz_cursor

Fetch next from xyz_cursor into some values

While @@Fetch_status=0
BEGIN
'''''''''
BEGIN

END

''''''''''''''
''''''''''''''
''''''''''''''

Close xyz_cursor
Deallocate xyz_cursor

select * from #tbl_xyz

'''''''''''''''''''''''''''''''''''''''''''''
In the execution of above procedure , it won't allow me to set any value under the cursor declaration and even if execute under the cusor and i want to perform this procedure by passing the '@refno' and '@Type' dynamically as a parameter .

Is there any solution regarding this , then please guide me.

Thanks
Param




param

AnswerRe: Cursor and set , execute Statement related Query Pin
Frank Kerrigan14-Dec-06 23:54
Frank Kerrigan14-Dec-06 23:54 
QuestionOpening and Closing Conneciton for a loop Pin
Amrish Deep14-Dec-06 17:05
Amrish Deep14-Dec-06 17:05 
AnswerRe: Opening and Closing Conneciton for a loop Pin
Paul Conrad14-Dec-06 18:12
professionalPaul Conrad14-Dec-06 18:12 
AnswerRe: Opening and Closing Conneciton for a loop Pin
coolestCoder14-Dec-06 19:01
coolestCoder14-Dec-06 19:01 
QuestionAdding a new row Pin
goldoche14-Dec-06 5:59
goldoche14-Dec-06 5:59 
AnswerRe: Adding a new row Pin
Karma3125114-Dec-06 10:12
Karma3125114-Dec-06 10:12 
Questionhi Pin
Tauseef A14-Dec-06 1:01
Tauseef A14-Dec-06 1:01 
AnswerRe: hi Pin
Colin Angus Mackay14-Dec-06 1:43
Colin Angus Mackay14-Dec-06 1:43 
AnswerRe: hi Pin
Frank Kerrigan14-Dec-06 3:30
Frank Kerrigan14-Dec-06 3:30 
GeneralRe: hi Pin
Tauseef A14-Dec-06 9:37
Tauseef A14-Dec-06 9:37 
GeneralRe: hi Pin
Colin Angus Mackay14-Dec-06 13:31
Colin Angus Mackay14-Dec-06 13:31 
QuestionRe: hi Pin
Tauseef A14-Dec-06 19:35
Tauseef A14-Dec-06 19:35 
AnswerRe: hi Pin
Frank Kerrigan14-Dec-06 23:55
Frank Kerrigan14-Dec-06 23:55 
GeneralRe: hi Pin
Tauseef A15-Dec-06 6:31
Tauseef A15-Dec-06 6:31 
GeneralRe: hi Pin
Private_Void15-Dec-06 7:19
Private_Void15-Dec-06 7:19 
AnswerRe: hi Pin
S Douglas17-Dec-06 23:20
professionalS Douglas17-Dec-06 23:20 
QuestionExtended SP (CLRSP) in .net Pin
om474113-Dec-06 23:39
om474113-Dec-06 23:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.