Alibabacloud.com offers a wide variety of articles about sql server administration commands, easily find your sql server administration commands information here online.
Deadlock Dead lock
Exception Handling Exception handler
Transaction and nested Transaction (nested)
Index
Best Practice
Performance Optimization
Classic SQL statements
SQL Server Profile monitoring performance
Execution Plan (reference)
Usage of XML in SQL Server
Why does the SQL Server DBA learn PowerShell?
From: http://www.simple-talk.com/ SQL /database-administration/why-this-sql-server-dba-is-learning-powershell/
Joe. TJ is used only for the purpose of disseminating information.
SMO is
Perhaps the most interesting thing is to use the extended stored procedure xp_mongoshell to run the console commands of the operating system. This method is also very simple. You only need to use the following SQL statement:
Exec master. DBO. xp_mongoshell 'dir C :/'
However, more and more database administrators are aware of the potential danger of this extended stored procedure. They may delete or rename
: Annotation characters, operators, and wildcard characters
MS SQL Basics Tutorial: SQL Process Control command
MS SQL Basics Tutorial: SQL other commands
MS SQL Basics Tutorial: Database statistics functions
MS
Securecrt command:
Startup. Sh // start Tomcat. If startup. Sh is mapped, it can be in any directory.Shutdown. Sh // shut down TomcatCD/home // go to the home directory
Ll list all files in the current directory, including detailed information about each file
Ls // only list file names
PS-Ef // view the server processes, which are displayed in the list.
PS: displays the processes currently running in the system/usr/bin/PS [Option]-E: displays a comple
I found that even if xp_mongoshell is unavailable, it is still possible to run CMD on the server and get the echo result. here we need to use several other system stored procedures on the SQL SERVER: sp_OACreate, sp_OAGetProperty and sp_OAMethod. The premise is that Wscript. shell and Scripting. FileSystemObject on the server
-Q. 2. Execute a large script file using osql Point the tool to a script file, step: A. Create a script file (such as Myfile.sql) that contains a batch of Transact-SQL statements. B. Open a command prompt, type a command similar to the following, and then press ENTER: Osql-e-I. Input_file Where Input_file is the script file and its full path. For example, if the script file Myfile.sql in the C:\users folder, Please replace the parameter myfile with C:
the table, the first execution will occur and the second execution will be after we create an index. Each time, SQL Server tells us how much work has been done to retrieve the requested information. We will look for the "Helen Meyer" row in our contact form (her row is in the middle of the table). Initially, the table has no index on either the FirstName column or the LastName column. To ensure that you ca
Title: use commands to import and export ms SQL data
1. Remote Data Import and Export-MSSQL Remote Data Import and Export
Select * into [local database name]... [Table name] from OPENDATASOURCE ('Sqlodb ','Data Source = remote ip address; User ID = sa; Password = password'). [Database name]. dbo. Table NameOrInsert [local database name]... [Table name] select * from OPENDATASOURCE ('Sqlodb ','Data Source
PS: Title is a bit long ...When you upgrade SQL Server R2 to SQL Server 2014, you encounter the following rule validation errors:
Rs_validdatabaseversion
Check that the version of the report server database can be used by a Microsoft
charge of the work and warn .) Each system database has its own primary data file and record file. The database is stored in the directory specified when SQL Server is installed.Create a database SQL Server provides three ways to create a database: using the database creation wizard,
=650; "Src=" Http://s3.51cto.com/wyfs02/M00/8A/FA/wKioL1hAzl2DKsDqAAC1trJdb98301.jpg-wh_500x0-wm_3 -wmp_4-s_3581678069.jpg "title=" 5.jpg "alt=" Wkiol1hazl2dksdqaac1trjdb98301.jpg-wh_50 "/>9. When installing verification information, 2 failures are indicated:1),rs_validdatabaseversion: Check whether the version of the report server database is available by Microsoft SQL
this problem, you can use the begin/end block, which can take multiple commands as a whole to form the next command of the IF command.
IfConditionBeginMultiple linesEnd
1>, if exists ()
The IF exists () structure is determined based on whether the result set returned by the SQL SELECT command contains any. Because it only needs to check whether there are rows in the result set, all columns (select *)
An article in my blog introduces the basic principles and methods of SQL injection. Perhaps the most interesting thing is to use the extended stored procedure xp_mongoshell to run the console commands of the operating system. This method is also very simple. You only need to use the following SQL statement:
Exec master. DBO. xp_mongoshell 'dir C :/'
However, mor
statement Command Daquan own practice summary "word" http://down.51cto.com/data/186082SQL Help Document http://down.51cto.com/data/152667SQL must be known (3rd edition). http://down.51cto.com/data/141091SQL2000 Self-study Course (PDG) http://down.51cto.com/data/62722SQL injection-related commands collation http://down.51cto.com/data/106337SQL2000 Learning Courseware http://down.51cto.com/data/101232Dual-Machine Hot standby Configuration MS
2005 extends the EXECUTE statement to send commands to the linked Server. In addition, you can explicitly set the context for executing strings or commands.
SP_EXECUTESQL
Execute a Transact-SQL statement or batch process that can be repeatedly used or dynamically generated multiple times. Transact-
Tags: mssql mysql link serverSystem environment:Microsoft Windows Server 2003 Enterprise Edition Service Pack 2[Microsoft Windows NT-5.2 (3790)]SQL Server Enterprise Edition 8.00.2066 (SP4)CentosMysqlDeployment steps:Linux Environment1. Create an account in MySQL and Access database permissions (including allowed access IP)Windows environment1. Create a local acc
Tags: SQL Server 2012 database T-SQL learningFor beginners, the writing of T-SQL statements has always been a problem, and beginners are accustomed to using the graphical interface to do related SQL maintenance work. But in a slightly more complex and large
Setupadmin
Installing the replication and management extension process
Securityadmin
Manage logins and CREATE DATABASE permissions and read audits
Processadmin
Managing SQL Server Processes
DBCreator
Creating and modifying databases
Diskadmin
Managing Disk Files
The following two system procedure
Setupadmin
Installing the replication and management extension process
Securityadmin
Manage logins and CREATE DATABASE permissions and read audits
Processadmin
Managing SQL Server Processes
DBCreator
Creating and modifying databases
Diskadmin
Managing Disk Files
The following two system procedure
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.