File Maintenance Cleaning Up Old Files
Using SSIS to Maintain the File System We have all run into a need or a desire to clean up old stale files from the file system, whether it be to remove old backup files or flat files that are created...
View ArticleHow to Proactively Gather SQL Server Indexes Fragmentation Information
How to Proactively Gather SQL Server Indexes Fragmentation Information Introduction to SQL Server Indexes Microsoft SQL Server is considered as one of the relational database management systems ( RDBMS...
View ArticleWhat is the Max Degree of Parallelism setting for SQL Server?
Max Degree of Parallelism is a setting that is often changed to improve performance in SQL Server. What exactly does Max Degree of Parallelism mean and do? Modern processors found in servers today are...
View ArticleMerry Christmas From SQL Server
Below is the script which you can run directly in your SSMS and SQL Server (With the power of Spatial results) sends you Christmas wishes directly on your screen USE tempdbGO-- Prepare the sceneCREATE...
View ArticleSQL Server 2008 end of support
SQL Server 2008 end of support araujo.christian Posted on 21 December 2018 Comments 2018 is about to end. In the case you didn't know or haven't heard, the extended support for SQL Server 2008 (and R2)...
View ArticleSQL Server 2008 - Modifying tables: Bit columns require 'True' or...
Not so much a question as an observation... I'm just upgrading to SQL Server 2008 on my development machine in anticipation of upgrading my live applications. I didn't anticipate any problems since [I...
View ArticleGroupBy : New Engine Features in SQL Server 2019
This morning I presented a session on SQL Server 2019 (video here , deck and sampleshere), and the demo gods were very unkind to me. They spoiled not one demo, but two! The first demo that bombed was...
View ArticleGet query results string instead of lines
I am using SQL Server 2012. I need to concatenate results from query below into one long string. So, instead of getting row results I need only one string. I would like to populate @TEMPS_MEASURE with...
View ArticleSQL Server Update very slow query
I ran the following query on a previous years data and it took 3 hours, this year it took 13 days. I don't know why this is though. Any help would be much appreciated. I have just tested the queries in...
View ArticleEvolving Our Tools
This week the next preview version of SSMS v18 was released . This is the sixth preview release, and I’m guessing that this will be one of the last. Six seems like a lot of releases, and I’d like to...
View ArticleSQL Server Export/Import excel using R script - Part 1
In this post, let us see how we can easily import or export to excel with just few lines of r script executed from SSMS usingsp_execute_external_script. I have done below example using SQL Server 2016...
View ArticleSQL SERVER Performing IF…THEN In T-SQL With IIF Expression
Today, we are going to see one of the most underutilized features of SQL Server IIF. In SQL Server we can performance IF…THEN logic in T-SQL with IIF Expression but I hardly see it being used at most...
View ArticleSQL Server Export/Import excel using R script - Part 2
In continuation to my previous post on SQL Server Export/Import excel using R script - Part 1 , let ussee few other examples in this post. In previous post, I had selected only first six key fields...
View ArticleSQL Server Export/Import excel using R script - Part 3
In continuation to my previous posts on SQL Server Export/Import excel using R script -Part 1 &Part 2, where we saw about exporting to Excel. In this post, let us see how to import Excel into SQL...
View ArticleSQL Server Restore Interview Questions
By:Rajendra Gupta | Last Updated: 2018-12-24 || Related Tips:More > Professional Development Interview Questions DBA Problem In my previous tip, we learned about interview question related to SQL...
View ArticleUpdate Statistics for All Tables and Databases in a SQL Server Instance
By:Eduardo Pivaral | Last Updated: 2018-12-24 || Related Tips:More > Maintenance Problem You are a database administrator and have hundreds of SQL Server instances. One common administration task...
View ArticleSQL Server 2008无备份误删数据的恢复
系统已上线,给客户修改bug的时候,使用delete语句删表数据,没想到库没切换成测试库。误删了SQL Server正式库的数据,而且一次备份都没有做过,玩大了。 不扯了,进入主题 网上很多方法,都是针对至少有一次备份的情况下进行数据恢复的,没有备份就基本上只能找数据恢复公司了。本章将通过日志来恢复误删的数据,若是日志文件都没有了,那就真的玩大了 步骤:...
View ArticleKnow About SQL Server Log Sequence Numbers for Backups
Overview Transaction log is exclusively identified by log sequence number (LSN) in SQL Server. Whenever the users take, the backup of transaction log then, it is stored in LSN form. These are used as...
View ArticleComplete Regex Syntax for Sql Server Management Studio
SVN Client for SQL Server Management Studio 2005 I have installed Tortoise SVN and AnkhSVN, but neither one shows up in my SQL Server Management Studio 2005 under the Source Code Control options. I...
View ArticleThe 2018 Blog Posts You Read the Most
Here are the 2018 blog posts you visited the most: 10. What’s New in SQL Server 2019 CTP 2.1: Faster Functions We’re excited about a lot of stuff in 2019, but this is by far and away the winner. 9. How...
View Article