Click here to Skip to main content
15,920,632 members
Home / Discussions / Database
   

Database

 
GeneralRe: Query Question Pin
Jon_Boy30-Dec-08 14:26
Jon_Boy30-Dec-08 14:26 
GeneralRe: Query Question Pin
Wendelius30-Dec-08 19:34
mentorWendelius30-Dec-08 19:34 
QuestionQuery Help Pin
Saiyed Alam24-Dec-08 21:13
Saiyed Alam24-Dec-08 21:13 
AnswerRe: Query Help Pin
Wendelius25-Dec-08 7:13
mentorWendelius25-Dec-08 7:13 
QuestionSplit function Pin
cbe_pav24-Dec-08 1:43
cbe_pav24-Dec-08 1:43 
AnswerRe: Split function Pin
Paddy Boyd24-Dec-08 1:53
Paddy Boyd24-Dec-08 1:53 
AnswerRe: Split function Pin
cbe_pav24-Dec-08 17:41
cbe_pav24-Dec-08 17:41 
AnswerRe: Split function Pin
Niladri_Biswas1-Jul-09 18:33
Niladri_Biswas1-Jul-09 18:33 
This is because of the fact that when you execute "select st_id from st_config", it gives a records set. In that case your function needs to be called for each and every rows which is not happening at present.

So you are getting this error.

Do I thing, use a loop(while) or Cursor and store the "st_id" values in a varchar variable. Next pass the variable to your split fucntion and your job will be done.

But in that case, you will get multiple records(if your original table has many columns).

Else you can do 1 more thing. While you are looping, make a string of all the values from "st_id" and place in a varchar variable.

e.g. st_id
1~2
3~4
5~6

Make it like set newstring = 1~2~3~4~5~6 (where newstring is of varchar type)

Next execute SELECT * from [dbo].[FN_Split](newstring,'~')

Hope this helps
Smile | :)

Niladri Biswas

QuestionSql server 2005 Pin
Nath23-Dec-08 22:59
Nath23-Dec-08 22:59 
AnswerRe: Sql server 2005 Pin
Krish - KP24-Dec-08 0:08
Krish - KP24-Dec-08 0:08 
AnswerRe: Sql server 2005 Pin
Wendelius24-Dec-08 1:30
mentorWendelius24-Dec-08 1:30 
GeneralRe: Sql server 2005 Pin
Nath24-Dec-08 1:54
Nath24-Dec-08 1:54 
GeneralRe: Sql server 2005 Pin
Wendelius24-Dec-08 2:09
mentorWendelius24-Dec-08 2:09 
GeneralRe: Sql server 2005 Pin
Nath25-Dec-08 18:31
Nath25-Dec-08 18:31 
GeneralRe: Sql server 2005 Pin
Wendelius25-Dec-08 21:50
mentorWendelius25-Dec-08 21:50 
GeneralRe: Sql server 2005 Pin
Nath25-Dec-08 22:35
Nath25-Dec-08 22:35 
GeneralRe: Sql server 2005 Pin
Wendelius25-Dec-08 22:43
mentorWendelius25-Dec-08 22:43 
GeneralRe: Sql server 2005 Pin
Nath25-Dec-08 22:39
Nath25-Dec-08 22:39 
GeneralRe: Sql server 2005 Pin
Wendelius25-Dec-08 23:11
mentorWendelius25-Dec-08 23:11 
GeneralRe: Sql server 2005 Pin
Nath25-Dec-08 23:45
Nath25-Dec-08 23:45 
GeneralRe: Sql server 2005 Pin
Wendelius26-Dec-08 1:06
mentorWendelius26-Dec-08 1:06 
QuestionPLSQL ? ORA-01401: inserted value too large for column Pin
Reddy Prakash23-Dec-08 21:44
Reddy Prakash23-Dec-08 21:44 
AnswerRe: PLSQL ? ORA-01401: inserted value too large for column Pin
Reddy Prakash23-Dec-08 22:00
Reddy Prakash23-Dec-08 22:00 
AnswerRe: PLSQL ? ORA-01401: inserted value too large for column Pin
Wendelius23-Dec-08 22:07
mentorWendelius23-Dec-08 22:07 
QuestionCreate a folder with full Sharing Rights Pin
pdnet23-Dec-08 19:04
pdnet23-Dec-08 19:04 

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.