dbTalk Databases Forums  

Stored Procedure Problem

comp.database.ms-sqlserver comp.database.ms-sqlserver


Discuss Stored Procedure Problem in the comp.database.ms-sqlserver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Brvsra
 
Posts: n/a

Default Stored Procedure Problem - 12-23-2004 , 04:23 PM






Listed below is my stored procedure, when I run the stored procedure using
asp, I get no results. The problem is the last variable passed, has two
words separated by a space. If I pass a variable with one word I get
results.
Any help would be appreciated.


REATE PROCEDURE [dbo].[getAppLargeImg] @sSubBrand nvarchar(255),
@sApplication_Type nvarchar(255), @sApplication_Category nvarchar(255) AS
SELECT PL_Family_Images.Status,
PL_Family_Images.SubBrand,
PL_Family_Images.Family,
PL_Family_Images.Category,
PL_Family_Images.Caption,
PL_Family_Images.FileName,
PL_Family_Images.Path,
PL_Family_Images.Image_Type,
PL_Family_Images.App_Type,
PL_Family_Images.App_Category,
PL_Family_Images.Image_Sequence
FROM PL_Family_Images
WHERE PL_Family_Images.Status='A'
AND PL_Family_Images.SubBrand=@sSubBrand
AND PL_Family_Images.Image_Type='App_Large'
AND PL_Family_Images.App_Type=@sApplication_Type
AND PL_Family_Images.App_Category=@sApplication_Type
AND PL_Family_Images.Image_Sequence=1



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.