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

Image may be NSFW.
Clik here to view.

SQL Server Management Studio…Customising those themes!

Howdy all, I am a bit of a customisation nut; pretty much with any software package I pick up I have the uncontrollable urge to dig straight into the options and get on the hunt for how to ‘theme it...

View Article


Image may be NSFW.
Clik here to view.

Cumulative Updates for SQL Server 2012 / 2016

Hello Things are happening! SQL Server 2012 SP2 has CU16 released. You can reach the KB article here and download the update There have been 5 issues resolved. The build number is 11.0.5678.0 SQL...

View Article


Code to show rolled back transactions after a crash

In Monday’sInsider newsletterI discussed an email question I’d been sent about how to identify the transactions that had rolled back because of a crash, and I said I’d blog some code to do it. First...

View Article

SQL SERVER Understanding JSON Use is Case-Sensitive

The things I get to learn from my daughter is amazing. I think all of us need to constantly explore without any prejudice and set biases. Whenever I get a new toy for some occasion, I see there is at...

View Article

Image may be NSFW.
Clik here to view.

SQL Server 2016 Bug in R Integration?

I am studying the latest R integration with SQL Server 2016, and I believe I encounter a bug when using sp_execute_external_script . So here is the re-play of the bug; If I run the following code, I...

View Article


Image may be NSFW.
Clik here to view.

Simple free drive space alert for SQL Server databases

Problem You want a simple and fast alerting tool to notify you about drives running out of disk space. You have several data files and log files located on one or more disk drives and you want to get...

View Article

Image may be NSFW.
Clik here to view.

Using JSON as a data source for a SQL Server Reporting Services report

By:Scott Murray || Related Tips: > Reporting Services Data Sources Problem Can SQL Server Reporting Services (SSRS) use JSON as a data source for a report? Solution Well the answer to this question...

View Article

Image may be NSFW.
Clik here to view.

SQL Server SPID tracking how spid affects sql server

SQL Server Management Studio offers a lot of tools to track what a spid is doing and how it affects the sql server and other spids. Some of the tools can offer information at a very granular level...

View Article


Image may be NSFW.
Clik here to view.

How to Create A Bar Chart Using SQL Server

In this puzzle, we’re going to learn how to create a bar chart using SQL Server. Sometimes it’s fun to see what you can do with the humble SELECT statement. Today I figured it would be fun to see if I...

View Article


Image may be NSFW.
Clik here to view.

SQL2008 详解直接将XML存入到SQL中

一、前言从 SQL Server 2005 开始,就增加了 xml 字段类型,也就是说可以直接把 xml 内容存储在该字段中,并且 SQL Server 会把它当作 xml 来对待,而不是当作 varchar 来对待。随着SQL Server 对XML字段的支持,相应的,T-SQL语句也提供了大量对XML操作的功能来配合SQL...

View Article

Image may be NSFW.
Clik here to view.

Execute SQL Task in SSIS

In this write up we will demonstrate error and solution caused while using SQL Execute Task component in SSIS. This error occurred when candidate of MSBI training was trying to perform “Select” query...

View Article

Transaction Isolation Level In SQL Server: A Complete Guidance

Overview Transaction isolation level on SQL server, decides or determines that how transaction integrity is apparent to other systems and users. The locks (acquired to protect data modifications) are...

View Article

The (Former) Complexity of PowerShell

When I first looked at PowerShell, it was v1.0, and I was in a TechEd presentation. The language seemed a mile past the VBScript I was using when T-SQL didn’t function well. The ability to access the...

View Article


SQl语句中使用占位符的优点 sql sql语句 SQLServer 占位符优点

SQl语句中使用占位符的优点1.增加SQL代码可读性2.占位符可以预先编译,提高执行效率3.防止SQL注入4用占位符的目的是绑定变量,这样可以减少数据SQL的硬解析,所以执行效率会提高不少绑定变量是Oracle解决硬解析的首要利器,能解决OLTP系统中library cache的过度耗用以提高性能绑定变量是Oracle解决硬解析的首要利器,能解决OLTP系统中library...

View Article

SQL语言――完整性 sql sql语句 SQL语言 完整性

SQL语言——完整性完整性/*--1. 完整性 广义完整性:语义完整性、并发控制、安全控制、DB故障恢复等 狭义完整性:专指语义完整性*//*--2. 完整性约束条件的一般形式 -- Integrity Constraint ::= (O , P , A , R) -- O 数据集合:约束的对象(列、多列、元组集合) -- P 谓词条件:什么样的约束 -- A 触发条件: 什么时候检查 -- R...

View Article


SQL语言――安全性 sql sql语句 SQLServer 安全性

SQL语言——安全性安全性/* 1. DBMS的安全机制 -- 自主安全性机制:存取控制 -- 强制安全性控制 -- 推断控制机制 -- 数据加密存储机制 */ /* 2. 自主安全性机制 -- 权限控制 -- 访问规则 DBMS将权利和用户(账户)结合在一起,形成一个访问规则表可以实现对数据库的安全性控制 AccessRules ::=(S , O , t , P) -- S : 请求主体(用户)...

View Article

SQL Server & Windows Registry Setting TcpMaxDataRetransmissions - What's...

Dead Connection Detection is an important facet of SQL Server operational database support. If the client side of a database connection is dead-and-gone, the server side is consuming an ephemeral port,...

View Article


Image may be NSFW.
Clik here to view.

How Does the SQL Server Query Optimizer Works

Courtesy At the core of the SQL Server Database Engine are two major components: the Storage Engine and the Query Processor , also called the Relational Engine. Storage Engine: takes care of reading...

View Article

Image may be NSFW.
Clik here to view.

New built-in function CONCAT_WS() in SQL Server vNext (2018)

In my previous posts I discussed new Functions introduced in SQL Server vNext (or 2018), like STRING_AGG() , TRIM() , TRANSLATE() . Here in this post I’ll discuss about one more new function i.e....

View Article

Image may be NSFW.
Clik here to view.

SQL SERVER Beautify SQL Code with dbForge SQL Complete

Often when you write a large piece of SQL code, it eventually becomes a bit disorganized, or when a big team of developers is working on one project, the code differs between individual developers, the...

View Article
Browsing all 3160 articles
Browse latest View live