Click here to Skip to main content
15,888,527 members
Home / Discussions / Database
   

Database

 
AnswerRe: extrem large insert query Pin
baerten20-Nov-07 0:14
baerten20-Nov-07 0:14 
QuestionTemporary tables and performance Pin
N a v a n e e t h19-Nov-07 20:43
N a v a n e e t h19-Nov-07 20:43 
AnswerRe: Temporary tables and performance Pin
GuyThiebaut19-Nov-07 22:42
professionalGuyThiebaut19-Nov-07 22:42 
GeneralRe: Temporary tables and performance Pin
N a v a n e e t h20-Nov-07 0:55
N a v a n e e t h20-Nov-07 0:55 
AnswerRe: Temporary tables and performance Pin
andyharman19-Nov-07 22:59
professionalandyharman19-Nov-07 22:59 
AnswerRe: help for sql query Pin
joemonvarghese19-Nov-07 20:29
joemonvarghese19-Nov-07 20:29 
GeneralRe: help for sql query Pin
joemonvarghese19-Nov-07 22:16
joemonvarghese19-Nov-07 22:16 
Questionsubstring function Pin
Sonia Gupta19-Nov-07 18:39
Sonia Gupta19-Nov-07 18:39 
declare @exp varchar(100)
set @exp = '12,13,14'
declare @start int
declare @pos int
declare @substring varchar(20)
set @pos = 1
set @start = 1
while(@pos <> 0)
begin
set @pos = charindex(',' , @exp , @start)
if(@pos = 0)
begin
print substring(@exp , @start , len(@exp))
return
end
print substring(@exp , @start , @pos -1)
set @start = @pos + 1
end

i want the following output
12
13
14

But the output is
12
13,14
14

please rectify it

Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.

AnswerRe: substring function Pin
Christian Graus19-Nov-07 18:48
protectorChristian Graus19-Nov-07 18:48 
GeneralRe: substring function Pin
Sonia Gupta19-Nov-07 18:53
Sonia Gupta19-Nov-07 18:53 
GeneralRe: substring function Pin
Kishore.P19-Nov-07 19:13
Kishore.P19-Nov-07 19:13 
GeneralRe: substring function Pin
Sonia Gupta19-Nov-07 19:26
Sonia Gupta19-Nov-07 19:26 
GeneralRe: substring function Pin
Kishore.P19-Nov-07 19:37
Kishore.P19-Nov-07 19:37 
GeneralRe: substring function Pin
Krish - KP19-Nov-07 23:12
Krish - KP19-Nov-07 23:12 
GeneralRe: substring function Pin
Sonia Gupta20-Nov-07 0:28
Sonia Gupta20-Nov-07 0:28 
AnswerRe: substring function Pin
Michael Sync19-Nov-07 19:30
Michael Sync19-Nov-07 19:30 
QuestionDatetime format Pin
Assaf8219-Nov-07 12:52
Assaf8219-Nov-07 12:52 
AnswerRe: Datetime format Pin
Colin Angus Mackay19-Nov-07 13:06
Colin Angus Mackay19-Nov-07 13:06 
Questionextremely strange ado.net issue Pin
ekynox19-Nov-07 11:21
ekynox19-Nov-07 11:21 
AnswerRe: extremely strange ado.net issue Pin
Colin Angus Mackay19-Nov-07 12:26
Colin Angus Mackay19-Nov-07 12:26 
GeneralRe: extremely strange ado.net issue Pin
ekynox19-Nov-07 14:08
ekynox19-Nov-07 14:08 
QuestionADO: Encoding problem ? Pin
Gofur Halmurat19-Nov-07 7:50
Gofur Halmurat19-Nov-07 7:50 
QuestionHow to access a variable and foward it down the Data Flow in SSIS 2005 Pin
huertj19-Nov-07 6:15
huertj19-Nov-07 6:15 
QuestionSQL Reporting services 2005 Pin
MSinha19-Nov-07 4:17
MSinha19-Nov-07 4:17 
AnswerRe: SQL Reporting services 2005 Pin
pmarfleet19-Nov-07 5:23
pmarfleet19-Nov-07 5:23 

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.