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

Invalid floating-point operation error when counting logarithm in SQL Server...

In Microsoft SQL Server 2008, I have a table, say myTable , containing about 600k rows (actually, it is a result of joining several other tables, but i suppose this is not important). One of its...

View Article


Image may be NSFW.
Clik here to view.

Creating a date dimension or calendar table in SQL Server

Problem A calendar table can be immensely useful, particularly for reporting purposes, and for determining things like business days between two dates. I often see people struggling with manually...

View Article


Use Caution with SQL Server's MERGE Statement

Problem SQL Server 2008 introduced the MERGE statement, which promised to be a simpler way to combine insert/update/delete statements, such as those used during ETL (extract, transform and load)...

View Article

Image may be NSFW.
Clik here to view.

Why Surrogate Keys are Needed for a SQL Server Data Warehouse

By: Dinesh Asanka || Related Tips:More >Database Design Problem A SQL Server data warehouse generally receives data from multiple sources. For dimension tables, typically an additional surrogate...

View Article

Image may be NSFW.
Clik here to view.

Automated SQL Server WMI Alerts for Server Scope and Server Objects...

By: Svetlana Golovko || Related Tips:More >Monitoring Problem SQL Server Audit can be used to monitor numerous security events, but it requires audit logs review which could be time consuming. We...

View Article


SQL Server 2014: Incorrect Syntax Near Where

I use Visual Studio 2013 and SQL Server 2014. I get an error Incorrect syntax near 'Where Ad= ' I'm a beginner so I couldn't figure out the problem and need your help. Here is my code: private void...

View Article

Image may be NSFW.
Clik here to view.

SQL Server Database Corruption! Fixing and Preventing

In my previous post, SQL Server Database Corruption! Understanding and Diagnosing , we talked about database corruption. We discussed what it was so we could better understand the threat we face. Then...

View Article

TANSTAAQRC (Query Result Cache)

I was recently doing a training session when a developer commented that it was OK to run an expensive query twice because on the second execution, SQL Server would use the “results cache” and be...

View Article


Image may be NSFW.
Clik here to view.

SQL Server development practices with referenced views

We’ve recently had production failures because our developers changed an important reference. In this case, we had a view which several procedures and views referenced. A developer made a change to the...

View Article


Image may be NSFW.
Clik here to view.

VMworld 2018 SQL Server Sessions

I hope to see you all at this year’s VMworld 2018 USA conference where I’m lucky enough to have been selected to present four SQL Server-themed sessions! The first is an all-day boot camp (VAP3768WU)...

View Article

Where is SQL Server Management Studio 2012

White circle in Microsoft SQL Server Management Studio 2012 I'm new in SQL server management studio 2012 now i'm use data from server and it has a white circle on my database 4 people in my team use...

View Article

Image may be NSFW.
Clik here to view.

SQLServerCentral.com Stairway Series SSAS Tabular

SQLServerCentral.com Stairway Series SSAS Tabular Thomas LeBlanc Posted on 25 July 2018 Comments The first 2 articles have been published on aSQLServerCentral.com Stairway series for SQL Server...

View Article

Image may be NSFW.
Clik here to view.

Concurrency problems theory and experimentation in SQL Server

Introduction Intended audience This document is intended for application developers and database administrators who are willing to get an overview of comm concurrency problems to which transaction...

View Article


The number of differences in a column

I would like to retrieve a column of how many differences in letters in each row. For instance If you have a a value "test" and another row has a value "testing ", then the differences is 4 letter...

View Article

Interview questions on SQL Server database backups, restores and recovery Par...

1. What are database backups? The word “backup” refers to copying and archiving the data so that it may be used to restore in case of an event of data loss. In general, you should back up any work or...

View Article


Image may be NSFW.
Clik here to view.

Speaking at the Chicago SQL Server User Group!

I’m very happy to be presenting at next month’s meeting of the Chicago SQL Server User Group ! This meeting will take place on Thursday August 9 at the Microsoft Technology Center in Chicago. For a...

View Article

Image may be NSFW.
Clik here to view.

Querying The Last Execution Time Of A Stored Procedure In SQL Server

During a recent clean up project I was giving a list of stored procedures and asked to identify when the last time each procedure was executed. Fortunately there is an easy way to query this...

View Article


Image may be NSFW.
Clik here to view.

There’s Still a Place for SQL Server Profiler

Follow a few of the SQL Family on Twitter and you’ll mostly see one view regards SQL Profiler, and it’s not generally friendly. So much so that I’ve been tempted to buy this t-shirt for some trolling...

View Article

Know more about SQL Server database backups, restores, and recovery: Q& A...

About Prashanth Jayaram DB Technologist, Author, Blogger, Service Delivery Manager at CTS, Automation Expert, Technet WIKI Ninja, MVB and Powershell Geek My Profile:...

View Article

Image may be NSFW.
Clik here to view.

Shortcut: Using bookmarks in SQL Server Management Studio

In a previous post, I was discussing how outlining can be helpful with navigating around within a large T-SQL script file. If you were trying to do that within a Microsoft Word document, the most...

View Article
Browsing all 3160 articles
Browse latest View live