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
In the previous introduction of SQL2K has been mentioned in the SQL2K of XML support, using the FOR XML statement can easily translate the results of execution into an XML, which can greatly improve the efficiency of the system and development speed,
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
prerequisite, must have Microsoft SQL Server Driver JDBC driver, this driver can go to Microsoft official download
Eclipse3.3 Interface
SQL ServerThe default is offTCP/IPthe data link is,first, find it in the Start menu.SQL Server
How to determine the maximum value in the SQL Server bar
CREATE TABLE [dbo]. [Minmax] (
[Minmaxid] [INT] IDENTITY (1,1) not NULL,
[Value1] [INT] Null
[Value2] [INT] Null
[Value3] [INT] Null
[Value4] [INT] Null
CONSTRAINT [Pk_minmax]primary
① after double-clicking the installation, a folder is generated and then the CMD command is entered② use cmd to enter the corresponding folder, occasionally "D:msde", and then enter the command:Setup sapwd= "sa" Securitymode=sql
Invoking SQL Server's stored procedures in ASP can speed up the program, so these days in the study of ASP in the use of SQL Server stored procedures, are summarized as follows, many of these ideas are directly from the chinaasp forum, hoping to
To configure how EF links SQL Server
Materials:
1, Entity Framework version: 6.0 + (EntityFramework.dll, EntityFramework.SqlServer.dll) (You can use nugget to get the latest version of EntityFramework)
2, VS2013 (FrameWork4.5)
Steps:
1. Create a
Sql server:1, Entityframework.bulkinsert. Applies only to SQL Server. To achieve the MySQL batch insert, you have to implement some methods, such as registration driver, temporarily not capable.2, Z.entityframwork.extensions. Applies to
Very often, some fields in a database table are made up of Chinese and letters or numbers, but sometimes we need to remove the Chinese from the field. There are a number of ways to implement this requirement, and here's one solution.First we set up
Abstract: today, I want to write a Windows service program in C #, which connects to an SQL Server 2003 database on Windows 2000 Server and uses SQL Server for authentication. Common programs can be connected, but Windows service programs cannot be
Automatic Database Backup settings for SQL Server 20001. Make sure that the SQL Server Agent service is in the starting state (you can view and start it in "SQL Server Service manager" or in the system service)2. Choose "SQL Server Enterprise
Solution:0. First, check whether the database has a deadlock.1. The most direct way is to increase the size of the IIS connection pool.2. Find a large session request in the program and modify the code.3. Restrict the maximum number of IIS processes
Data Pump: conversion dataDTS Data Pump is a data transmission object that drives data import, export, and conversion operations.Data pumps are used during data conversion, data-driven queries, and parallel data pump tasks. ExecutiveThe process of
1. When the automatic numbering type in the ACCESS database is converted, SQL server does not set it to the automatic numbering type,2. For date-related fields during conversion, SQL SERVER is of the smalldatetime type by default. We 'd better
A few days ago, Microsoft released a security bulletin saying that two security defects in SQL Server make it vulnerable to DOSMicrosoft pointed out that both SQL Server 2000 and SQL Server 7.0 are affected by these two security defects.The two
Take table Deparment as an exampleTable structure:Id department internal code,DeptCode department code,ParentDeptId internal code of the superior departmentUse T-SQL: The code is as follows:Copy code With Dep( Select Id, DeptCode, DeptName from
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
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.