Re: Stored procedure - parameter in IN clause
From: Aaron [SQL Server MVP] (ten.xoc_at_dnartreb.noraa)
Date: 08/13/04
- Next message: Jacco Schalkwijk: "Re: Create case insensitive Search"
- Previous message: Kevin Stark: "Covering index causes blocking on exclusive latch acquisition in tempdb?"
- In reply to: Mindy Zhang: "Stored procedure - parameter in IN clause"
- Next in thread: WKidd: "Re: Stored procedure - parameter in IN clause"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 13 Aug 2004 12:39:25 -0400
Also see http://www.aspfaq.com/2248
-- http://www.aspfaq.com/ (Reverse address to reply.) "Mindy Zhang" <mindyzhang@hotmail.com> wrote in message news:e17a4vUgEHA.1972@TK2MSFTNGP09.phx.gbl... > Hi, > > I created a stored procedure with three parameters in SQL server 2000. Data > types are datatime, integer and char. The last parameter value looks like > '1234AB', '1234TG', '7890IK'. I got a problem when I tried to EXECUTE the > stored procedure because of the commas in the last parameter. Any ideas? > Here is my stored procedure. > > CREATE PROCEDURE usp_select_data @start_dt datetime, @pt_number int , @form > char(6) AS > BEGIN > > SELECT * > FROM table1 > WHERE table1.column1 = @start_dt and > table1.column2 = @pt_number > table1.column3 IN (@form) > > END > > Thank you. > > Mindy > >
- Next message: Jacco Schalkwijk: "Re: Create case insensitive Search"
- Previous message: Kevin Stark: "Covering index causes blocking on exclusive latch acquisition in tempdb?"
- In reply to: Mindy Zhang: "Stored procedure - parameter in IN clause"
- Next in thread: WKidd: "Re: Stored procedure - parameter in IN clause"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|