Search notes:
SQL Server tool: osql
osql
is a console application, that is, it is started from
cmd.exe
,
PowerShell
, etc.
When started, osql reads
SQL
and
T-SQL statements
from
stdin
and sends them to an
SQL Server instance
for processing.
After processing, the result is then displayed on stdout.
osql uses
ODBC
to communicate with
SQL Server
.
The executable of osql (
OSQL.EXE
) is located under
%ProgramFiles(x86)%\Microsoft SQL Server\nnn\Tools\Binn
and/or
%programfiles%\Microsoft SQL Server\nnn\Tools\Binn
.
osql is deprecated in favor of
sqlcmd
See also
SQL Server tools
Index