Alibabacloud.com offers a wide variety of articles about sql server common criteria compliance, easily find your sql server common criteria compliance information here online.
Currently, we have received a task in which the company's system must comply with FDA compliance. The boss does not want to put this part inProgramAfter the development is completed, the task is pushed to the database.
There is no way to accept it.
Most compliance software on the market uses trigger or agent on the server to track data changes. The main comme
Tags: SQL multi-condition sieve weightUsually we check the weight, and filter the duplicates according to a certain condition.SELECT * FROM dbo. T_ecert Awhere (A.ecertid) in (select Ecertid from T_ecert GROUP by Ecertid+idcard have count (*) > 1)But what if you need to have multiple conditions?Oracle can do thisSELECT * FROM dbo. T_ecert Awhere (A.ecertid,a.idcard) in (select A.ecertid,a.idcard from T_ecert GROUP by Ecertid,idcard have count (*) > 1)
]. [Getrecordbypage]
@TotalPage int output,--Total pages
Total number of @RowsCount int output,--
@PageSize int,--How much data per page
@CurrentPage int,--Current page
@SelectFields nvarchar (1000),--SELECT statement but does not contain a select
@IdField nvarchar,--primary key columns
@OrderField nvarchar,--sort field, if multiple fields, except the last field, followed by a sort condition (ASC/DESC), no order by, last sorted field without sorting criteria
;
Stored Procedure Code:
Copy Code code as follows:
CREATE proc [dbo]. [Getrecordbypage]
@TotalPage int output,--Total pages
Total number of @RowsCount int output,--
@PageSize int,--How much data per page
@CurrentPage int,--Current page
@SelectFields nvarchar (1000),--SELECT statement but does not contain a select
@IdField nvarchar,--primary key columns
@OrderField nvarchar,--sort field, if multiple fields, except the last field, followed by a sort condition (ASC/DESC),
Conditional judgment notation:when performing actions on a daily record, judge the conditions that are restricted-----operator := (mismatch check) ! = Example: Products not produced by supplier 1003 Where vend_id and two both meetOR Two conditions in which one can be satisfiedNote: You should pay attention to the priority of both and and or when using And>orFor example: List all products priced at more than $10 and manufactured by 1002 or 1003?Where vend_id=1002 or vend_id=1003 and prod_price
Original: About SQL Server character type query condition case-sensitiveThe SQL query is written as follows:SELECT * from Users where username= ' Wange 'SELECT * from Users where username= ' Wange 'The results of the above two query statements are the same, indicating that the username condition is not case-sensitive.To use the above statement to perform a case-s
Tags: number server time serve ber ALS sel nbsp another Use [CDM] GO/** * * * Object:trigger [dbo]. [Updateakisflight] Script DATE:2018/6/14 16:43:29 * * * * **/SET ANSI_NULLS on Go SET quoted_identifier on Go ALTER TRIGGER [dbo].
[Updateakisflight] on [dbo].
[Flightwarntime] For Insert,delete as BEGINif(Exists (Select 1 frominserted) and NOT EXISTS (Select 1 fromdeleted)) Begin declare @TwoCode nvarchar ( -), @FlightNum nvarchar ( -), @Thr
SQL Server Performance Tuning methodology and common tools, SQL Server Tuning
In earlier articles, we mentioned the DETECT methodology in Performance Tuning. Here we will briefly review the DETECT methodology.
Discover the problem: found the problem
Lead e the conditions: E
1. view the database version
Select @ version
Common SQL server patch versions:
8.00.194 Microsoft SQL Server 2000
8.00.384 Microsoft SQL Server 2000 sp1
8.00.532 Microsoft
Common Data Types in SQL Server: SQL Server Data Types
To http://www.cnblogs.com/andy_tigger/archive/2011/08/21/2147745.html
Bit integerThe bit data type is an integer, and its value can only be 0, 1, or null. This data type is used to store data with only two possible value
Common SQL Server statements and SQL Server statements
Select * into A -- automatically generate Table A. The structure data of Table A is the same as that of Table B.From BInsert into A -- A must be created in advanceSelect * from B
Insert into A (Field 1, Field 2 ,..
server|sqlserver| Error | data | database
Unable to open the user default database , logon failed, which is one of the problems that SQL Server users are familiar with. When using Enterprise Manager, Query Analyzer, various kinds of tools and application software, as long as the connection to the SQL
SQL Server database management common SQL and T-SQL statements
1. view the database version
Select @ version
2. view the operating system parameters of the machine where the database is located
Exec master .. xp_msver
3. view database startup parameters
Sp_configure
4. view
1. View the version of the database
SELECT @ @version
2. View the machine operating system parameters of the database
EXEC master.. xp_msver
3. View Database Startup Parameters
sp_configure
4. View Database Startup time
Select CONVERT (varchar, login_time,120) from master. sysprocesses where spid=1
To view the database server name and instance name
print ' Server Name ... ...: ' + CONVERT (varchar (), @ @SE
like '% @ str %'Create an encrypted stored procedure or function WITH the with encryption parameter before theYou can use sp_decrypt to decrypt encrypted stored procedures and functions.10. View user and process information in the databaseSp_whoView information about active users and processes in the SQL Server databaseSp_who 'active'View the locks in the SQL
1. View the version of the databaseSELECT @ @versionSeveral common types of SQL Server patched version numbers:8.00.194 Microsoft SQL Server 20008.00.384 Microsoft SQL Server SP18.00.53
1. view the database versionSelect @ version
Common SQL server patch versions:
8.00.194 Microsoft SQL Server 20008.00.384 Microsoft SQL Server 2000 sp18.00.532 Microsoft
Advantages of using PowerShellPowerShell scripts give DBAs more advantages than using standard T-SQL and SSIS for automation. These advantages include:1. It is easier to automate multi-Server processing. We can execute any specific task on multiple SQL Server instances.2. Easier access to Windows resources, such as fil
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.