Thanks, but I am not sure what is going on myself, I get that error from isql:
d:\temp>isql -U aaaa -P bbbb -D MYDB -S MYSERVER -i 1.sql
Msg 102, Level 15, State 1:
Server 'MYSERVER_REMOTE', Line 1:
Incorrect syntax near ')'.
Command has been aborted.
(0 rows affected)
1.sql is the above query in which I tried both with select 1 and select * in the subquery.