October 16, 2008 at 8:37 am
hello (Urgent),
There is any possibility is there in stored procedure to send query with parameter like this.
This is my parameter:
here I pass this paremeter with C# code.
Parameter =Where studentname='giri'
I wrote stored procedure like this..............
create procedure proc_name(@parameter varchar(200))
as
select * from employee @paramerter.
go,
run:
execute porc_name 'parameter'
GO
But I impliment it got error.
Thanks
Dastagiri.D
October 17, 2008 at 12:55 pm
select * from employee
where = @paramerter
October 17, 2008 at 2:06 pm
I think the proposed solution will work.
You're fortunate that a good SQL Scripter was reading the "backups" forum, because that might not always be the case.
You'd have had a more certain chance of getting the help you need by posting in the correct forum.
No worries, just trying to keep it all consistent.
Cheers and happy Friday
~SQLBOT
Craig Outcalt
October 17, 2008 at 2:12 pm
October 17, 2008 at 9:58 pm
hi..
Robert klimes,
I tried your answer.Its working fine.I am very happy of this.
Thank you,
Dastagiri.D
Thanks
Dastagiri.D
October 17, 2008 at 10:14 pm
Hi,
sorry for the sending in backup forums.
Thank you,
Dastagiri.D
Thanks
Dastagiri.D
Viewing 7 posts - 1 through 6 (of 6 total)
You must be logged in to reply to this topic. Login to reply