Hi All,
I have this query below:
Set @TableNameSQL ='Select Count(*) from' + @TableNameVar
INSERT INTO @tempTable (DevServer)
SELECT a.*
FROM OPENROWSET('SQLOLEDB',
'Server';'uname';'password',
' + @TableNameSQL + ' ) AS a
I need to pass the Query on the openrowset is this possible or how do I do it.
Please help.
Thanks in advance.