jp2msft
2008-08-08 19:57:02 UTC
Can a stored procedure be written with a column name?
For Table1 with ColA, ColB, ColC, I want a query like:
EXEC sp_Mine 'ColA', '100%'
I want the results to be like:
SELECT ColA, ColB, ColC
FROM Table1
WHERE ColA Like '100%'
If this is the wrong board, let me know and I'll post elsewhere. I am not an
SQL guy.
For Table1 with ColA, ColB, ColC, I want a query like:
EXEC sp_Mine 'ColA', '100%'
I want the results to be like:
SELECT ColA, ColB, ColC
FROM Table1
WHERE ColA Like '100%'
If this is the wrong board, let me know and I'll post elsewhere. I am not an
SQL guy.