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

Configuring tempdb

Jeff Mlakar looks at some basic guidelines for tempdb and shows how to configure this database : The basic guidelines are: Each tempdb data file should be the same initial size Autogrowth to tempdb...

View Article


Tic-Tac-Toe In T-SQL

We could give it some smarts. For example, we know that in our game, we can only choose X or O, so we could put a data constraint on the Play column. And we know that in our game, you can’t play on...

View Article


Setting Up SQL Server: People Still Need Help

I Like What’s Happening I wanna start off by saying that I like what Microsoft has been doing with the setup process ― it made a lot of sense to add the tempdb configuration screen, and having a...

View Article

Image may be NSFW.
Clik here to view.

Overview of the SQLCMD utility in SQL Server

This article is aimed at helping you understand the sqlcmd utility. Of course, this is a tool most of us have used it at several occasions given that the tool has been around for a decade now. However,...

View Article

Image may be NSFW.
Clik here to view.

BCP (Bulk Copy Program) command in Action

The bcp (Bulk Copy Program) utility is a command line that program bulk-copies data between a SQL instance and a data file using a special format file. The BCP utility can be used to import large...

View Article


Image may be NSFW.
Clik here to view.

An automated solution for Crystal Reports conversion from Oracle to SQL Server

One of our customers decided to modernize their Oracle database to Microsoft SQL Server. However, the thousands of SAP Crystal Reports connected to their existing Oracle database presented a huge...

View Article

Image may be NSFW.
Clik here to view.

SSIS Tips: Enforcing TLS 1.2 For SSIS 2012 Connections

Impetus The main inspiration behind this article comes from a recent issue faced in one of my projects for configuring TLS 1.2 based connectivity to a HTTP endpoint and steps taken in resolving the...

View Article

Shuffling Data And Zipping Results In T-SQL

The problems come with uncommon values. If you are pseudonymizing a medical database that is required for research purposes on people with potentially embarrassing diseases, and it appears on the dark...

View Article


Image may be NSFW.
Clik here to view.

Complicated linked servers and a bunch of head-desks: T-SQL Tuesday #104

Wayne Sheffield ( b / t ) is our host this month for the long running blog party (104 months now and running!) started by Adam Machanic ( b / t ). In this case Wayne is asking us to talk about a time...

View Article


Image may be NSFW.
Clik here to view.

Hitting brick walls T-SQL Tuesday #105

It’s time for another T-SQL Tuesday. This month Wayne ( blog | Twit ) asked use to write about when we’ve run up against a brick wall during our SQL Server career I thought I’d start off with the...

View Article

Image may be NSFW.
Clik here to view.

6 Techniques For Troubleshooting Your Code

This post is a response to this month’s T-SQL Tuesday #105 prompt by Wayne Sheffield . T-SQL Tuesday is a way for the SQL Server community to share ideas about different database and professional...

View Article

Image may be NSFW.
Clik here to view.

SQL Server database Forensic auditing including row history and...

Prevention is one of the most powerful approaches against any inadvertent or malicious events. But it is not always possible to prepare for all different calamities which may take place in SQL Server...

View Article

Image may be NSFW.
Clik here to view.

What’s new in SQL Server 2017

SQL Server 2017 is considered a major release in the history of the SQL Server life cycle for various reasons. From my personal point of view, SQL Server 2017 is indeed an interesting release. After...

View Article


Image may be NSFW.
Clik here to view.

Hitting the Wall #TSQL2sDay

Photo by Farrel Nobel on Unsplash Welcome to another edition of T-SQL Tuesday! This T-SQL Tuesday is hosted by Wayne Sheffield ( blog | twitter ) and he has asked us to talk about […] a time when you...

View Article

A date dimension for SQL Server

A date dimension for SQL Server The most common table you will find in a data warehouse will be the date dimension. There is no "right" implementation beyond what the customer needs to solve their...

View Article


Image may be NSFW.
Clik here to view.

SQL Server Execution Timeout Expired. The timeout period elapsed prior to...

This post only provides one of the possibilities to resolve the error “”Execution Timeout Expired. The timeout period elapsed prior to completion of the operation or the server is not responding.” in...

View Article

SDU Tools: Extract Trimmed Words from T-SQL Strings

Occasionally I've needed to take a string, and extract all the words out of it. For example a string like 'hello there greg' might lead me to want the three words 'hello', 'there', and 'greg'. Note...

View Article


Image may be NSFW.
Clik here to view.

T-SQL Tuesday #105 Brick Wall

The topic for this months T-SQL Tuesday #105 (hosted by Wayne Sheffield Blog / Twitter ) is: “Tell me about a time when you ran up against your own brick wall, and how you worked it out or dealt with...

View Article

Image may be NSFW.
Clik here to view.

How to Quickly Copy Data Using SQL Server Data Tool (SSDT)

By: Simon Liew || Related Tips:More > Other Database Platforms Problem I have a table with many columns in Teradata. I wanted to copy data from this Teradata table quickly to SQL Server to do some...

View Article

Increase PowerShell available commands in a SQL Server Agent Job step

By: Pablo Echeverria || Related Tips:More >SQL Server Agent Problem It is often required to perform advanced operations within a SQL Server Agent Job step, like interact with the operating system...

View Article
Browsing all 3160 articles
Browse latest View live