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

Docker And SQL Server

Containers: Containers are a way to virtualize a single application, as opposed to virtualizing an entire server. We can run an application in this container without installing the product or worrying...

View Article


Image may be NSFW.
Clik here to view.

Disable or Turn-off SQL Server Telemetry Service

With SQL Server 2016, Microsoft is installing SQL Server Telemetry or CEIP (Customer Experience Improvement Program) Services by default. It sends feature usage info back to Microsoft. Y ou cannot...

View Article


SQL: What is sp_reset_connection and should I care about it?

Anyone who's ever traced activity against a SQL Server will have no doubt seen a large number of commands where the procedure sp_reset_connection has been executed. Yet, this command won't appear...

View Article

Image may be NSFW.
Clik here to view.

Steps to install a stand-alone SQL Server 2017 instance

Problem Undoubtedly, many of us have the task of installing a new stand-alone SQL Server instance which includes just the database engine service. For instance, it can primarily be needed for dedicated...

View Article

Image may be NSFW.
Clik here to view.

Generating a list of full text word breakers for SQL Server

The post “Generating a list of full text word breakers for SQL Server” was originally published for Leaf Node, but as that site is being wound down I’m republishing it here. Why do you need a list of...

View Article


Image may be NSFW.
Clik here to view.

DVTA - Part 3 - Network Recon

In this part, we will focus on network traffic. More often than not, thick client applications have some sort of network connectivity. They talk to some server(s) to do things. Previous parts are: DVTA...

View Article

Understanding sp_reset_connection

Anyone who’s ever traced activity against a SQL Server will have no doubt seen a large number of commands where the procedure sp_reset_connection has been executed. Yet, this command won’t appear...

View Article

New Classes: Dashboard in a Day, Database DevOps, tSQLt, SQL Server...

We’ve got a few new goodies, and they’re 50% off for a limited time! Dashboard in a Day A hands-on workshop using Power BI to rapidly produce great looking interactive reports and dashboards. Your...

View Article


Image may be NSFW.
Clik here to view.

Are you a morning or evening person?

Are you a morning or evening person? DBA From The Cold Posted on 30 July 2018 Comments I am not a morning person. I’ve really tried but there’s something in me that just stops me from getting out of...

View Article


Image may be NSFW.
Clik here to view.

Solved: SQL Server Key Vault Connector: Error code 2058

Today I spend all afternoon trying to troubleshoot why the SQL Azure KeyVault Connector fails to connect with my SQL 2016 instance hosted in Azure IaaS only to realise that there is a known bug in the...

View Article

SQL Server Availability Group Auto Seeding Error

SQL Server Availability Group Auto Seeding is a wonderful thing, it saves database administrators time when setting up availability groups. However I found an issue with the graphical user interface in...

View Article

Query SQL Server with IN (NULL) Not Working

When I define a "User-Defined Table Type", as: CREATE TYPE [dbo].[BitType] AS TABLE( [bit] NULL ) I place 0 and null in this table-variable. Then I do this query: SELECT something FROM theTable WHERE...

View Article

Obtain a truncated substring in SQL Server

Question for everyone... I have some values I've inserted into a table as I try to play around with string functions. What I'm trying to do is remove the end of the string and keep everything before...

View Article


Image may be NSFW.
Clik here to view.

Failed to join local availability replica to Availability Group SQL Server er...

When you configure SQL Server AlwaysOn Availability Group from management studio, it may fail with below error while joining secondary replica to the availability group. Today, While I was preparing...

View Article

Image may be NSFW.
Clik here to view.

& Ldquo; The account does not have a subscription & ldquo ...

A user is trying to connect to an Azure SQL Database via SQL Server Management Studio (SSMS v16.5.1). The user's current IP address is not listed in the Azure SQL Server's firewall rules. Because of...

View Article


Image may be NSFW.
Clik here to view.

Create an Extended Date Dimension for a SQL Server Data Warehouse

Problem The Date Dimension is a key dimension in a SQL Server data warehousing as it allows us to analyze data in different aspects of date. Apart from the standard date attributes like year, quarter,...

View Article

Image may be NSFW.
Clik here to view.

SQL Server Blocking a Truncate

The truncate option is fast and efficient but did you know that it takes a certain lock where you could actually be blocked? What am I talking about? When you issue a truncate it takes a Sch-M lock and...

View Article


Image may be NSFW.
Clik here to view.

Should You Use Index Hints?

Watch this week’s post on YouTube One of the things that the SQL Server query optimizer does is determine how to retrieve the data requested by your query. Usually it does a pretty good job, which is...

View Article

Information Measurement with SQL Server, Part 4.2: The Jensen Shannon...

by Steve Bolton ………… In the last installment of this amateur series of self-tutorials on DIY data mining metrics, we saw how a mathematical property known as absolute continuity hampered the...

View Article

localdb

This post shows you a possible way to get localdb for Microsoft samples application. It is kind of sad that many ASP.NET samples out there is using localdb and not SQL Server Engine. In all the ASP.NET...

View Article
Browsing all 3160 articles
Browse latest View live