suresh
Thursday, May 7, 2009
dynamic Query sql
alter Procedure Search
@strSearch VarChar(100)
AS
Declare @SQL VarChar(1000)
Select @SQL = 'SELECT * FROM ASSET_MASTER '
Select @SQL = @SQL + @strSearch
Exec ( @SQL)
GO
exec search 'where ASSET_NAME like ''monit%'''
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment