In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)05/31 Report--
It is believed that many inexperienced people have no idea about how to use the ISQL command in MSSQL. Therefore, this article summarizes the causes and solutions of the problem. Through this article, I hope you can solve this problem.
For example, when doing some advanced configuration, and when performing database operations on the client or remotely, ISQL is very convenient. For example, if you invade a host with SQL service, what can you do after invading SQL Server? The best tool is ISQL. Not only Microsoft's SQL supports ISQL, but also Sybase's Enterprise version of the database, Sybase's Unix version, ISQL and other tools have the opportunity to show their talents. ISQL applications that rely on DB-Library API do not support some of the features of SQL Server version 2000. For example, isql cannot access columns defined with the ntext data type and truncate any char, varchar, nchar, or nvarchar columns that exceed 255bytes. It also cannot retrieve results in the form of an XML document. In addition to these limitations in isql, osql and isql support the same functionality. The parameters of the isql command are detailed: isql [- U login id] [- P password] [- S server] isql [-?] | [{- 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 cmd_end] [- Q "query"] [- Q "query"] [- n] [- m error_level] [- r {0 | 1}] [- i input file] [- o output file] [- p] [- b] [- O] all parameters should be case-sensitive Pay special attention to it when using it. -? Displays a syntax summary of the isql switch. -L lists the names of servers configured locally and servers broadcast on the network. -U login_id user logs in to ID. Login ID is case sensitive. -P password is the password specified by the user. If the-P option is not used, isql prompts for a password. If you use the-P option at the end of the command prompt without a password, isql uses the default password NULL). Passwords are case sensitive. -S server_name specifies the default instance of SQL Server to connect to. 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 perform isql from a remote computer on the network. -H hostname is the hostname 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. Use this to trick the hostname displayed in the process information in SQL Server. -d use database name, which specifies that the database name is used. -i input file, which is used to specify the loaded SQL statement file. When you don't want to type too many SQL statements, you can write it in a file and use this parameter as a batch to execute. These are basically enough to use, the following server ABC as an example, the user name sa, password is empty, use ISQL to log in to the database DB: ISQL-U sa-P-S ABC-d DB connection is successful, in the "1 >" after entering the SQL statement, enter, the second line enter go enter, the implementation of the previous SQL statement. SQL statements can be entered in multiple lines, and SQL statements are not executed until you perform a "go" submission. Quit can exit the current interactive life line mode.
After reading the above, have you mastered how to use the ISQL command in MSSQL? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, thank you for reading!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.