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

Perfect Storm for Upgrading to a Modern Version of SQL Server

A number of ongoing and upcoming developments in software, hardware, and storage technology are shaping up to make the next twelve to eighteen months an ideal time to migrate from a legacy version of...

View Article


Image may be NSFW.
Clik here to view.

Displaying and Removing Unprintable Hexadecimal Characters from SQL Server Data

There are times when you might need to look at your SQL Server data in hexadecimal format. Occasionally some string data in my database will contain unprintable characters erroneously. These...

View Article


Image may be NSFW.
Clik here to view.

Line Numbers in SQL Server Management Studio

Have ever tried to debug a chunk of TSQL code (like a stored procedure) and found yourself trying to figure out which TSQL statement is at a particular line number? By default, SQL Server Management...

View Article

Getting Anatomical With SSIS Catalog Compare

Andy Leonard shows off parts of SSIS Catalog Compare. First up is the catalog reference script : As you may glean from this analysis of one script generated for SSIS Catalog References management, the...

View Article

Image may be NSFW.
Clik here to view.

Top SQL Server bloggers of 2018

SQLShack community web-site by company ApexSQL have announced on 1st of September 2018 the list of SQL Server bloggers. The list of top SQL Server bloggers is absolutely worth checking for entry-level...

View Article


Image may be NSFW.
Clik here to view.

SQL Query Optimization Techniques in SQL Server: Parameter Sniffing

Description Of the many ways in which query performance can go awry, few are as misunderstood as parameter sniffing. Search the internet for solutions to a plan reuse problem, and many suggestions will...

View Article

Image may be NSFW.
Clik here to view.

Don’t cutoff yourself with dates in T-SQL Did you know…

Almost all the applications we use have a lot of options. And, sometimes we even stumble across them by accident. Who’s ever heard something like “Normal user don’t even use 5% of Excel capabilities!”?...

View Article

Image may be NSFW.
Clik here to view.

Deploy SQL Server for failover clustering with Cluster Shared Volumes part 1

Microsoft SQL Server provides us with a wide variety of solutions to architect High availability (HA) and Disaster Recovery (DR) solutions for mission-critical workloads. In this article, let’s just...

View Article


Getting started with SQL Server Tools

Getting started with SQL Server Tools prashan Posted on 4 September 2018 Comments This article is part of theSQL Server Toolsseries, aimed at giving you an idea of the available tools and techniques to...

View Article


Image may be NSFW.
Clik here to view.

Book review: SQL Server 2017 Machine Learning Services with R

If you want to do statistical analysis or machine learning with data in SQL Server, you can of course extract the data from SQL Server and then analyze it in R or python. But a better way is to run R...

View Article

Image may be NSFW.
Clik here to view.

SSIS using ADO connection manager for Script Component

This post is to show how to use ADO connection in SSIS Script Component. At the same time, this is what myself always forget. Bear in mind, I never successfully using OLEDB connection for this. I only...

View Article

golang xorm MSSQL where查询案例

xorm官方中文文档 参考 http://xorm.io/docs/ 以sqlserver为例 先初始化连接等... engine, err := xorm.NewEngine("mssql", "server=127.0.0.1;user id=sa;password=123456;database=dbname") //控制台打印SQL语句 engine.ShowSQL(true) if...

View Article

Image may be NSFW.
Clik here to view.

Convert SQL Server Base64 Encoded Text to Images

Problem A table in our SQL Server database stores images in Base64-encoded text format. It does not seem that SQL Server CAST() and CONVERT() can convert Base64-encoded text into images. Is there an...

View Article


Using WITH in an IF Condition

I am in the middle of working on my DB Design conference that occurs in a bit over a week from now . But I had this come up in some work I was doing and wanted to put it down in a blog. One of the...

View Article

Image may be NSFW.
Clik here to view.

Recursion in SQL Server using Common Table Expressions (CTE)

No matter what application you write, at one time in your career, you will experience a need for a hierarchical structure in your tables. While this particular way of storing data is easy, how do you...

View Article


Image may be NSFW.
Clik here to view.

COUNT Function in SQL Server Applications & Parameters

1. Objective In our last SQL tutorial , we discussed SQL Cursor . Today, we will see COUNT Function in SQL. Moreover, in this SQL COUNT Function tutorial, we will discuss parameters and example. Also,...

View Article

Calculate the difference between twice using php, then add it to a...

Hi I have a problem where I am trying to get a total time that a job has taken (using database fields job_start and job_end time(7)) then adding this to another model's field, the code i have is if...

View Article


Image may be NSFW.
Clik here to view.

Dates and Times in SQL Server: AT TIME ZONE

Dates and Times in SQL Server: AT TIME ZONE Randolph West Posted on 5 September 2018 Comments Continuing the series on dates and times in SQL Server and Azure SQL Database, this week we look at the...

View Article

The Problems with Patching Software (2003)

Early one Saturday morning last January, from a computer located somewhere within the seven continents, or possibly on the four oceans, someone sent 376 bytes of code inside a single data packet to a...

View Article

Image may be NSFW.
Clik here to view.

Shortcut: Using the built-in web browser in SQL Server Management Studio

SQL Server Management Studio (SSMS) is a flexible tool. One thing that often surprises people is that it hosts a version of Microsoft Internet Explorer, right inside the application. Why would SSMS...

View Article
Browsing all 3160 articles
Browse latest View live