13. T-SQL and SQL query AnalyzerWhat is SQL?What is T-SQL?Introduce new features of T-SQLHow to Use T-SQLSummaryIn this chapter, we will introduce some basic concepts about the Structured Query Language and transact-SQL and their differences. This
Rename table syntaxRename table Tbl_name to New_tbl_name [, tbl_name2 to New_tbl_name2] ... Use this statement to rename one or more tables.
The rename operation occurs automatically, which means that other threads cannot read any tables while
Sunday in order to save the main Library users table space temporarily expanded 20G tablespace, resulting in the DG Library's/bak/datafile/directory is insufficient. The log application to the extended-space archive crashes, and, more tragically,
Information A
1, stop the database server, the database MDF files and LDF files copy backup a copy
2, start the database server, delete the suspect database
3, only with the backup of the database MDF file attached to the database,
SQLServer database management common SQL and T-SQL statements
SQL Server database management common SQL and T-SQL statements
1. view the database version
Select @ version
2. view the operating system parameters of the machine where the database is
Next: T-SQL Dynamic Query (3)--Static SQLObjective:There's a lot of talk about dynamic queries, and this article describes some of the ways to use dynamic SQL to solve dynamic queries.Why use Dynamic sql:In many projects, dynamic SQL is widely used
T-SQL statement to modify the logic name, database name, and physical name of the SQL Server database, t-sqlsql
This example describes how to modify the logical name, database name, and physical name of the SQL Server database using the T-SQL
server| Data | database | Statement SQL SERVER Database Management Common SQL and T-SQL statements
1. View the version of the database
SELECT @ @version
2. View the machine operating system parameters of the databaseEXEC master.. xp_msver
3.
SQLServer database management common SQL and T-SQL statements
1. view the database version
Select @ version
2. view the operating system parameters of the machine where the database is located
Exec master .. xp_msver
3. View database startup
SQL Server database management commonly used SQL and T-SQL: 1. view the database version select @ version several common SQL server patch after the version: 8.00.194MicrosoftSQLServer20008.00.384MicrosoftSQLServer2000SP18.00.532MicrosoftSQLServer2000
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.