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

Image may be NSFW.
Clik here to view.

Shortcut: Using Activity Monitor in SQL Server Management Studio

This is a quick tip but an important one. I see many people using SQL Server Management Studio (SSMS) and they aren't aware of Activity Monitor. While there are many clever things that we can do with...

View Article


Image may be NSFW.
Clik here to view.

How to make SQL Server Wildcard Searches Faster

By: Susantha Bathige || Related Tips:More >T-SQL Problem In SQL Server, we often need to search character fields using the percentage (%) wildcard. I see when I put the wildcard at the end of the...

View Article


Image may be NSFW.
Clik here to view.

Capturing SQL Server Integration Services Package Errors Using OnError Event...

By: Bhavesh Patel || Related Tips:More > Integration Services Error Handling Problem SQL Server Integration Services (SSIS) packages run when invoked by users or based on a configured schedule....

View Article

A Tool For Analyzing AG Replica Latency

When Secondary Nodes Affect Primaries Kevin Feasel 2018-09-13 Availability Groups No Comment Dmitri Korotkevitch shows that a readable secondary in an Availability Group can negatively impact the...

View Article

SQL Server string functions for Data Munging (Wrangling)

In this article, you’ll learn the tips for getting started using SQL string functions for data munging with SQL Server. In many cases, Machine learning outcomes are only as good as the data they’re...

View Article


Image may be NSFW.
Clik here to view.

Top free add-ins for SQL Server Management Studio (SSMS)

This collection of content presents an overview of free SQL Server Management Studio (SSMS) add-ins, with product page links for each of the tools and screenshots if available. If you noticed a free...

View Article

Which Cipher Suite is being used for TDS Encryption?

Unfortunately, SQL Server doesn’t expose the information about the cipher suite used for Tabular Data Stream (TDS) encryption. But we can get this information by tracing the TCP connection with...

View Article

Them Con+cat+enatin’ Blues

We ran into a funny problem not long ago, revolving around a stored procedure that was building up a dynamic SQL string. The code had worked without a hitch in our development and test environments but...

View Article


BYOL and Oversubscription

This post is courtesy of Mike Eizensmits, Senior Solutions Architect AWS Most AWS customers have a significant windows Server deployment and are also tied to a Microsoft licensing program. When it...

View Article


Image may be NSFW.
Clik here to view.

Script to show how much a SQL Server database has changed since last full backup

By: Pablo Echeverria || Related Tips:More >Backup Problem Have you ever wondered how much your SQL Server databases have changed since the last full backup? This information would be very helpful...

View Article

SQL Server scripts to use with sqlcmd

By: Daniel Farina || Related Tips:More > Database Administration Problem Administering SQL Server comes in many forms and there are many tools that can be used to manage and administer SQL Server...

View Article

The Story Behind Grant’s Execution Plan Book

Four years ago, after a bunch of dithering and some negotiations with Tony Davis , my editor, I started to update my book, SQL Server Execution Plans. We managed to convince Hugo Kornelis to be the...

View Article

Multiple Mentions Of A Column In An UPDATE Statement

Issues With Bulk Inserting Multi-Byte Characters In Fixed Width Files Kevin Feasel 2018-09-13 Bugs , T-SQL No Comment Randolph West shares an example of an issue with BULK INSERT: Fellow CanadianDoran...

View Article


Clearing The SSAS Cache Using C#

First let me give you a little background of why you would want to clear SSAS cache from C# code when you can do this using an XMLA command from SSMS. If you have a slow MDX/DAX SSAS query , you have a...

View Article

SQL Server Cannot generate SSPI context.

This short post shows you a tip of resolving the error “The target principal name is incorrect. Cannot generate SSPI context.”. The normally happen when you are connecting to SQL Server remotely using...

View Article


Image may be NSFW.
Clik here to view.

How to perform a performance test against a SQL Server instance

Introduction Intended audience This document is intended for application developers and database administrators who plan to evaluate performance for any computer hosting a SQL Server instance. Context...

View Article

How Do You Setup Your Instances?

I’ve set up a lot of SQL Server instances in my career. I’ve gone from manual only setup in SQL Server 4.2 to more automated means in the latest versions. The easiest was actually in Azure where I...

View Article


Image may be NSFW.
Clik here to view.

SQL Server Reporting Services (SSRS) Shared Dataset

In the SQL Server Reporting Service (SSRS) report development process; we can use a beneficial feature which is called the “shared dataset”. The purpose of SSRS embedded datasets are to retrieve data...

View Article

SDDM Script to Create SQL Server Journal Tables

In my previous post, I talked about how Oracle SQL Developer Data Modeler (SDDM) is extendable with scripts written in languages that support JSR-223. One of those languages is Groovy (...

View Article

Constraint for Phone Number in SQL Server

Constraint for phone number to be of 7 digits. How to check if it is of 7 digits in SQL Server? CREATE TABLE Customer ( C_ID INT NOT NULL IDENTITY(1,1) PRIMARY KEY, C_Name VARCHAR(255) NOT NULL, Phone...

View Article
Browsing all 3160 articles
Browse latest View live