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

Check constraint in sql server

CHECK constraint is used to limit the range of values that can be entered in a column.If the value is not in the range sql server do not allow to insert the values into table by throwing an error....

View Article


Image may be NSFW.
Clik here to view.

How to work with the command line in Azure SQL Data Warehouse

Introduction This time we will use the the command line to create tables and alter the Azure SQL Data Warehouse (ASDW) database. Sqlcmd is the command line that you can use to access to your ASDW from...

View Article


Image may be NSFW.
Clik here to view.

Automatically filling your SQL Server test databases with data

Guest Blogger: Phil Factor This is a guest post from Phil Factor. Phil Factor (real name withheld to protect the guilty), aka Database Mole, has 30 years of experience with database-intensive...

View Article

Integrating DACPAC deployments of Azure SQL Database with Visual Studio Team...

One of the concepts that has recently been growing rapidly in popularity, in the context of cloud technologies, is DevOps. Derived from the combination of two terms - Development and Operations, it...

View Article

Image may be NSFW.
Clik here to view.

Metadata Hygiene

Those who follow my blog know that I write a lot about data quality . Measuring and improving the quality of data is an important part of any data initiative, especially in the data warehousing space....

View Article


Image may be NSFW.
Clik here to view.

Harmful, Pervasive SQL Server Performance Myths

Between my travels, presentations, and Q & A moderation, I talk to a lot of people about a wide variety of SQL Server performance issues. Recently, I've had a few interactions where people believe...

View Article

Image may be NSFW.
Clik here to view.

New White Paper: SQL Server Performance Tuning in Google Compute Engine

You’re a database administrator, windows admin, or developer. You might even be a marmot. You’re building your first SQL Servers in Google Compute Engine, and you’re stuck at the create instance...

View Article

Image may be NSFW.
Clik here to view.

SQL Server - Who's got a lock and how long've they had it?

A question came up this morning about capturing all activity against a given SQL Server table for a period of time. The goal was to identify what was taking out a lock on a table and taking its sweet...

View Article


SQL 2008 还原SQL 2005备份文件不成功的解决方法

Sql Server 2008还原2005数据库时出现 3154错误 (从网上找到的第二种方法已经验证通过,留下备用)解决方法1:不要在数据库名字上点右键选择还原,而要是在根目录“数据库”三个字上点右键选择还原,然后再选择数据库,问题便可以解决,如果不行参照方法2解决方法2:写sql语句处理:RESTORE DATABASE [databaseName] FROM DISK =...

View Article


Image may be NSFW.
Clik here to view.

管理SQL Server AlwaysOn(1)――基础维护 Server 管理SQL AlwaysOn 滚动补丁升级 转 ...

管理SQL Server AlwaysOn(1)——基础维护。前面系列已经介绍了SQL Server 的知识点、安装演示及注意事项等。但是这并不是终点,更多的反而是起点。就像不能生了孩子就不管,你还得养(管理)。作为DBA,更多的工作内容恰恰就是管理AlwaysOn。所以这里单独列出一个系列介绍SQL Server AlwaysOn的管理。本系列沿用从0开始部署基础的AlwaysOn...

View Article

Image may be NSFW.
Clik here to view.

Design-Time Properties for Custom SSIS Objects Part 1 Intro & Tasks ...

Managing the editable properties of your custom objects in SQL Server Integration Services (SSIS) is a great way to improve their usability, but how can you? By properties, I mean the common fields...

View Article

Image may be NSFW.
Clik here to view.

SQL SERVER Script Upgrade Server Principal ‘MS_PolicyEventProcessingLogin ...

One should be very careful while working with system objects in SQL Server. Below is one of the situation where some permissions were given on system objects which was causing SQL startup failure. I...

View Article

Gitea 发布 v1.1 版本,支持 Git-LFS,两步验证等大量改进

我们很高兴的宣布Gitea 发布了 1.1.0 版本。在这个版本中,我们关闭了 126 工单,同时合并了 348 合并请求。你可以从 下载页面 根据你所处的平台和架构下载预编译版本。更多安装详情请参考 安装向导 。 新版本支持 Git-LFS,两步验证,mssql,Github 登录等大量改进。 日志: 改变 The SSH keys can potentially break, make...

View Article


Image may be NSFW.
Clik here to view.

Identity Column in Sql server

What is Identity Column: We can say an Identity column is an auto generating column.If a column is marked as an identity column then the values of the column are automatically generated(It must be of...

View Article

Image may be NSFW.
Clik here to view.

Blue Screen Your SQL Server On-Demand

John Sterrett John Sterrett is very active within the SQL Server community. He is a PASS Regional Mentor for the South Central Region, co-founded the West Virginia SQL Server User Group and hosted two...

View Article


Image may be NSFW.
Clik here to view.

SQL Server sp_execute_external_script Stored Procedure Examples

By:Vitor Montalvao || Related Tips:More >SQL Server 2016 Problem The sys.sp_execute_external_script is a new system stored procedure introduced in SQL Server 2016. It intends to execute any...

View Article

Image may be NSFW.
Clik here to view.

PowerShell Commands for SQL Server Reporting Services

By:Aaron Nelson || Related Tips: > Reporting Services Administration Problem You need to deploy a large number of reports to an instance of SQL Server Reporting Services (SSRS), be it a new install...

View Article


TroubleShooting SQL Server Memory Consumption

Recently on one of our staging servers had a memory consumption issue and even 32 GB of RAM was looking insufficient and application performance was being impaired. Initially I thought the cause would...

View Article

Image may be NSFW.
Clik here to view.

Understanding Graphical Execution Plans - Part 1: Explaining the Plan

Being able to understand and analyze execution plans is an important and beneficial skill for SQL Server database administrators and developers alike. An execution plan documents the estimated cost of...

View Article

如何处理SQL Server事务复制中的大事务操作

如何处理SQL Server事务复制中的大事务操作 事务复制的工作机制 事务复制是由 SQL Server 快照代理、日志读取器代理和分发代理实现的。快照代理准备快照文件(其中包含了已发布表和数据库对象的架构和数据),然后将这些文件存储在快照文件夹中,并在分发服务器中的分发数据库中记录同步作业。...

View Article
Browsing all 3160 articles
Browse latest View live