Viewing 10 posts - 106 through 115 (of 115 total)
That's brillant. Thank you all for your help.
September 24, 2008 at 2:37 am
I get this message:
Could not find server 'SELECT a' in sys.servers. Verify that the correct server name was specified. If necessary, execute the stored procedure sp_addlinkedserver to add the server...
September 23, 2008 at 9:21 am
If I change all the quotes (") to apostrophes (') it comes back with the SQLOLEDB ERROR when I change to Print @sql
However if I run my original...
September 23, 2008 at 8:56 am
Changed all quotes(") to apostrophes (')
still get:
Incorrect syntax near 'SQLOLEDB'.
September 23, 2008 at 8:34 am
OpenRowset is configured on the server.
September 23, 2008 at 8:29 am
I have changed the code to Exec (@sql) but I now get:
Incorrect syntax near 'SQLOLEDB'.
September 23, 2008 at 8:23 am
Msg 203, Level 16, State 2, Line 20
The name 'SELECT a.* FROM OPENROWSET("SQLOLEDB","NOTREALSERVER";"NOTREALUSER";"NOTREALPASSWORD","SET FMTONLY OFF;EXEC master.dbo.xp_fixeddrives")AS a;' is not a valid identifier.
September 23, 2008 at 8:16 am
Thank you very much, this worked.
September 15, 2008 at 10:02 am
Still get the same result
September 15, 2008 at 7:58 am
Just tried this but I only seem to get the IIS Servername rather than the PC name, the same as I get when I do SP_WHO2. Is it possible to...
September 9, 2008 at 8:58 am
Viewing 10 posts - 106 through 115 (of 115 total)