Click here to Skip to main content
15,902,938 members
Home / Discussions / Database
   

Database

 
AnswerRe: How do I assign NULL values to a DATE variable in SQL SERVER 2005? Pin
Eric Dahlvang6-Jun-06 9:05
Eric Dahlvang6-Jun-06 9:05 
GeneralRe: How do I assign NULL values to a DATE variable in SQL SERVER 2005? Pin
Daniel Santillanes9-Jun-06 10:08
professionalDaniel Santillanes9-Jun-06 10:08 
Questiondbdataadapter.update Pin
NICE TO MEET6-Jun-06 1:12
NICE TO MEET6-Jun-06 1:12 
QuestionUrgent hlep SQL-TSQL Pin
Naveed Kamboh6-Jun-06 1:09
Naveed Kamboh6-Jun-06 1:09 
AnswerRe: Urgent hlep SQL-TSQL [modified] Pin
SeMartens6-Jun-06 3:00
SeMartens6-Jun-06 3:00 
AnswerRe: Urgent hlep SQL-TSQL Pin
Michael Potter6-Jun-06 3:20
Michael Potter6-Jun-06 3:20 
GeneralRe: Urgent hlep SQL-TSQL Pin
Stephan Samuel6-Jun-06 3:48
Stephan Samuel6-Jun-06 3:48 
AnswerRe: Urgent hlep SQL-TSQL Pin
Ricardo Casquete6-Jun-06 3:28
Ricardo Casquete6-Jun-06 3:28 
We had a problem like this, some time ago... and the solution were to use stored procedured with cursors....

( The performance.... we know )

What we did is to build the cursor at runtime, with the Execute () Method... setting here the Order By... after that create the Cursor and Fetch till the Value needed... aslo notice you can specify the cursor to fetch directly a row


Alter Procedure DoLoop
as


Declare curMyLoop Cursor For
Select * from spt_values

Open curMyLoop

Fetch Next from curMyLoop
while @@Fetch_status = 0
Begin
Fetch Next from curMyLoop
End

deallocate curMyLoop

Go

alter procedure pp
as

declare @str varchar(50)
set @str= 'Select * from spt_values'

Execute ( @str )

Go


Regards

Ricardo Casquete
GeneralRe: Urgent hlep SQL-TSQL/Thanks all Pin
Naveed Kamboh6-Jun-06 22:51
Naveed Kamboh6-Jun-06 22:51 
QuestionSql Loader problem Pin
neha30136-Jun-06 1:04
neha30136-Jun-06 1:04 
AnswerRe: Sql Loader problem Pin
SeMartens6-Jun-06 2:36
SeMartens6-Jun-06 2:36 
GeneralRe: Sql Loader problem Pin
neha30136-Jun-06 21:00
neha30136-Jun-06 21:00 
AnswerRe: Sql Loader problem Pin
Stephan Samuel6-Jun-06 3:32
Stephan Samuel6-Jun-06 3:32 
GeneralRe: Sql Loader problem Pin
neha30136-Jun-06 20:56
neha30136-Jun-06 20:56 
QuestionGet Comma Separated List from Query Pin
sarah_chandran5-Jun-06 23:31
sarah_chandran5-Jun-06 23:31 
AnswerRe: Get Comma Separated List from Query Pin
albCode6-Jun-06 1:08
albCode6-Jun-06 1:08 
GeneralRe: Get Comma Separated List from Query Pin
sarah_chandran6-Jun-06 1:34
sarah_chandran6-Jun-06 1:34 
AnswerRe: Get Comma Separated List from Query Pin
Stephan Samuel6-Jun-06 3:35
Stephan Samuel6-Jun-06 3:35 
GeneralRe: Get Comma Separated List from Query [modified] Pin
sarah_chandran7-Jun-06 18:55
sarah_chandran7-Jun-06 18:55 
GeneralRe: Get Comma Separated List from Query [modified] Pin
Stephan Samuel8-Jun-06 0:44
Stephan Samuel8-Jun-06 0:44 
GeneralRe: Get Comma Separated List from Query [modified] Pin
sarah_chandran9-Jun-06 0:11
sarah_chandran9-Jun-06 0:11 
GeneralRe: Get Comma Separated List from Query [modified] Pin
sarah_chandran9-Jun-06 0:12
sarah_chandran9-Jun-06 0:12 
QuestionSecond Highest Pin
Rahul.RK5-Jun-06 21:06
Rahul.RK5-Jun-06 21:06 
AnswerRe: Second Highest Pin
WoutL5-Jun-06 23:16
WoutL5-Jun-06 23:16 
GeneralRe: Second Highest Pin
Mahesh Kulkarni6-Jun-06 20:05
Mahesh Kulkarni6-Jun-06 20:05 

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.