| | |
match input parameter
Please support our MS SQL advertiser: Intel Parallel Studio Home
Thread Solved |
•
•
Join Date: Aug 2009
Posts: 10
Reputation:
Solved Threads: 0
I want to create a procedure which takes one input parameter(@name) and list all the fully or partially matching results. I used
but it didnt work. Can you help plz?
sql Syntax (Toggle Plain Text)
SELECT * FROM Table1 WHERE Name LIKE @Name
but it didnt work. Can you help plz?
Last edited by peter_budo; Sep 7th, 2009 at 12:43 pm. Reason: Keep It Organized - For easy readability, always wrap programming code within posts in [code] (code blocks) and [icode] (inline code) tags.
Did you try using wild cards.
sql Syntax (Toggle Plain Text)
SELECT * FROM Table1 WHERE Name LIKE ('%' + @Name + '%')
Last edited by cgyrob; Aug 29th, 2009 at 7:06 pm.
![]() |
Similar Threads
- passing xml document as input parameter to web service (XML, XSLT and XPATH)
- How Input parameter insert in DB through Java Bean (JSP)
- Help needed with basic java methods (Java)
- How to Use an Input parameter in Stored Procedure with Datasets (C#)
- how to use an input parameter in where clause? (MySQL)
- passing parameter to Store Procedure in SqlDataAdapter (VB.NET)
Other Threads in the MS SQL Forum
- Previous Thread: date check constraint
- Next Thread: contains forms of inflectional
| Thread Tools | Search this Thread |
Tag cloud for MS SQL
"last autogrowth business connectingtodatabaseinuse count cursor data database dateadd datepart day" dbsize deadlock delete_trigger getdate highperformancecomputing hpc hpcserver2008 ibm iis limit loop maximum microsoft ms mssql multiple multithreading news number permission position query reporting result server services sets single source sql sqlserver sqlserver2005 subtype supercomputing supertype tables uniqueid update view weekday





