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

Bigger Fact Table for Wide World Importers

Microsoft released a new sample database a couple of months back: Wide World Importers . It’s quite great: not every (unnecessary feature) is included but only features you’d actually use, lots of...

View Article


Image may be NSFW.
Clik here to view.

SQL SERVER Installation Fails With Error A Constraint Violation Occurred

In my recent past, I have helped around 10 customers who have had similar problems while installing SQL Server Cluster on windows. So I thought it would be a nice idea to pen it down as a blog post so...

View Article


Tech tip: making SSIS Project Connections generate correctly using BIML Express

A bit more of a technical view on things today. In order to stay up to date with the latest when it comes to generating ETL for the Microsoft stack (SSIS), I recently upgraded from Visual Studio 2013...

View Article

T-SQL----系统表

T-SQL T-SQL---- 系统表 T-SQL-----存储过程 前言 虽说现在orm,nosql对数据的操作会减少很多t-sql的编程,但是t-sql这应该是每个程序员要掌握的,接下来的两周准备把这块知识点进行系统总结。 1.系统表 存储SQL所有的系统信息。存储有关数据库服务中的元数据所谓元数据即(比如数据服务器有哪些用户数据库、数据库服务器有哪些登陆账号,...

View Article

Image may be NSFW.
Clik here to view.

SQL Server 2008 导出/还原/兼容到 SQL Server 2005、2000

之前我们要将一个表中的数据导出为脚本,那么只有在网上找一个导出数据的Script,然后运行就可以导出数据脚本了。现在在SQL Server 2008的Management Studio中增加了一个新特性,除了导出表的定义外,还支持将表中的数据导出为脚本。导出过程: 在SSMS2008(SQL Server Management Studio...

View Article


SQL Server 2014 内存优化表

不同于disk-based table,内存优化表驻留在内存中,使用 Hekaton 内存数据库引擎实现。在查询时,从内存中读取数据行;在更新时,将数据的更新直接写入到内存中。内存优化表能够在disk上维护一个副本,用于持久化数据集。 Memory-optimized tables reside in memory. Rows in the table are read from and...

View Article

Image may be NSFW.
Clik here to view.

T-SQL:毕业生出门需知系列(九)

《SQL 必知必会》读书笔记 -- 第9课 汇总数据 9.1 聚集函数:对某些行运行的函数,计算并返回一个值 案例: -- 确定表中函数 -- 获得表中某些行的和 -- 找出表列的最大值、最小值和平均值等 --当我们实际想要汇总信息,而不是需要数据本身时,可节省时间和带宽。 --表9-1 --函数 说明 --AVG() 返回某列的平均值 --COUNT() 返回某列的行数 --MAX()...

View Article

Image may be NSFW.
Clik here to view.

Challenges running Continuous Merge Agents

Chris Skorlinski Microsoft SQL Server Escalation Services I wanted to cover in this blog challenges you’ll encounter running Merge Agent on continuous schedule. These are Merge Agents whose SQL Server...

View Article


Image may be NSFW.
Clik here to view.

SQL SERVER A Timeout (30000 milliseconds) was Reached While Waiting for a Tra...

Recently I was contacted by a client who reported very strange error in the SQL Server machine. These consulting engagements sometimes get the best out of you when it comes to troubleshooting. They...

View Article


Image may be NSFW.
Clik here to view.

Installing new SQL Server sample databases: WideWorldImporters

By:Koen Verbeeck || Related Tips:More >SQL Server 2016 Problem With a new release of SQL Server (SQL Server 2016) comes also a new sample database. The days of AdventureWorks are over, here's Wide...

View Article

Image may be NSFW.
Clik here to view.

#0381 SQL Server Table design Is it better to use NEWID or NEWSEQUENTIA ...

Database schema designinvolves defining the clusteredkeys (generally the primary key) on a table, and one of the maindecisions to be taken iswhether to use a clustered key based on...

View Article

Recipe for an awesome (free) SQL Server workstation

windows 10 . Where we're going we don't need legacy software, but if you do, then download PowerShell 5.0 instead. SQL Server Management Studio 2016 and SQL Sentry Plan Explorer (Free) . Don't forget...

View Article

Image may be NSFW.
Clik here to view.

SQL Server 2016: Broader Access, Better Reporting, Faster Analytics

Microsoftwants to make it easier for businesses to use their data. Otherwise, what’s the point? In SQL Server 2016 you’ll find a virtual tool chest full of features, all with one primary goal:...

View Article


Image may be NSFW.
Clik here to view.

Artemiou Data Tools: Free Online SQL Services

Three years ago, back in 2013, I founded the " Artemiou Data Tools " community initiative. Under the "Artemiou Data Tools" initiative I aim at developing simple yet powerful data tools for the...

View Article

Learn more about Azure + SQL Server at SQLSaturday Minnesota

I’m excited to cross the Mississippi River again this autumn to present at SQLSaturday #557 Minnesota 2016 . First, I’ll be giving a full-day pre-conference session, “Get Started With SQL Server in...

View Article


Image may be NSFW.
Clik here to view.

Rename logical database file name for a SQL Server database

By:Manvendra Singh || Related Tips:More > Database Administration Problem SQL Server database files have two names: one is the logical file name and the other is the physical file name. The logical...

View Article

SQL Server 存储过程

Transact-SQL中的存储过程,非常类似于Java语言中的方法,它可以重复调用。当存储过程执行一次后,可以将语句缓存中,这样下次执行的时候直接使用缓存中的语句。这样就可以提高存储过程的性能。 存储过程的概念 存储过程Procedure是一组为了完成特定功能的SQL语句集合,经编译后存储在数据库中,用户通过指定存储过程的名称并给出参数来执行。...

View Article


Image may be NSFW.
Clik here to view.

SQL Server 2016: built-in JSON Use case scenarios

Microsoft SQL Server has become an increasingly friendly data platform for developers. It natively supports XML for a large number of years and now, keeping up with trends, we can use built-in JSON...

View Article

Speaking At Dev Data Day 2016

If you’re in the Birmingham, AL area this Saturday (August 20, 2016), come join me at Dev Data Day at Samford University, where I’ll be presenting SQL Server Tips For Everyday Programmers. I’m looking...

View Article

SQL Server Backup Strategy

[Total: 0 Average: 0/5] You can createSQL Server backup strategy with the help ofSqlBak. Probably one of the most frequent jokes you will notice while speaking around one particular vital task for a...

View Article
Browsing all 3160 articles
Browse latest View live