try this one...
USE Northwind -- I'm using Northwind Database of SQL 2000
CREATE PROC Test @Field nvarchar(30)
AS
DECLARE @Str nvarchar(100)
Set @Str = 'Select ' + @Field + ' From Products Where ProductName =''Chai'' ' -- Use two single quotes( ' ' ) to include the single quotes in your -- dynamic query
EXECUTE(@Str)
/* ========================================================= */
Exec Test 'ProductName'
MCP.MCAD.MCDBA
MCTS:SQL Server 2005
MCTS: Business Intelligence
MCITP:SQL Server 2005 Database Administrator
MCITP: Business Intelligence Applications Developer
Microsoft Certified Trainer
Database Administrator: Trend Micro