SQL Server 2000General discussion of Microsoft SQL Server -- for topics that don't fit in one of the more specific SQL Server forums. version 2000 only. There's a new forum for SQL Server 2005.
Welcome to the p2p.wrox.com Forums.
You are currently viewing the SQL Server 2000 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
I created this store procedure that i pass it a 6 digit number...
but it returnes me nothing...
CREATE PROCEDURE sp_GetAllSKU
@intSKU int
AS
select * from PromoDetailID PD
Join PromoID P On P.PromoID = PD.PromoID
where PD.PromoSKU like '%@varSKU%'
and P.PromoActive=1
and P.PromoLanguage='E'
GO
But if i run it in query analyzer and actually put a number it returnes me info...
select * from PromoDetailID PD
Join PromoID P On P.PromoID = PD.PromoID
where PD.PromoSKU like '%417856%'
and P.PromoActive=1
and P.PromoLanguage='E'
Is there something i'm missing in my SP that i need...
Perfect it works fine...
One other thing not sure if i should post this question in another section...
i have an <input type="text" ... > textbox that has the 6 digits that i need to bring the variable over to my other page and that's where i connect to SQL and run my SP...
it's working fine put returning all rows...
looks like my variable is not coming over with my page...
how can i bring my variable over to another page???