MS SQL Server provides a number of commands for database repairs that can be attempted when the database is challenged or some cannot complete the read.
1. DBCC CHECKDB
After restarting the server, perform the following SQL database repairs in SQL
The advantage of parallel query is that it can handle query job through multiple threads, which improves the efficiency of query. The SQL Server database provides a parallel query for database servers with multiple CPUs to optimize the performance
XML query in SQL Server: For XML specify Auto
Objective
In SQL Server, an XML query can specify Raw,auto,explicit,path. This article introduces some examples of XML queries that specify auto in SQL Server.
Basic example
Fragment 1:
With
How should SQL Server implement dynamic SQL? Here's how SQL Server performs dynamic SQL two of the right way, and hopefully gives you a deeper understanding of SQL Server's dynamic SQL execution.
Dynamic Sql:code This is executed dynamically. It is
"3145 errors" encountered in SQL Server 2000 database porting to SQL Server 2008R2 database server and Solutions
After one weeks of hard work, the TFS server was finally installed and assigned accounts and mailboxes to each team member. However,
Error message displayed:
Error message:
The process was unable to the table "dbo". " Company "" For bulk copy. (Source: MSSQL_REPL, Error number: mssql_repl20037)
Getting Help: http://help/MSSQL_REPL20037
Batch Send failed
The length of text
1. Import or export through the designer of the tool DTS
DTS's designer features a powerful, multitasking, visual interface, easy to operate, but not many people know, if only for the SQL Server database to move some of the tables, this method is
SQL Server Common built-in functions and usage
Select cast (' 2012/02/03 ' as DateTime);
Select CONVERT (varchar, GETDATE (), 120);--Convert to date type
Select Case when ID =1 THEN ' A0 ' ELSE ' TT ' "from Demo1;--case '
Select Len (' SSA
This problem is especially important for a slightly larger project, and if there are hundreds of stored procedures in the database,
Can not find a one, even if they understand the business and the system, the time is long, it is inevitable to
You now need to access another two databases (NZ and AU) from another server (B) in the database (Master) on a single server (a). AU and NZ are part of the site's real-time data, and the current replication scheme for one step is basically
The concept of Microsoft SQL Server 2000 replication: A set of techniques for replicating and distributing data and database objects between databases and synchronizing them to ensure their consistency.
With replication, you can distribute data to
Microsoft's worldwide operations run on SAP R/3, used by 57,000 employees and distributed in 89 countries. As the world's largest software company, Microsoft has a large number of data to be tracked, running 20 million SAP transactions per month on 1
server|sqlserver| Data | database
In the. Net framework, it is easy to invoke COM components, and sometimes we need to get a list of service instances running on a SQL Server and a database listing on an instance. This work can be done easily with
server| Data | database
Usually, you need to get the current date and calculate some other date, for example, your program may need to judge the first or last day of one months.
Most of you probably know how to split dates (year, month, day, etc.),
server| Data | Database ASP and its ADO component introduction
----ASP (Active server Pages) is a server-side scripting language that can be viewed as a combination of HTML, scripting, and CGI (Common Gateway interfaces). But it is more secure than
server| Program | data | Database directory
L Summary
L General installation program production
• Deploy the SQL Server database in the Setup program
1. Execute database script file by calling osql
2. By loading the script file as a resource file
3.
Database Mirroring
Database mirroring is a technology that can improve database availability. These changes are also automatically applied to the mirrored database when the principal database changes. When a principal server fails, the client
View Restrictions
To create an index on a view in SQL Server 2005, the corresponding view definition must include:
Any, not any OPENROWSET, OPENQUERY, OpenDataSource
Arithmetic OPENXML on imprecise (floating, real) values
COMPUTE, COMPUTE by
To obtain all database information on a SQL Server using stored procedures sp_databases
Execute command in query analysis exec sp_databases
Result: Master 14464 NULL
Model 1280 NULL
msdb 14336 NULL
Northwind 4352 NULL
Pubs 2560 NULL
Store 1912
Precautions:1, the main from the server to add new system users and set a good password;2, the master-slave server is turned on the SQL Server Proxy service, and set to boot automatically3. In database configuration management, set the login
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