March 26, 2009 at 4:09 am
Some of your commas are a little random. Try the first query, if this works, try the second.
SELECT *
FROM OPENROWSET('SQLNCLI',
'Server= anyserver;Trusted_Connection=yes; Initial Catalog=anydb',
'SELECT GETDATE()')
SELECT *
FROM OPENROWSET('SQLNCLI',
'Server= anyserver;Trusted_Connection=yes; Initial Catalog=anydb',
'exec sp_spaceused ''t_backup_info''')
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
Viewing post 1 (of 2 total)
You must be logged in to reply to this topic. Login to reply