Computer Help Forums: How can I vary which isql.exe is run? - Computer Help Forums

Jump to content


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

How can I vary which isql.exe is run?

#1 Laurel

  • Group: Guests

Posted 21 May 2009 - 12:23 PM

I have an isql.exe for sybase and one for sql server. When I enter ISQL as
a DOS command how does the system know which isql.exe to run? If I go to
the directory where one of them exists, and enter isql.exe at the dos
command, will it run the one in my directory?




#2 Jose

  • Group: Guests

Posted 21 May 2009 - 01:18 PM

On May 21, 2:23 pm, "Laurel" wrote:
> I have an isql.exe for sybase and one for sql server.  When I enter ISQL as
> a DOS command how does the system know which isql.exe to run?  If I go to
> the directory where one of them exists, and enter isql.exe at the dos
> command, will it run the one in my directory?


If you run something from a DOS command, it will look in that
directory first, then start searching the PATH variable from the
beginning to the end. It till run the first isql.exe it finds.

Type PATH from your command window to see your path (which can be
adjusted).

You can make two different batch files to run either one from the same
folder, you can change to the right folder and run the right command
(s).

There is a fair amount of flexibility.

Jose


Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users