Method 1:
First step:
BACKUP LOG database_name with NO_LOG
or the BACKUP log database_name with TRUNCATE_ONLY--no_log and truncate_only is synonymous here, and any sentence can be executed.
Step Two:
1. Shrink all data and log files for a particular
xp_cmdshell stored procedure is the execution of the local cmd command, requiring the system to log in with the SA permission, that is, if you get the SA command of SQL Server, you can do whatever the target machine, the well-known software
Same-Library operationsSelect a. Column name 1,b. Column name 2,a. Column name 3 from table name 1 as aJoin table Name 2 as BOn a. Association field =b. Associated Fields
Different library operationsSelect a. Column name 1,b. Column name 2,a.
--The field description of the query table--use dataname-----Database nameSELECT T.[name] As table name, C.[name] As field name, cast (ep.[ ValueAs varchar () as [field description]From Sys.tables as TINNER JOIN sys.columnsAs C on t.object_id =
Tutorial on installing SQL Server in Ubuntu, ubuntusql
Microsoft just announced a Public Preview of the next generation of SQL Server, and Canonical officially announced that this preview version can be used in Ubuntu. Whether deployed internally or
Brief Introduction to SQL Server statement categories database paradigm System database composition, SQL paradigm
Preface
Finally, on this day, I will start to study the database again. If there is no accident about the database, I will update a new
Java File objects are commonly used for File operations (recommended ).
File objects are the most commonly used classes for File operations. They are usually used in a lot of work, and I have posted several common methods for my work.
The usage of RAISERROR in SQL Server is described in detail.
Use of RAISERROR in SQL Server
Raiserror is used to throw an error. [The following information is from the help of SQL server 2005]
The syntax is as follows:
RAISERROR ( { msg_id | msg_str
Introduction to Spark SQL data loading and saving instances, and introduction to spark instances
I. Detailed explanation of pre-KnowledgeSpark SQL is mainly used to operate DataFrame. DataFrame itself provides save and load operations,Load: You can
A quick solution for SQL server scheduled job calling Kettle job errors. kettlejob
Error message:
Unable to list jar files in plugin folder 'C: \ Windows \ system32 \ config \ systemprofile \. kettle \ plugins 'unable to get VFS File object for
Use the correct search arguments to improve the performance of the SQL Server database, argumentssql
Address: http://www.sqlpassion.at/archive/2014/04/08/improving-query-performance-by-using-correct-search-arguments/
Today's article will talk about
Detailed description and implementation code of the custom month separation function of SQL server, SQL server
In the recent project development process, I encountered the SQL server automatic month division function requirement. Here I will sort
After SQL2000 is installed, the SQL Server group has no project solution. sql2000server
Yesterday I installed SQL2000, opened the Enterprise Manager, and found that there was no content in the SQL Server group, prompting "no project ". This problem
The code is as follows:Copy code Use tempdbGoIf object_id ('Table _ left') is not null drop table table_leftIf object_id ('Table _ right') is not null drop table table_rightGoCreate table table_left (groupId nvarchar (5), dataSub1 nvarchar (10),
However, if you use the double-click "date and time attribute panel" to modify the computer time, it will not be changed to the SQL server time. The code is as follows:Copy code -- Time before modificationSelect getdate ()-- Enable advanced
Because sqlserver is intelligent, we only need one sentence to implement automatic database backup for SQL server. The code is as follows:Copy code Backup database [SiteWeaver] to disk = n'e: workbackupdatabaseSiteWeaver. bak 'with noformat,
1: If the parameter is of the int type: The code is as follows:Copy code Declare @ a xmlSet @ a =' 1 5 4 3 2 'Select * from product where id in (Select d. x. value ('./id [1]', 'int') from @ a. nodes ('/*') as d (x )) 1: If the
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service