Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.
goranzr85 Starting Member
5 Posts
khtan In (Som, Ni, Yak)
17689 Posts
declare @sql varchar(max), @query varchar(max)select @query = 'exec YuTeam.dbo.' + @param4 select @sql = 'select * from openquery(loopback, ''' + @query + ''')'print @sql -- print out the inspect the statementexec (@sql) -- execute it
madhivanan Premature Yak Congratulator
22864 Posts
SQLTeam.com Articles via RSS
SQLTeam.com Weblog via RSS
- Advertisement -
Articles
Forums
Blogs
Contact Us
About the Site