SQL Server AlwaysOn Architecture and principles

Original address: http://dufei.blog.51cto.com/382644/1384210/SQL Server AlwaysOn Architecture and principlesDuffyThe AlwaysOn technology supported by SQL Server2012 centralizes the benefits of failover clustering, database mirroring, and log

Excel import data to SQL Server

1. Read the Excel data to the dataset Public StaticSystem.Data.DataSet Excelsqlconnection (stringFilePathstringtableName) { stringStrcon ="Provider=Microsoft.Jet.OLEDB.4.0;Data source="+ filepath +"; Extended properties= ' Excel 8.0;

View the port number of SQL Server [go]

View the port number background for SQL ServerThese days you want to write a database connection test program that uses Java to connect to SQL Server. However, after viewing the database connection character format, you find the port number that

SQL Server transaction isolation level and lock request and release

Dirty reads: When a transaction begins to update the data, but the transaction is not fully committed, this time the second transaction begins to read the data and reads the data changed by the first firm.The second transaction reads the data

How to export data from a SQL Server table or generate an INSERT INTO statement [go]

Enter the table name to generate the INSERT statementdrop proc Proc_insert//delete if presentGoCreate proc Proc_insert (@tablename varchar (256))AsBeginSET NOCOUNT ONDECLARE @sqlstr varchar (4000)DECLARE @sqlstr1 varchar (4000)DECLARE @sqlstr2

SQL Server Paging

idn

create PROCEDURE [dbo].[GetPageDataOutRowNumber](@tn nvarchar(30),--表名称@idn nvarchar(20),--表主键名称@pi int = 1,--当前页数 @ps  int = 7,--每页大小 @wh nvarchar(255) = ‘‘,--wehre查询条件@oby nvarchar(255) = ‘‘,--orderby 排序@rc int output,--总行数(传出参数)@pc int

Deployment issues for SQL Server report Service

Recently in the study of SSRS deployment issues, because previously also used the SSRS report, but the report was developed at that time there is a dedicated integrated system, do not need my own deployment, so the deployment of this piece is not

SQL Server View all table sizes, occupied space

Query all database names and their sizes on the machine where the database is located2. Query the names and sizes of all tables under the databasePlease expert guidance! 1. View all database related information, parcel storage path, etc.Use

Nonclustered indexes on SQL Server 2014, table variables

As you can see from Paul White's Twitter, in SQL Server 2014, for table variables (tables Variables), it is supported for non-unique clustered indexes (Non-unique Clustered Indexes) and nonclustered indexes (non-clustered Indexes). Seeing this, I

The SQL statement of the performance optimization of--sql Server database reproduced

Reprinted from: http://www.blogjava.net/allen-zhe/archive/2010/07/23/326927.html1. Request fields on demand, say goodbye to "select *"The extraction of a field must be based on the principle of "how much to use" and avoid using "SELECT *". To do

SQL Server triggers

A trigger is a special type of stored procedure that differs from the stored procedure we described earlier. Triggers are triggered primarily by an event that is automatically invoked to execute. The stored procedure can be called by the name of the

SQL Server full, differential, and transaction log backups and restores (scripting and GUI implementations) [original]

A Scripts for full backups, differential backups, and transaction log backups--Full backup DatabaseBACKUP DATABASE to DISK = ' E:\20150609_75\bak\Test_bak_full.bak ' with Init--Differential BACKUP DatabaseBACKUP DATABASE to DISK = ' E:\20150609_75

SQL Server Learning Note Series 7

First, write it in front.In the blink of an eye is Monday, recalling the days of double Hugh, short and happy, in the sunny afternoon, can do their own to do anything, comfortable comfort, or reading, or sports, or music, when we calm down to slowly

SQL Server Learning Note Series 2

First, write it in front.Following the last SQL Server Learning Note Series 1http://www.cnblogs.com/liupeng61624/p/4354983.html, continue to learn SQL Server, step by step, I believe that efforts will eventuallyHave a harvest! Always believe that

SQL Server built-in functions implement MD5 encryption

InstanceMD5 Encryption "123456":Hashbytes (' MD5 ', ' 123456 ')Result: 0xe10adc3949ba59abbe56e057f20f883e (hint: After the end, the result is converted. )Function Function Describe return value Hashbytes

SQL Server logical read, pre-read, and physical read

form of SQL Server data store Pre-read: Use the estimated information to go to the hard disk to read the data to the cache. Pre-read 100 times, which is estimated to read 100 pages of data from the hard disk to the cache. Physical reads:

Leverage SQL Server replication to spread the load of user access servers

Let's take a look at a basic concept of replication. What is replication? replication is the distribution of multiple copies (replicas) of data to each server in the company, providing the same data for multiple servers through replication. This

SQL Server Technology Insider's 4 sub-query

The result set of the outermost query is returned to the caller, called an external query. The result of an internal query is used by an external query, also known as a subquery. Sub-queries can be divided into independent subqueries and correlated

SQL Server Stored Procedure basics

OpeningYounger brother is very yearning for those technical Daniel articles, every day to see the blog feel very advanced Daniel, in order to become a technical Daniel, younger brother today also began to write a blog, hope that the elder brother

How to put the result set to a temporary table in SQL Server

 A. Select into  1.  uses SELECT INTO to automatically generate temporary tables without the need to create   SELECT * into #temp the from sysobjects  01.  save Stored procedure result set SELECT INTO to Temp table   SELECT * FROM #temp   2.  if a

Total Pages: 923 1 .... 364 365 366 367 368 .... 923 Go to: GO

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.