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

Image may be NSFW.
Clik here to view.

SQLintersection Spring 2017

As we head into our 9th SQLintersection in May, I’m excited to say that it’s once again our most diverse, complete, and information-packed show yet! One of the pieces of feedback we hear over and over...

View Article


Image may be NSFW.
Clik here to view.

SQL Server虚拟化系列(3)――构建理想的基于VMware的SQL Server虚拟机

虚拟化变得越来越常见,并且在不了解虚拟化如何工作的情况下,DBA在尝试解决性能问题时会出现盲点,例如减少资源争用或改进备份和恢复操作等。 在本文中我们将主要讲述为您的SQL Server工作负载构建理想的基于VMware的虚拟机。我们的下一篇文章将介绍怎么样在Hyper-V上构建对应的SQL Server虚拟化环境。 现在,作为DBA,您可能没有访问权限来创建用于SQL...

View Article


Image may be NSFW.
Clik here to view.

SQL SERVER Queries are in KILLED/ROLLBACK State with Wait PREEMPTIVE_OLEDB_RE...

There are many wait types in SQL Server and not all of them are documented. Long ago I wrote blog on PREEMPTIVE and Non-PREEMPTIVE waits. SQL SERVER PREEMPTIVE and Non-PREEMPTIVE Wait Type Day 19 of...

View Article

Image may be NSFW.
Clik here to view.

Explore the Benefits of Covering Indexes

Sometimes the old ways are still the best- even in technology. Long before there was an SQL Server, database professionals made advantageous use of the “covering” index, so-called because the columns...

View Article

The Migration Checklist

One of the things I always recommend is that when you upgrade a SQL Server instance, you perform a side by side migration to a new host instead of an in-place upgrade. My main concern is risk. While...

View Article


Image may be NSFW.
Clik here to view.

SQL Server 2016 SP1 EE checkdb with physical_only: Trace flags 2549 &...

First things first: I don't think trace flag 2549 does anything in SQL Server 2016 SP1 Enterprise Edition. Last time I said that, I was wrong :grinning:. I was tricked by trace flag 2549 needing to be...

View Article

Parsing SSIS Catalog Messages for Lookup Performance, v2

A couple years ago I wrote Administering SSIS: Parsing SSIS Catalog Messages for Lookups . I’ve updated the script to return all Lookup Transformation performance messages captured by the SSIS Catalog...

View Article

SQL script batch execution using sqlcmd in PowerShell

There is often a mismatch betweenneeds of the development team(multiple discreet T-SQL files for separate concerns) and the release team (the requirement for one step automated deployment) . The...

View Article


Encrypting SQL Server: Dynamic Data Masking

SQL Server 2016 introduced dynamic data masking (DDM) as a way to prevent unauthorized users from viewing certain types of sensitive information. The database engine masks the data when it is retrieved...

View Article


码云推荐 | Go 实现的性能优秀的 ORM shorm

34 Commits 1 Branches 0 Tags 0 Releases 克隆/下载 master 管理 master 文件 新建文件 上传文件 搜索文件 挂件 shorm HTTPS SSH 复制 下载ZIP shengzhi 最后提交于 2017-02-07 16:48 .-- bug fix LICENSE GitHub Update LICENSE 2016-06-15 16:41...

View Article

Image may be NSFW.
Clik here to view.

SQL SERVER FIX : Msg 35295, Level 16 Log Backup For Database ‘DBName’ on ...

Once, while doing a load testing with my client, I was shown below error while taking log backups on secondary replica. Msg 35295, Level 16, State 1, Line 1 Log backup for database “MyAppDB” on a...

View Article

SQL Server不停机移动镜像数据库

SQL Server数据库镜像是对于数据库可用性的软件解决方案。镜像在每个数据库级别被部署,并只能在完整恢复模式下工作。由于磁盘空间的问题,需要移动镜像数据库到一个不同的位置。我们想不停机、不破坏镜像来完成这个任务。需要在不同的环境做测试。 对于启用了数据库镜像的数据库的文件移动,我们只有有限的选择。常规方法如下: 破坏数据库镜像会话,通过使用Alter database或Attach...

View Article

SQL表内查重 sql SQLServer SQL语句 SQL表内查重

SQL表内查重,查询重复记录select * from my_tabwhere dup_col in(select dup_col from my_tabgroup by dup_colhaving count(dup_col)>1)order by dup_col;

View Article


docker安装PostgreSQL Docker Docker教程 PostgreSQL PostgreSQL安装

0 任务简介docker安装PostgreSQL,在Ubuntu 16.04虚拟机中安装docker 使用docker安装PostgreSQL 完成端口映射使得外部机器可以访问虚拟机中的数据库 1 安装docker这一部分比较简单,不过考虑到完整性,还是列出来吧。我这次选择的是docker-ce,安装流程如下: 1.1 建立 repositorysudo apt-get install...

View Article

Image may be NSFW.
Clik here to view.

Introduction to PolyBase in SQL Server 2016 - Part 2

By:Edwin Sarmiento || Related Tips:More >Big Data Problem In a previous tip on SQL Server 2016 Features in CTP2 , one of the new features introduced was PolyBase. Our organization is thinking of...

View Article


sql语句_自连接_外连接_左连接_子查询_排序_分组 sql SQLServer sql语句 sql自连接

sql语句_自连接_外连接_左连接_子查询_排序_分组。 sql语句 分为DDL,DCL,DLL 1),DDL,data define language: 新建一个数据库 ceate创建 alter修改 drop删 这三条语句,在下面几个组件中,都可以用得到 数据库分为下面几个组件 a,数据库,database #如果之前已经存在,删除它 drop DATABASE if exists 数据库名;...

View Article

postgresql数据库备份与恢复 sql SQLServer postgresql 数据库备份 数据库恢复

postgresql数据库备份与恢复pg_dump1. 备份整个数据库:pg_dump -U nsc -d nsc -C -F c -f nsc.sql2. 备份一张表内容:pg_dump -U nsc -d nsc -a -F c -t mail_send -f mail_send.sql3. 备份整个表结构:pg_dump -U nsc -d nsc -F c -s -f...

View Article


SQL执行顺序 sql SQLServer SQL语句 SQL执行顺序

SQL 不同于与其他编程语言的最明显特征是处理代码的顺序。在大数编程语言中,代码按编码顺序被处理,但是在SQL语言中,第一个被处理的子句是FROM子句,尽管SELECT语句第一个出现,但是几乎总是最后被处理。 每个步骤都会产生一个虚拟表,该虚拟表被用作下一个步骤的输入。这些虚拟表对调用者(客户端应用程序或者外部查询)不可用。只是最后一步生成的表才会返回...

View Article

Image may be NSFW.
Clik here to view.

SQLite剖析之临时文件、内存数据库 SQLite SQLite分析 临时文件 内存数据库

SQLite剖析之临时文件、内存数据库 一、7种临时文件SQLite中,一个数据库由单个磁盘文件构成,简化了SQLite的使用,因为移动或备份数据库只要拷贝单个文件即可。这也使得SQLite适合用作应用程序文件格式。但是,当在单个文件中存储一个数据库时,SQLite会在处理数据库的过程中使用许多临时文件。SQLite目前使用7种不同类型的临时文件:* 回滚日志(Rollback journals)*...

View Article

Image may be NSFW.
Clik here to view.

Improve SQL Server Table Variable Performance Using Trace Flag 2453

By:Ahmad Yaseen || Related Tips:More > AlwaysOn Availability Problem How can we improve the performance of queries thatuse SQL Server table variables? What options are available? Solution When a...

View Article
Browsing all 3160 articles
Browse latest View live