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

Image may be NSFW.
Clik here to view.

gethynellis.com 2016 Review

The year gone was an interesting year for gethynellis.com and GRE Solutions. Any year that has a new release of SQL Server is always an interesting time, as learning and writing about new SQL Server...

View Article


Image may be NSFW.
Clik here to view.

Sql Server: Update XML Node value with new value in table

Introduction : In this article I am going to share how to modify or we can say replace XML node/ attribute value with new value in sql server table based on condition. In previous articles i explained...

View Article


Image may be NSFW.
Clik here to view.

Frequent Password Expiration: Time to Revise it?

Until recently, enabling the password expiration option in SQL Server was included in many security best practices. However, recent studies, revised this recommendation and support that it should not...

View Article

Image may be NSFW.
Clik here to view.

SQL SERVER Database Mirroring Login Attempt Failed with Error ‘Connection Ha ...

One of my friends was trying to configure database mirroring and was having a hard time in getting things working. The challenge was that he was using certificate for mirroring authentication because...

View Article

Image may be NSFW.
Clik here to view.

Connect SQL Server on Linux with SSMS from a Windows machine

In [ previous post ] we saw how to install & setup SQL Server on linux . We used PuTTY to connect to the Linux Azure VM and query SQL Server there. Here in this post we will try to connect to SQL...

View Article


Image may be NSFW.
Clik here to view.

SQL Server 表变量和临时表系列之概念篇

问题引入 “菜鸟啊,最近我看到阿里云开发者论坛的数据库RDS中有人在提SQL Server表变量和临时表如何选择的问题,你去深入探讨下这个问题吧,解答解答他们的疑惑吧”,老鸟又开始为菜鸟找活干了。 “鸟哥啊,关于表变量和临时表使用选择的问题啊,向来行业里争论不休,我比较担心我们的观点被人家拍砖啊”。...

View Article

Image may be NSFW.
Clik here to view.

Data Quality: The 600 Billion Dollar Problem

By Hari Yadav The Context Data comprises information, information supports decision making, decisions drive processes further that produces results in terms of revenue. Now, take a step back and think...

View Article

Image may be NSFW.
Clik here to view.

Using a Parameter in a SQL Server Reporting Services 2016 Mobile Report

By:Koen Verbeeck || Related Tips: > Reporting Services Parameters Problem We are using SQL Server Reporting Services (SSRS) 2016. I have created a mobile report using Mobile Report Publisher. The...

View Article


Image may be NSFW.
Clik here to view.

Columnstore Indexes part 94 (“Use Partitioning Wisely”)

Continuation from the previous 93 parts, the whole series can be found at http://www.nikoport.com/columnstore/ . This blog post will talk about some of the common problematic practices for the...

View Article


Your 2017 Goals

Last week I wrote some predictions for 2017, and plenty of you added your own thoughts. Overall, security is a concern for most people, with little hope things will improve. I certainly hope they do,...

View Article

Image may be NSFW.
Clik here to view.

SQL Server v.Next : STRING_AGG Performance, Part 2

Last week, I made a couple of quick performance comparisons, pitting the new STRING_AGG() function against the traditional FOR XML PATH approach I've used for ages. I tested both undefined/arbitrary...

View Article

Image may be NSFW.
Clik here to view.

Apache Zeppelin 0.6.2 for SQL Server Docker Image updated

In order to be able to keep created notebooks and interpreters configurations when upgrading the docker image to a newer version, I changed the dockerfile to use docker volumes, as described here (if...

View Article

NewsBits - Scylla, SQL Server, Redis, SQLite, TiDB, Ruby, Elixir and more

The database and developer news for the week ending January 6th includes a new Scylla release, SQL Server on linux explained, JSON for Redis, a lighter SQLite, TiDB's multi-storage engine distributed...

View Article


Image may be NSFW.
Clik here to view.

Sql Server: Update multiple XML node values with new values in table

Introduction : In this article I am going to share how to modify or we can say replace multiple XML node/ attribute values with new values in single or multiple update statement(s) based on condition...

View Article

Image may be NSFW.
Clik here to view.

Columnstore Indexes part 95 (“Basic Query Patterns”)

Continuation from the previous 94 parts, the whole series can be found at http://www.nikoport.com/columnstore/ . In this blog post I am continuing showing some of the solutions for the common...

View Article


Image may be NSFW.
Clik here to view.

SQL Server moving System Databases Part 1 msdb and model

I can remember a few distinct unpleasant memories while fishing. In one, I was fishing out on the Rainbow Flowage with my Dad, oldest son, and nephew. Since there wasn’t much room in the boat, I...

View Article

优化MySchoolSQL编程第三章 MySchoolSQL MySchoolSQL编程 优化MySchoolSQL

优化MySchoolSQL编程第三章/****** Script for SelectTopNRows command from SSMS ******/SELECT TOP 1000 [StudentNo] ,[LoginPwd] ,[StudentName] ,[Gender] ,[GradeId] ,[Phone] ,[Address] ,[Birthday] ,[Email] ,[MyTT]...

View Article


数据库SQL优化大总结之百万级数据库优化方案 sql sql语句 SQLServer 数据库SQL优化

数据库SQL优化大总结之百万级数据库优化方案。1.对查询进行优化,要尽量避免全表扫描,首先应考虑在 where 及 order by 涉及的列上建立索引。2.应尽量避免在 where 子句中对字段进行 null 值判断,否则将导致引擎放弃使用索引而进行全表扫描,如:select id from t where num is null最好不要给数据库留NULL,尽可能的使用 NOT...

View Article

Image may be NSFW.
Clik here to view.

T-SQL概述(常量变量运算符) sql sql语句 SQLServer T-SQL概述 常量变量运算符

T-SQL概述(常量变量运算符)。每条SQL语句均由一个谓词(Verb)开始,谓词描述这条语句要产生的动作。谓词后接着一个或多个子句(Clause),子句中给出了被谓词作用的数据或提供谓词动作的详细信息,每条子句都由一个关键字开始。 1, 常量(1)数字常量:包括整数 ,小数,11, -11,11.11 。及浮点常量,1.5e。浮点使用符号e指定。读作‘乘以10的几次幂’。(2)日期时间常量 :...

View Article

Image may be NSFW.
Clik here to view.

SQLserver2008不允许保存更改的解决办法 sql sql语句 SQLserver2008 不允许保存更改

SQLserver2008不允许保存更改的解决办法。我重装系统后就安装了SQL Server2008R2,第一次使用时在修改表结构的时候经碰到这样一个警告【不允许保存更改。您所做的更改要求删除并重新创建以下表。您对无法重新创建的标进行了更改或者启用了“阻止保存要求重新创建表的更改"选项。】解决方法如下: 1.问题描述 2.点击SQL2008菜单 工具—》选项...

View Article
Browsing all 3160 articles
Browse latest View live