Label:SQL Server 2008 does not allow remote connections by default, the SA account is disabled by default, and if you want to connect to SQL Server 2008 on a remote server with SSMs locally, you need to do a two-part configuration: Use the SA account to log on to SQL
Name of the local server
@ @TRANSCOUNT
Number of transactions opened by the current connection
@ @VERSION
SQL Server The version information
Let's look at an example: 1print ' version of SQL Server ' +@ @VERSION2print
implemented with BCP
/*Stored Procedure for Data Import/ExportYou can import/export the entire database or a single table based on different parameters.Call example:-- Export call example---- Export a single tableExec file2table 'zj', '','', 'xzkh _ sa .. region information', 'c:/zj.txt ', 1---- Export the entire databaseExec file2table 'zj', '','', 'xzkh _ Sa', 'c:/docman ', 1
-- Import call example---- Import a single tableExec file2table 'zj', '','', 'xzkh _ sa .. region information', 'c:/zj
settings of the client. The port must be consistent with the server.
(Figure 4)
Through the above checks, the first error can be basically ruled out.
1.2:"Unable to connect to the server, user XXX Login Failed"
(Figure 5)
This error occurs because SQL server uses"Au
cause of the error is that SQL Server uses the "Windows only" authentication method. Therefore, you cannot use the Logon account (such as sa) of SQL Server to connect to SQL Server. Th
by SQL Server's "Windows only" authentication method. Therefore, you cannot connect to SQL Server's Logon account (such as sa.The solution is as follows:1. Use the enterprise manager on the Server side and select "use Windows Authentication" to connect to
server| Security | introduction | planning | data | database | Database security in the process of improving the security mechanism implemented by the SQL Server 7.0 series, Microsoft has built a flexible and powerful security management mechanism that enables users to access SQL S
with the server.
(Figure 4)
Through the above checks, the first error can be basically ruled out.
1.2:"Unable to connect to the server, user xxx Login Failed"
(Figure 5)
This error occurs because SQL Server uses"Authentication Method for Windows onlyTherefore, you can
that you have to be patient, the execution of large scripts, it takes a certain amount of time! Actually, too!What is Osql?osql is a Microsoft Windows 32 command Prompt tool that you can use to run Transact-SQL statements and script files!How do I use Osql?Type cmd in Start-to-run, using "OSQL-?" command, you can display Help for the osql command line.Note: The options list for the osql tool is case-sensitive and is noted when used. Note: In the we
server| Security | introduction | Planning Microsoft has built a flexible and powerful security management mechanism that can manage the security of users accessing SQL Server server systems and databases. Following the steps in this article, you can build a flexible, manageable security policy for
client.In general, we also need to enable named Pipes and TCP/IP protocols.Click the TCP/IP protocol and select Properties to check the client default connection port settings, which must be consistent with the server.Click the Aliases tab, and you can also configure aliases for the server. The alias of the server is the name used to connect,The server in the co
new database,The logical name and quantity are the same as the logical name and quantity of the database in the backup file (*. Bak;The name of the physical file of the new database must be different from the physical file of the database in the backup file (*. Bak. Ii. Export and Import a table in SQL Server 1. No firewall. The same LAN may not be in the same LAN, but can access each other through the I
SQL Server database is growing, attracting a good look, while those who are plotting to protect the SQL Server database, so that it from malicious destruction or loss of data information, ten tricks for you to solve these concerns. 1. Install the latest service pack
One of the most effective ways to improve
SQL Server SQL statement Import and ExportOverview: SQL statements of the Microsoft SQL Server database are imported and exported, including data imported and exported with other databases and files.
/*** Export to excelExec mas
.
Dbid
Smallint
ID of the database currently being used by the process.
Nt_username
Nchar (128)
Windows user name for the process, if using Windows authentication, or a trusted connection.
Status
Nchar (30)
Process ID status. For example, running and sleeping.
Wait_type
Bigint
Current wait time in milliseconds.
Individual Query
Varchar
SQL
see which protocols are enabled by the client.
In general, we also need to enable named Pipes and TCP/IP protocols.
Click the TCP/IP protocol and select Properties to check the client default connection port settings, which must be consistent with the server.
Click the Aliases tab, and you can also configure aliases for the server. The alias of the server is th
, which must be consistent with the server.
You can also configure aliases for the server by clicking the Alias tab. The server alias is the name used for the connection, and the server in the connection parameter is the true server name, which can be the same or different.
This article describes how to disable Microsoft Windows NT System Administrators from having System Administrator (SA) permissions on SQL Server. By default, the Microsoft SQL Server installer creates a "builtin/administrators" Logon, which grants system administrator (SA) permissions to any account in the local admini
checks, the first error can be basically ruled out.
2. "unable to connect to the server, user XXX Login Failed"
This error occurs because SQL server uses the "Windows only" authentication method,Therefore, you cannot connect to the SQL
Server uses the "Windows only" authentication method, so you cannot use the Logon account of SQL Server (such as sa). The solution is as follows:1. Use the enterprise manager on the Server side and select "use Windows Authentication
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.