SqlServer中如何解决session阻塞问题
简介对于数据库运维人员来说创建session或者查询时产生问题是常规情况,下面介绍一种很有效且不借助第三方工具的方式来解决类似问题。最近开始接触运维工作,所以自己总结一些方案便于不懂数据库的同事解决一些不太紧要的数据库问题。类似方法很多理论也很多,我就不做深究,就是简单写一个方案,便于菜鸟使用的。阻塞理解在Sql Server...
View ArticleMySQL 5.7 create VIEW or FUNCTION or PROCEDURE
1.视图a.CREATEALGORITHM = UNDEFINEDDEFINER = `root`@`localhost`SQL SECURITY INVOKERVIEW `sakila`.`actor_info` ASSELECT`a`.`actor_id` AS `actor_id`,`a`.`first_name` AS `first_name`,`a`.`last_name` AS...
View Article利用SQL Server数据库邮件服务实现监控和预警
背景现在越来越多的企业、公司要求对于数据库实现7*24小时的数据库监控,一般情况下采用的就是第三方的平台来实现邮件和手机短信的监测提醒。前几日公司新上了一台服务器,急于部署程序还没来得及搭建其他相关平台,为了更好的监控数据库,暂时用SQL...
View ArticleSQL Server 2012安装后服务器名称找不到的解决办法
网上说使用localhost即可,确实没错,但是有的仍旧会报出无法找到错误,我在无法通过的时候又重新安装了SQLServer,这次选中全部默认安装,之前使用的是选择安装,然后发现多了几个配置,其中有一项是建立实例,然后我再次选默认,安装完成后,再启动SQLServer2012,服务器名称中输入localhost,连接,ok.猜想:估计是安装时没有建立实例所致,本机就没有安装实例...
View ArticleSQL Server 树形表非循环递归查询的实例详解
很多人可能想要查询整个树形表关联的内容都会通过循环递归来查...事实上在微软在SQL2005或以上版本就能用别的语法进行查询,下面是示例。--通过子节点查询父节点WITH TREE AS( SELECT * FROM Areas WHERE id = 6 -- 要查询的子 id UNION ALL SELECT Areas.* FROM Areas, TREE WHERE TREE.PId =...
View Article当master down掉后,pt-heartbeat不断重试会导致内存缓慢增长的原因及解决办法
最近同事反映,在使用pt-heartbeat监控主从复制延迟的过程中,如果master down掉了,则pt-heartbeat则会连接失败,但会不断重试。重试本无可厚非,毕竟从使用者的角度来说,希望pt-heartbeat能不断重试,直到重新连接上数据库。但是,他们发现,不断的重试会带来内存的缓慢增长。重现环境:pt-heartbeat v2.2.19,mysql社区版 v5.6.31,Perl...
View ArticleT-SQL Tuesday #83: Roundup
For this month’s T-SQL Tuesday, I asked people toblog about the same old problems we’ve been dealing with for years .There were some great posts, includinga batch of first-time contributors. You’ll...
View ArticleSQL SERVER Database going to Recovery Pending Automatically and Coming Back
I love connecting community via various channels. One of my clients explained an interesting issue to me. He explained that he has a production database which is going to Recovery Pending state by...
View ArticleCompress & Decompress new Feature in SQL SERVER 2016 #2
This is another article in the series of SQL SERVER 2016 Journey . I am pretty much sure you might aware of Gzip Compression algorithm . If not then try this link . So, SQL SERVER 2016 introduce this...
View Article[译]:Orchard入门――安装Orchard
原文链接: Installing Orchard 文章内容基于Orchard 1.8版本 安装Orchard的方式 主要有以下四种方式安装Orchard: 利用Microsoft Web Platform Installer(微软Web平台安装程序)进行安装。 利用Microsoft WebMatrix安装;参考: 原文:使用WebMatrix管理Orchard 。 下载Orchard .zip...
View Article#0390 SQL Server SSIS OLE DB Destination Table Fast Load Keep Ide ...
Recently, I started writing about the nuances of SSIS which most accidental SSIS developers may frequently get stumped by due to the differences in behaviour over conventional T-SQL. The OLE DB...
View ArticleCustomize SQL Server Reporting Services Reports Manager Portal
By:Siddharth Mehta || Related Tips: > Reporting Services Configuration Problem Reports Manager is the default report management portal for SQL Server Reporting Services (SSRS) reports. One of the...
View ArticleSQL Server Data Mining Strategies for Stock Buy and Sell Recommendations
Problem Our start-up stock advisory service successfully recommends long-term winning stocks. Some of our clients additionally want specific advice about when to buy and sell recommended stocks. Please...
View ArticleUnique Indexes and Computed Columns in SQL Server
In thelast post of this blog series, I discussed what a non-clustered index is and how to choose an ideal non-clustered index key. In this post, I will discuss indexes on computed columns and unique...
View ArticleInstalling SQL Server 2016 Language Reference Help from disk
A couple of years ago I blogged about Installing the SQL Server 2014 Language Reference Help from disk . WithSQL Server 2016 things changedsignificantly: we have thenew Help Viewer 2.2, which is...
View ArticleMicrosoft MVP Award
On October 1st, 2016 humbled to be received Microsoft MVP Award . And today, October 17th, a special package awaited me at the post office. The award it self. The actual certificate to the MVP award...
View ArticleSQL Server as a Machine Learning Model Management System
This post was authored by Rimma Nehme, Technical Assistant, Data Group Machine Learning Model Management If you are a data scientist, business analyst or a machine learning engineer, you need model...
View ArticleLatest Builds of SQL Server 2014
Updated October 18th, 2016 Regardless of your branch or patch level, be sure to check out this CSS blog post and KB #2964518 : Recommended updates and configuration options for SQL Server 2012 / 2014...
View ArticleTime Traveling with Temporal Tables on SQL Server 2016
One of the new features of SQL Server 2016 is the ability to time travel in your databases and visit a specific table at a specific point of time in history. You can also use this feature to audit...
View Article