A friend called me in a hurry, and he accidentally deleted all the records in the two tables in the SQL Server 2008 database with the DELETE statement, and there was no backup before that database. Let me help him out, or he will pay a lot of money
Anyway, my computer had a 2000 database, and last year I installed a 2005 database on that computer. Not long ago I bought a new computer, installed a database 2008 will be on the old computer on a database attached to 2008 above. After the project,
The step is to use the 2 virtual table "inserted" generated by the update action trigger to store the modified data information and the "deleted" table, and then update the corresponding data to the field information in the corresponding datasheet;
SQL Server 9003 Error resolution applies only to SQL2000
(Applicable to SQL2000 only)
"Unable to open new database ' POS '. CREATE DATABASE aborted. (Microsoft SQL Server, Error: 9003) "
Looking at the 9003 error, think of the possible cause of
About SQL Server 9003 Error resolution applies only to SQL2000:
"Unable to open new database ' POS '. CREATE DATABASE aborted. (Microsoft SQL Server, Error: 9003) "
Looking at the 9003 error, think of the possible cause of the log file, and then
1. First we need to determine which user is locked in which table.
--Query Locked table
Select request_session_id spid,object_name (resource_associated_entity_id) tablename
A table that contains the SPID and tablename columns is returned
Why should I also say SQL Server parallelism:
These days in the garden to write about SQL Server parallel to a lot of articles, no matter what, let people have a deeper understanding of parallel operations.
What I want to say is that while
Start a server, is exactly the cloud host, the environment inside is pre-configured, but in the configuration planning tasks, but found that mssql2005 plan backup can not do, will error:
Copy Code code as follows:
SQL Server Create
SQL Server, when you import a flat data source, it is always truncated and an error solution cannot be executed
1 Typical error messages are as follows:
News
* ERROR 0XC02020A1: Data Flow task: Data conversion failed. The data Conversion of column
The Apply operator can implement a combined result of two query results, also known as a cross collection. For example two data combinations (a,b), (A,b), their cross collection for (Aa,ab,aa,ab).
Apply is divided into cross apply and outer apply
OK, now let's see how to generate FullPath:
Copy Code code as follows:
DECLARE @tbl TABLE
(
Id int
, ParentID int
)
INSERT into @tbl
(Id, ParentID)
VALUES (0, NULL)
, (8, 0)
, (12, 8)
, (16, 12)
, (17, 16)
, (1
See MSDN:Http://msdn.microsoft.com/zh-cn/library/ms187331.aspx
The syntax is:
{ [, TIMEOUT TIMEOUT]}
The following example executes a stored procedure at night 10:20 ( 22:20 ) sp_update_job .
Copy Code code as follows:
Use msdb;
MSSQL differential backup, is compared with the previous backup, the different content back down, so that, as long as the previous backup, insert new content, differential backup can be just inserted content back up, and this backup file will be
In our program development, we sometimes modify the table structure in the database because of the changing requirements. It may be the addition or decrease of the column, or modify the data type, or modify the column name, and so on. However,
A recent requirement is to synchronize data across libraries, two databases are distributed on two physical computers, and automatic periodic synchronization can be done through SQL Server Agent jobs, but only if you need to write a stored procedure
We often encounter null in the use or maintenance of SQL Server, so what is NULL? The following is a short description from MSDN (see "Null Values"):
A value of NULL indicates that's the value is unknown. A value of NULL is different A empty
Copy Code code as follows:
Use Demo
Go
/*
Extract the value from the column string of the table code into the record table
The character type in String is
dsddddd,2222222,222221,3
The last one was labeled for Biaoji in the record table
The settings for SQL Server 2005 are as follows:1. Run SQL Server Surface area configuration->surface area Configuration for features-> Select database mail-> Select Enable Database Mail Stored Procedures2. Open SQL Management
Questions raised by Sys.dm_os_waiting_tasks (next)
Written in front of two, in fact, not only to say that the application of sys.dm_os_waiting_tasks, research a very long time of parallelism, they have some understanding, so to share out the hope
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.