Ms SQL has a simple, convenient and efficient management interface, what is the use of iSQL? What is an iSQL tool? ISQL is a database tool for interactive execution of transact-SQL statements and scripts.
Microsoft Osql is a similar tool. For example, do some advanced configuration, or execute database operations on the client or remotely.
Work ISQL is very convenient. For example, what can I do if I intrude into a host with SQL services? ISQL is the best tool.
Not only does Microsoft SQL support iSQL, but also supports Sybase enterprise databases. Sybase's UNIX and iSQL tools are even more useful. Application where iSQL depends on the DB-library APIProgramSome functions of SQL Server 2000 are not supported. For example, iSQL cannot access columns defined using the ntext data type and truncates any char, varchar, nchar, or nvarchar columns that exceed 255 bytes. It cannot retrieve results in XML format. In addition to the restrictions in iSQL, osql and iSQL support the same functions.
detailed description of iSQL command parameters:
iSQL [-u Login ID] [-P Password] [-S server]
iSQL [-?] | [-L] | [
{{-u login_id [-P Password]} |-e}
[-S server] [-H hostname] [- d use database name]
[-l time_out] [-T time_out] [-H headers]
[-s col_separator] [-W column_width] [-A packet_size]
[-E] [-x max_text_size] [-C prepare _end] [-Q "query"] [-Q "query"]
[-N] [-M error_level] [-r {0 | 1}]
[-I input file] [-O output file] [-p] [-B] [-O]]
All parameters must be case sensitive.
-? Displays the syntax Summary of the iSQL switch.
-L lists the names of the Servers configured locally and the servers broadcast on the network.
-U login_id: User Logon ID. The logon ID is case sensitive.
-P password is the password specified by the user. If the-P option is not used, iSQL prompts you to enter the password. If the-P option is used at the end of the command prompt without a password, iSQL uses the default password NULL ). The password is case sensitive.
-S SERVER_NAME specifies the default instance of SQL Server to be connected. If no server is specified, iSQL connects to the default instance of SQL server on the local computer. This option is required if you want to execute iSQL from a remote computer on the network.
-H hostname is the host name of the client used. The workstation name is stored in sysprocesses. hostname and displayed by sp_who. If not specified, the current computer name is used. This can be used to spoof the host name displayed in the process information in SQL Server.
-D Use Database Name, used to specify the database name.
-I input file: used to specify the mounted SQL statement file. If you do not want to input too many SQL statements, you can use this parameter to execute them as a batch.
The above is basically enough. The following uses the server ABC as an example. The user name SA and password are empty. Use iSQL to log on to the database DB:
ISQL-U sa-p-s ABC-D DB
If the connection is successful, enter the SQL statement after "1>", Press enter, and enter go to press enter in the second line to execute the previous SQL statement.
The SQL statement can be input in multiple rows. The SQL statement is not executed until "go" is submitted.
Quit can exit the current interactive life-line mode.