-S(local)\SQL200

I am not sure it is ok. Try to use your computername instead "(local)"

-Scomputername\SQL200

I don't know what should be wrong. I am using OSQL and CMDSQL against MS SQL2005
SP1 without problems  :-(

If I try your example:
[color=blue]select name from sysdatabases[/color]

I got result:
[color=blue]Msg 208, Level 16, State 1, Server xxxxx, Line 1
Invalid object name 'sysdatabases'.
[/color]

-- 
<http://forum.pspad.com/read.php?2,18695,33436>
PSPad freeware editor http://www.pspad.com

Odpovedet emailem