execute sql query dynamically
摘要:
eg: create proc pr_test @table varchar(128), @database varchar(128) as declare @str1 varchar(128) declare @str2 varchar(128) set @str2=' select * from '+@database+'.dbo.'+@table exec (@str1+@str2) 阅读全文
posted @ 2008-01-17 15:57 飞天舞者 阅读(275) 评论(0) 推荐(0) 编辑