It is estimated that a table is inserted in the stored procedure! So how can I find the process name?Select object_name (ID) from syscomments where text like '% table name %'
Deletes the record with the last time record of the repeat ID.ID
After sql2005 is installed, what will be changed in the database after the Chinese version is submitted? Number (not garbled)
It has been verified that the database sorting rule (collation) is incorrect. To write Chinese characters correctly to the
1. Repeat a field from 1 to n ):
Declare @ I int
Set @ I = 0
Update Table1 set @ I = @ I + 1, field1 = @ I
2. ranking by scoreUpdate TablesSet a. Ranking = (Select count (*) + 1From orders Table BWhere a. Total score )From orders Table
3.
Drop procedure xp_cmdshell
Drop procedure xp_servicecontrol
Drop procedure xp_regwrite
Drop procedure sp_oacreate
Drop procedure xp_dirtree
Drop procedure xp_regread
Drop procedure sp_msgetversion
Drop procedure xp_enumgroups
Drop procedure
How to use SQL Server proxy to schedule DTS Packages (Enterprise Manager)
Use SQL Server proxy to schedule DTS Packages
In the SQL Server Enterprise Manager Console tree, expand the "manage" node and click "SQL Server proxy ".
In the details
Create Table Test (ID int primary key, name char (10 ))
Insert into test values (1, 'test1 ')
Insert into test values (2, 'test2 ')
Insert into test values (3, 'test3 ')
Insert into test values (4, 'test4 ')
1. Returned result set
Create
I. Could you tell me how to copy the structure of other tables to a specified table? For example:
There are three tables:
Table A: Field 1, Field 2, and field 3
Table B: Field 1, Field 2, Field 3
Table C: Field 1, Field 2, Field 3
Now, we want to
Test Environment
Operating System: Windows Server 2003
CPU: Intel (r) Xeon (TM) CPU 3.00 GHz, 4-core
Memory: 2 GB, mainly used to run MySQL services
Hard Disk: CCISS 37g
File System: NTFS, supporting large files
Database Version: SQL Server 2000 sp3
JudgmentDatabaseExist?If exists (select * From SYS. databases where name = 'database name ')Drop database [database name]
Check whether a table or Column exists in SQL Server to check whether the table exists.
1. Use System View: SYS.
For example, we want to summarize the consumption items of a person, which correspond to the following two tables: Theme and themedetail.
The theme record is:Themeid (INT) themename (varchar [10])1 dining2 business trips3. Traveling4 others
The
1. Set deadlock_priority
Note: control the session response mode when a deadlock occurs. If both processes lock data and wait until other processes release their own locks, each process can release its own locks, that is, deadlock occurs.
Syntax:
I often see that the for XML Path is used by the experts in the forum. Because it is a search, the detailed usage is recorded.In SQL Server, the for XML Path statement can be used to generate XML data for the queried data. Below are some examples of
Create an SQL Server database
1. Create a Visual C #. Net windows application.
2. Place a button on form1. Change the name attribute of the button to btncreatedatabase, and the text attribute to create database.
3. Use the using statement for the
VB. net dmo SQL Server
Backup RecoveryPublic class form1 inherits system. Windows. Forms. Form # region "code generated by the Windows Form Designer" Public sub new ()
Mybase. New () 'is required by the Windows Form Designer.
Initializecomponent () '
# Region "namespace" Imports System. data Imports System. data. sqlClient # End Region ''' ''' connect to the base class' ''' ''' 2010-02-05 Public MustInherit Class BaseDBConnection Implements IDisposable # Region "constructor" '
Locks are network databasesOneA very important concept. It is mainly used to ensure databases in multi-user environments.Integrity and consistency. Various large databasesThe basic theories of the locks used are consistent.But there are differences
I used to perform database operations in the past, but I seldom used transactions. When I was working on a project recently, I found that occasionally less data was written to the database, and no error was reported. After reading this for a long
Set transaction isolation level (Transact-SQL)
Control the locking behavior and row version control behavior of the Transact-SQL statement issued by the connection to SQL Server.
Transact-SQL syntax conventionsSyntax
SET TRANSACTION ISOLATION
Overview:
Run SQL Server on the Cluster
Hardware and software requirements
Add a node to a cluster
Cost-saving methods
Server clusters allow you to connect many physical servers (or nodes) as
Two Methods of SQL Server paging query Abstract: SQL Server paging query is frequently used. The following describes how to implement two methods of SQL Server paging query, if you are interested in this, take a look.
Two Methods of querying by
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