1. the tool DTS designer is powerful in importing or exporting data transmission. It supports multiple tasks and is also a visual interface that is easy to operate, but there are not many people who know it, if you only want to move the sub-tables
Some records may be deleted when we use the database. Therefore, the identifiers in the data table may not start from 1 or intermittently. How can we reset and arrange it?
SQL Server IDs are often used to increase by itself, that is, the
I rarely use SQL Server 2008 at ordinary times, and occasionally use it once. I have encountered some problems. After several twists and turns, I found a solution on the official website:
Problem description: After logging on to the database, click
Two methods:
One is to use truncate
Truncate table name
You can delete all values in the table and reset the id value.
Second, DBCC checkident
DBCC checkident ('table _ name', reseed, new_reseed_value)
For example, DBCC checkident
Regular database backup is a very important task. This is even more important if you have encountered data loss, Server failure, or other backup files. However, if manual backup is performed each time, it is very troublesome. Is there any way to
1Distributed transactions
Http://community.csdn.net/Expert/topic/4874/4874208.xml? Temp =. 298443.
Execute the following statement:
Insert into AA select * From srva. DBA. DBO. ga-
Begin tran
Insert into B select * from AA
Commit
1. Install the free learning version of ms SQL Server express edition,
Google SQL Server 2005 express to Microsoft's official website for download. About 53 m.
Http://www.microsoft.com/downloads/zh-cn/details.aspx? Familyid = 220549b5-0b07-4448-8848-
If you are in charge of a SQL Server-based project or you have just been in touch with SQL Server, you may have to face some database performance problems, this article will provide you with some useful guidance (most of which can also be used for
The update statement is used to create an update query and change the Field Values in the specified table based on the specified conditions. The update statement does not generate a result set, and you cannot cancel this operation after updating
The factors that affect the database restoration speed are the same as those that affect the database backup speed. In addition, if you use SQL Server 2005, you can start another optimization task to restore a database that does not exist currently.
SQL Server provides a special data type: image, which is a type that contains binary data. The following example shows how to put text or photos in the database. In this article, we will see how to store and read images in SQL Server.
1. Create a
Instance 1: only the stored procedure of a single record set is returned.
The table of bank deposits is as follows:
Requirement 1: query the stored procedure of bankmoney
Create procedure sp_query_bankmoneyAsSelect * From bankmoneyGoExec sp_query_
How can I use SQL statements to calculate the first day of this month?
You can write as follows:
SELECT DATEADD(mm,DATEDIFF(mm,0,GETDATE()),0);
According to the datediff definition of the date function, the second parameter is the start date and
In fact, the two Database Connection Methods of MySQL and SQL Server are very similar.
The encoding format uses uriencoding = "UTF-8" you can set as GBK or gb2312 as needed, but I personally strongly recommend that allUTF-8
For example, Mysql Data
Follow these steps to connect JDBC to the SQL Server database:1. Load the JDBC driver: Before connecting to the database, first load the driver of the database to be connected to the JVM (Java Virtual Machine. lang. class class static method forname
In the banking and financial system, we often need to implement business operations such as bank transfers, and such financial systems have high concurrency, so we need to consider how to improve performance and ensure security. Using Stored
SQL Server automatic backup cannot delete expired backup files
The Database Server backs up the database at two o'clock every morning and deletes the database backup file five days ago. Otherwise, the hard disk will pop up.
Windows logs provide
From old knife Column
Address: http://blog.csdn.net/keenx/archive/2005/11/23/535451.aspx
Sqlserver is estimated to be for installation or other aspects, it has built-in a batch of dangerous stored procedures. Ability to read registry information,
If exists (select * From DBO. sysobjects where id = object_id (n' [DBO]. [p_exporttb] ') and objectproperty (ID, n' isprocedure') = 1)Drop procedure [DBO]. [p_exporttb]Go
/* -- Data export Excel Export the queried data to excel, including the field
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.