This article mainly introduces the integration acquisition and consumption of stored process Learning example, this is just learning how to use stored procedures, the need for friends can refer to the
1.GM_JF Customer account Integration form
2.
"1" returns in XML(1) An attribute that is not defined
Select Logisticsid,logisticsname from Logisticscompany for XML auto,elements
(2) Defining the property section's
Copy Code code as follows:
SELECT Top as Tag,
NULL as Parent,
--View FOREIGN KEY constraints for the specified table
SELECT * from sysobjects where parent_obj in (
Select id from sysobjects where name= ' table name ')
and xtype= ' PK '
--View All tables
SELECT * from sysobjects where xtype= ' PK '
--Delete a
One what is DAC
SQL Server 2005 provides an administrator with a special diagnostic connection for use when it is not possible to establish a standard connection with the server. Even when SQL Server does not respond to standard connection requests,
More or less have done a tree directory, product classification, such as level two or level three menu, if you encounter more levels of classification, the general use of recursion. Using recursion in a program more or less adds some performance
--drop procedure P_page
--go
CREATE PROCEDURE P_page
(
@Tables varchar (1000)--table name such as TestTable
@PrimaryKey varchar,--table's primary key, must be unique
@Sort varchar = NULL,--sort fields such as f_name ASC or F_name desc (Note that
Mssql+php Database Operations Class
Class Dbqueryformssql {/*** Maximum number of records returned by the Select method*/Const MAX_ROW_NUM = 100000;
/*** Data query result set object* @var Object $dataSet*/Public $dataSet = NULL;
/*** Data Source
SQL Transaction Usage
Simply put, a transaction is a mechanism for maintaining the integrity of the database.Its implementation form is to embed ordinary SQL statements into the BEGIN Tran ... Commit Tran (or full form Begin Transaction ... Commit
In developing Web applications, we often need to process drives, folders, and files in a file system, such as collecting information about drives, creating, adding, moving, or deleting folders and files. A new set of the FSO (File system object)
In developing Web applications, we often need to process drives, folders, and files in a file system, such as collecting information about drives, creating, adding, moving, or deleting folders and files. A new set of the FSO (File system object)
Server
Problem description
Business needs are as follows:
There are tables A and B, the two tables are structurally consistent, for different business services, now write a stored procedure, the stored procedure accepts a parameter, when the
Http://blog.sina.com.cn/s/blog_7b8b13080102v50t.html
A blocking that is caused by a transaction that is not committed as expected, characterized by a problem connection that has long been in the idle state, but if you check Sysprocesses.open_tran,
fso| Import Data | database
In developing Web applications, we often need to process drives, folders, and files in a file system, such as collecting information about drives, creating, adding, moving, or deleting folders and files. A new set of the
Server
Q: Suppose I now have 2 SQL Server (Windows Server 2003 + SQL Server SP3), named DB01 and DB02, trusting each other, adding each other to the list of linked servers, without any problems with regular access, but Unable to enable distributed
Problem Description: A basic information table, with more than 30 tables in the system, there is a foreign key relationship, when the basic data to delete, you need to determine whether has been used, if used to change the flag, if not used to
----View additions and deletions do not affect the underlying table----view does not allow repeating columnsCreate Viewhaha--Create a View asSelectStudent.*, Score.cno,score.degree fromStudent,scorewhereStudent. Sno=Score.snoSelect *
The origin of 11.4.1 affairs
When you update a database with the delete command or the update command, you can only manipulate one table at a time, which can cause data inconsistencies in the database. For example: The enterprise cancels the
Brief introductionA stored procedure is a encapsulated process consisting of some SQL statements and control statements that reside in a database, can be called by a client application, or can be called from another procedure or trigger. Its
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.