Quantcast
Channel: CodeSection,代码区,SQL Server(mssql)数据库 技术分享 - CodeSec
Browsing all 3160 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Make SQL Server Agent Alert Notifications Smarter and More Flexible

By:Jeffrey Yao | Last Updated: 2018-11-15 || Related Tips:More > SQL Server Agent Problem SQL Server Agentalerts are a convenient way for monitoring many events of interest. We usually set up a job...

View Article


Image may be NSFW.
Clik here to view.

SQL Server AlwaysOn Availability Groups Inventory and Monitoring Scripts -...

By:Alejandro Cobar | Last Updated: 2018-11-15 || Related Tips:More > Availability Groups Problem Whether you inherited a set of servers supporting SQL Server AlwaysOn Availability Groups or plan to...

View Article


Image may be NSFW.
Clik here to view.

#0413 SQL Server Interview Question Why are some columns displayed with ...

One of the first things I do when I start work on a new database is to use “ sp_help ” to go through each table and study their structure.I recently noticed something that would make an interesting...

View Article

Image may be NSFW.
Clik here to view.

Columnstore Indexes part 127 (“Batch Mode on Rowstore is it a Columnstore ...

Continuation from the previous 126 parts, the whole series can be found at http://www.nikoport.com/columnstore/ . With the appearance of the Batch Mode on the Rowstore Indexes (FINALLY!), the big...

View Article

Dinamically grouping in T-SQL

Extracting, manipulating and presenting data from a SQL database could be a complicated operation, expecially if we talk about business intelligence, reports and graphics for the final users. If we...

View Article


Tempdb Blocking With Non-Clustered Columnstore Indexes

I have a client that used Itzik Ben-Gan’s solution of creating a filtered nonclustered columnstore index to achieve batch mode on a rowstore (in fact I proposed that the client consider it). They have...

View Article

Image may be NSFW.
Clik here to view.

SQL Server注意事项总结,高级程序员必背!

本篇文章主要介绍SQL Server使用时的注意事项。 想成为一个高级程序员,数据库的使用是必须要会的。而数据库的使用纯熟程度,也侧面反映了一个开发的水平。 下面介绍SQL Server在使用和设计的过程中需要注意的事项。 SQL Server注意事项 Sql事务启动语句 开始事务:BEGIN TRANSACTION 提交事务:COMMIT TRANSACTION 回滚事务:ROLLBACK...

View Article

T-SQL Creates a Table with Primary Keys

Hello I wan to create a new table based on another one and create primary keys as well. Currently this is how I'm doing it. Table B has no primary keys defined. But I would like to create them in table...

View Article


Image may be NSFW.
Clik here to view.

SQL Server Temporal Tables Overview

By:Dinesh Asanka | Last Updated: 2018-11-16 || Related Tips:More > Temporal Tables Problem For many applications, it's a common requirement to get details about data modifications that have...

View Article


Image may be NSFW.
Clik here to view.

Six different methods to copy tables between databases in SQL Server

In this article, you’ll learn the key skills that you need to copy tables between SQL Server instances including both on-premises and cloud SQL databases. In this article, I’ll walk-through several...

View Article

Image may be NSFW.
Clik here to view.

Overview of the SQL CAST and SQL CONVERT functions in SQL Server

This article is an effort to discuss SQL Cast and SQL Convert functions as a follow-up to previous articles, in which we’ve discussed several SQL tips such as SQL Date, SQL Coalesce, SQL Union, SQL...

View Article

Tuning SQL Server with Aireforge Studio Advise

Configuring SQL Server to run at peak performance is a skill that can take years to learn. But when you need to configure and maintain tens, hundreds or even thousands of instances, it’s a task that...

View Article

Image may be NSFW.
Clik here to view.

Validating AWS EC2 SQL Server deployments using benchmark tools

As cloud computing becomes more and more popular and demanded among our customers, quite often we at DB Best need to answer the simple question: “How can I get the best value for running my SQL Server...

View Article


How to Write a Better T-SQL Code

Here are some basic guidelines that are good to consider when writing T-SQL (Transact SQL). These tips and hints are aimed for the beginner-level T-SQL developers. Always Use a Schema for the...

View Article

SQL Server Connection for SharePoint SSO Site Connection Errors

I'm having a very confusing error between SharePoint and SQL Server 2k5. My SQL Server acting as backend to my MOSS farm has several logins in it which correspond to the web front end servers in my...

View Article


Image may be NSFW.
Clik here to view.

SQL Server 数据库调整表中列的顺序操作

SQL Server 数据库中表一旦创建,我们不建议擅自调整列的顺序,特别是对应的应用系统已经上线,因为部分开发人员,不一定在代码中指明了列名。表是否可以调整列的顺序,其实可以自主设置,我们建议在安装后设置为禁止。 那么,如果确实需要调整某一列的顺序,我们是怎么操作的呢? 下面,我们就要演示一下怎么取消这种限制。当然,通过取消限制的演示,相信大家也知道了怎么添加限制了。 需求及问题描述 1)测试表...

View Article

Interesting Stuff - Week 46

Throughout the week, I read a lot of blog-posts, articles, and so forth, that has to do with things that interest me: data science data in general distributed computing SQL Server transactions (both db...

View Article


Image may be NSFW.
Clik here to view.

Docker Building a SQL Server image

There are several Microsoft SQL Server container images available for download. These consists of SQL Server 2017 and now SQL Server 2019 CTP2.1. Most of those can be found here . However, what if you...

View Article

SQL Server support for TLS 1.2 Read This First!

Updated March 3, 2016 In January 2016, Microsoft announced thatTLS 1.2 would now be supportedin specific builds of SQL Server 2008, 2008 R2, 2012, and 2014. Personally, I was pleasantly surprised to...

View Article

Biml, Book Reviews, and Metadata-Driven Frameworks

I occasionally (rarely) read reviews at Amazon of books I’ve written . If I learn of a complaint regarding the book I often try to help. If a reader experiences difficulty with demos, I often offer to...

View Article
Browsing all 3160 articles
Browse latest View live