SQL Server Backup and Restore Primer
― by Lori Brown @SQLSupahStah Back it up!! …. BEEP! BEEP! BEEP! … Oh wait! Not that kind of backup… Since I spent a lot of time trying to creatively move a database from one server to another last...
View ArticleLoading to Azure from On-Prem SSIS
Tim Mitchell Tim Mitchell is a business intelligence consultant, author, trainer, and Microsoft Data Platform MVP with over thirteen years of data management experience. He is the founder and principal...
View ArticleScriptDom parsing and NoViableAltExceptions
If you have ever tried to debug a program that used the TSql Script Dom to parse some T-SQL you will know that the process is extremely slow and this is due to the volume of NoViableAltExceptions (and...
View ArticleDefensive Database Programming with SQL Server
Alex Kuznetsov wrote: Resilient T-SQL code is code that is designed to last, and to be safely reused by others. The goal of defensive database programming, and of this book, is to help you to produce...
View ArticleSQL SERVER Add Failover Cluster Node Fails With Error This SQL Server Edit ...
In this blog post we will discover how to fix an Add Failover Cluster Node Fails With Error. If you have installed SQL Server cluster, then it would be easy for you to remember that it’s a two-step...
View ArticleBlog Challenge: I am watching you!
I decided to accept Grant’s (TheScaryDBA) challenge found here- http://www.scarydba.com/2017/03/02/random-blog-post-challenge/ where we have to write a technical blog post that incorporatesa certain...
View Article4 Free Things to Do with a Slow SQL Server
Step 1. Run sp_Blitz and look for urgent warnings.sp_Blitz is one of the free scripts in our First Responder Kit .Just open the sp_Blitz.sql, run that to create the stored procedure, and type:...
View ArticleSQL Server 2016 Developer’s Guide
I can proudly announce that it is already possible to preorder the SQL Server 2016 Developer’s Guide book (...
View ArticleFriday Reading 2017-03-03
I’m Andrew Pruski and I am a SQL Server DBA with 5 years experience in database development and administration. The online SQL Server community has helped me out immensely throughout my career, whether...
View ArticleSQL SERVER How to Apply Patch in AlwaysOn Availability Group Configuration?
This is one of the common question which is asked via emails to me. “How to apply the patch in AlwaysOn Availability Group configuration?” OR “What are the steps we should do and things to take care...
View ArticleAdventures in SQL Cluster Stacked Instances
Today we’re going to talk about SQL Server instance stacking. Blasphemy!! Right, in production . I’m talking about DEV/TEST environments. Still, blasphemy! Settle down. If your server is set up...
View Article[sql]使用自连接查询多对一数据 sql SQLServer sql语句 自连接 多对一数据
SQL语言,是结构化查询语言(Structured Query Language)的简称。SQL语言是一种数据库查询和程序设计语言,用于存取数据以及查询、更新和管理关系数据库系统;同时也是数据库脚本文件的扩展名。...
View ArticleSQLServer将JDE日期格式转换成常见日期格式 SQLServer SQLServer数据库 JDE日期格式 格 ...
SQL Server 将JDE日期格式转换成常见日期格式JDE日期格式:JDE所有的日期字段在DB存储时用的是Julia date格式,总共6码,第一码代表世纪,二三码代表年份,后三码代表前三码所属年份的第几天,比如216105,表示2016年的第105天,SQL 语句转换select...
View ArticleSQLServer截取字符串数组,获取字符串指定值 SQLServer SQLServer数据库 字符串数组 获 ...
SQLServer截取字符串数组,获取字符串指定值,截取字符串:例如 qweqe,1231423,werwer;qweqe,1231423,werwer返回一个表 --split:循环截取法CREATE FUNCTION f_splitSTR(@s varchar(8000), --待分拆的字符串@split varchar(10) --数据分隔符)RETURNS @re TABLE(col...
View ArticlePLSQL的介绍 PLSQL PLSQL语言 PLSQL概述 SQL99是什么
SQL99是什么(1)是操作所有关系型数据库的规则(2)是第四代语言(3)是一种结构化查询语言(4)只需发出合法合理的命令,就有对应的结果显示SQL的特点(1)交互性强,非过程化(2)数据库操纵能力强,只需发送命令,无需关注如何实现(3)多表操作时,自动导航简单,例如:select emp.empno,emp.sal,dept.dnamefrom emp,deptwhere emp.deptno =...
View ArticleSqlServer存储过程分页代码(支持亿万庞大数据量) SQLServer SQLServer数据库 存储过程 ...
Sql语句如下USE [Test]goSET ansi_nulls ONgoSET quoted_identifier ONgoALTER PROCEDURE [dbo].[Page] @tblName VARCHAR(255),-- 表名 @strGetFields VARCHAR(1000) = '*', -- 需要返回的列 @fldName VARCHAR(255)='id', --...
View ArticlePLSQL语法&&游标&&存储过程/存储函数&&异常&a ...
什么是PL/SQL?PLSQL语法&&游标&&存储过程/存储函数&&异常&&触发器。结构化查询语言(Structured Query...
View ArticleWhy to Use SQL Server Configuration Manager Over Services applet...
Question:Why to Use SQL Server Configuration Manager Over Services applet (services.msc)? Answer:You might have heard this advice many times but never got a complete answer to “Why”? Most of the blog...
View ArticleInteresting Stuff - Week 9
05 Mar 2017 in categories: roundup tags: data science SQL Server Microsoft R Server SQL Server R Services Throughout the week, I read a lot of blog-posts, articles, etc., that has to do with things...
View ArticleHow to Split a String in Sql Server without using a function
It is an usual practice to create a function to split the delimited sting in Sql Server, like the ones explained in the article Split delimited String . But if we are in a situation where you don’t...
View Article