Click here to Skip to main content
15,907,328 members
Home / Discussions / Database
   

Database

 
QuestionDealing with apostrophe in stored procedure Pin
berba11-Apr-11 22:15
berba11-Apr-11 22:15 
AnswerRe: Dealing with apostrophe in stored procedure Pin
Eddy Vluggen12-Apr-11 0:02
professionalEddy Vluggen12-Apr-11 0:02 
AnswerRe: Dealing with apostrophe in stored procedure Pin
Chris Meech12-Apr-11 2:52
Chris Meech12-Apr-11 2:52 
AnswerRe: Dealing with apostrophe in stored procedure Pin
thatraja12-Apr-11 7:23
professionalthatraja12-Apr-11 7:23 
GeneralRe: Dealing with apostrophe in stored procedure Pin
berba12-Apr-11 21:35
berba12-Apr-11 21:35 
AnswerRe: Dealing with apostrophe in stored procedure Pin
berba12-Apr-11 21:34
berba12-Apr-11 21:34 
GeneralRe: Dealing with apostrophe in stored procedure Pin
berba14-Apr-11 20:38
berba14-Apr-11 20:38 
GeneralRe: Dealing with apostrophe in stored procedure Pin
S Douglas28-Apr-11 11:47
professionalS Douglas28-Apr-11 11:47 
Little Debugging..


CREATE PROCEDURE sp_GetEZQueryList
(
       @sUser AS nchar(500) ,
       @sSupervisor AS char(1) ,
       @sAllowed AS varchar(8000)
)
AS 

IF @sSupervisor <> 'Y'
   SELECT
       EzqDateMod ,
       EzqFlxID ,
       EzqUserName ,
       EzqName ,
       EzqData ,
       EzqDescrip
   FROM
       EZQuery
   WHERE
       ( EzqUserName = @sUser ) 
		OR 
	   ( EzqUserName = 'SYSTEM' /*AND CAST(EzqFlxID AS varchar(10)) IN ( SELECT * FROM intlist_to_tbl WHERE(@sAllowed) ) */)

ELSE
   SELECT
       EzqDateMod ,
       EzqFlxID ,
       EzqUserName ,
       EzqName ,
       EzqData ,
       EzqDescrip
   FROM
       EZQuery
GO


exec sp_getezquerylist 'DO''SULLIVAN', 'N', '100'


Executes fine, without the IN clase to look up

The source of your issues appear to be in this function (I assume its a function based on the nomenclature) intlist_to_tbl. If intlist_to_tbl is really a function why are you sending that data to the db, and converting it instead of storing it in the db?

Common sense is admitting there is cause and effect and that you can exert some control over what you understand.


QuestionSSRS Problem [modified] Pin
Kevin Marois10-Apr-11 10:32
professionalKevin Marois10-Apr-11 10:32 
AnswerRe: SSRS Problem Pin
S Douglas13-Apr-11 11:50
professionalS Douglas13-Apr-11 11:50 
Questionrefresh values after each row update [modified] Pin
mersad0010-Apr-11 3:52
mersad0010-Apr-11 3:52 
AnswerRe: refresh values after each row update Pin
Mycroft Holmes10-Apr-11 4:07
professionalMycroft Holmes10-Apr-11 4:07 
AnswerRe: refresh values after each row update Pin
Wendelius10-Apr-11 5:05
mentorWendelius10-Apr-11 5:05 
GeneralRe: refresh values after each row update Pin
mersad0013-Apr-11 1:06
mersad0013-Apr-11 1:06 
GeneralRe: refresh values after each row update Pin
Wendelius13-Apr-11 5:19
mentorWendelius13-Apr-11 5:19 
Questiondatabase Pin
S.madasamy9-Apr-11 7:49
S.madasamy9-Apr-11 7:49 
AnswerRe: database Pin
Wendelius9-Apr-11 8:05
mentorWendelius9-Apr-11 8:05 
AnswerRe: database Pin
Abhinav S9-Apr-11 23:13
Abhinav S9-Apr-11 23:13 
QuestionCopy Databases objects Pin
vanikanc8-Apr-11 4:07
vanikanc8-Apr-11 4:07 
AnswerRe: Copy Databases objects Pin
Wendelius8-Apr-11 4:19
mentorWendelius8-Apr-11 4:19 
AnswerRe: Copy Databases objects Pin
R. Giskard Reventlov8-Apr-11 4:23
R. Giskard Reventlov8-Apr-11 4:23 
AnswerRe: Copy Databases objects Pin
Corporal Agarn8-Apr-11 6:44
professionalCorporal Agarn8-Apr-11 6:44 
Questionhow can i sort database Pin
ace3008-Apr-11 3:25
ace3008-Apr-11 3:25 
AnswerRe: how can i sort database Pin
Luc Pattyn8-Apr-11 3:43
sitebuilderLuc Pattyn8-Apr-11 3:43 
AnswerRe: how can i sort database Pin
David Mujica8-Apr-11 4:13
David Mujica8-Apr-11 4:13 

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.