michael.peppler@gmail.com wrote:
There is no difference - in both cases the connection will get closed
correctly.
Michael
I'll add one thing, sort of unrelated, but since I work closely with
database security, I always cringe when I see people putting the -P
option on the isql command line, especially when it's the sa password.
A better option is to put the password as the very first line of your
input, i.e.:
isql -Sserver -Usa << EF
password
select column from table
go
EF
This prevents the sa password from showing up clear-text when someone
does a 'ps' on your box while the script is running. For tiny,
millisecond-duration sql statements, is there a high risk? No. Is
this anal retentive? Maybe. Is it easy to implement? Yes. Does it
provide better security? Yes. It's all the admin's choice in the end
I suppose but being in a government shop, I have no choice but to be
anal about this stuff.
-Mike