Hi,

I am new programming in SQL Serever, and, I need to write a STORE PROCEDURE
that recives a parameter to be used in the where statement, something like
this:

CREATE PROCEDURE [dbo].[Sample]
key int,
condition varchar(500)
AS
SELECT * FROM table1 WHERE table1.ID = key and condition

Do someone of you can bring me a pice of code to do that??

Thanks in advance....

Boris.