1, the wrong delete operation:
--Bad temporary table delete operation because the database is different
IF EXISTS (SELECT * from sysobjects WHERE object_id = object_id (N ' [dbo].[ #tempTable] ') and type in (N ' U '))
Begin
DROP TABLE [dbo].
When you restore a database from a database backup, you find that the log file actually has more than 120 g, not through the SQL management, resolute use DBCC statement cleanup success! Free space! and clear and speed!
First of all, it's important
Problem:
We may often experience the frequent shutdown of SQL Server databases. After analyzing memory and CPU usage, we need to continue to investigate whether the source is in I/O. How do we recognize that SQL Server has I/O-related bottlenecks?
/*Use method, execute directly, pass in parameter (series_guid, query condition) return a datasetSuch as:Query all products under the CYLINDRICAL1 seriesDbo. P_getseriesproductdetail ' Cylindrical1 ', 'Query series Cylindrical1 products containing
(1). With the advent of the big data age, data plays an increasingly important role in our lives, and we are increasingly dependent on data. Therefore, it is a very important technology to study and master the relevant knowledge of database and to
Get, add, modify, delete SQL Server field descriptions
Select O.name as TableName, c.name as ColumnName, P.[value] as Description
From Sysproperties P INNER JOIN
sysobjects o on o.id = p.id INNER JOIN
syscolumns C on p.id = c.id and p.smallid =
Long-term modification or deletion of a table can produce a large amount of fragmentation that affects database performance. The solution is to rebuild the table or index, eliminate fragmentation, and achieve optimization.
Directly on the code:
*
The first thing you need to do is make sure xp_cmdshell is available. You can choose one of the following two methods to achieve this.
1. You can use sp_configure and execute the following script.
EXEC
We can maintain multiple copies of multiple data across the LAN and the Internet over different database servers through data replication, while ensuring data consistency between copies in a synchronous or asynchronous manner.
SQL Server provides
Access developers to SQL Server face many difficulties, but the most intractable problem is the processing of dynamic SQL. In Access, it is fairly common to designate the row of a control as a string. For example, a form contains many selectors
When running SQL Server on a server, we always try to keep SQL Server from the intrusion of illegal users, deny it access to the database, and ensure the security of the data. SQL Server provides powerful built-in security and data protection to
access|server| Export Data
The approach is simple: you need to nest an access connection in a SQL Server connection, and thenWrite to it.Conn.Open "Driver={sql Server};server=mamaco;uid=linner;pwd=123;datAbase=linner "Sql= "SELECT * from Scjh"Set Rs=
The server| server uses a reference that first adds the SQLDMO object, SQLDMO is a COM object, not. NET objects
The following function returns an array of lists of SQL Server servers in the local area network.
Private string[] Getallservers
Server CREATE PROCEDURE Loginuser
@loginUN Char OUTPUT,
@loginPW Char (40)
As
If @loginPW = (select [Password] from users where Username= @loginUN)
return 0;
Else
return-1;
Go
To Loginun the return value, define it as output, and the
server| Data | database
Simple and practical data reading, data manipulation methods, paste into the program directly call
Read method:
Public DataSet Query (string sqltext){SqlConnection myconnection=new SqlConnection
Asp.net|server|sqlserver Introduction:
This article is my follow-up to "How to save pictures in SQL Server". I suggest that you take a look at the article before you read it.
Reading a picture is much simpler than storing it. Output a picture all we
Server| stored procedure yesterday, an old classmate who had never met, suddenly asked how to call SQL stored procedures in VB.
At that time because there is no information on the hand, the machine also did not install SQL, then sent an early
asp.net|server| Schema | data stored procedures:
/**********************************
Function: Read function record according to certain condition
Author: rexsp
Date Created: 2004-01-13
Modified by:
Date Modified:
*****************************
Asp.net|server is much simpler to read than to store a picture. Output a picture all we have to do is use the BinaryWrite method of the Response object.
Format the picture at the same time. In this article, we'll discuss how to retrieve a picture
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