Columnstore Indexes part 92 (“Lobs”)
Continuation from the previous 91 parts, the whole series can be found at http://www.nikoport.com/columnstore/ . Since the very first version of the Columnstore Indexes in 2012, there has been no...
View ArticleUsing SQL Server Express in Production
Question:I’ve had a request to install SQL Server Express to support a Production application. It’s a lightweight application , and doesn’t require some of the added features , such as High...
View ArticleData Channel - Launch
SQL and SQL Only I am Nagaraj (aka Raj), a SQL Server Database Administrator for one of the busiest OLTP systems in Singapore. Being a SQL Enthusiast for over 10 years now, I love to explore and share...
View ArticleHow to Downgrade Database from SQL Server 2014 to SQL Server 2012 Interview Q...
Question:How to downgrade from SQL Server 2014 to SQL Server 2012? Answer: Not possible. Do not give up reading this blog post there is one workaround. Workaround You can script your entire database...
View ArticleSQL Server 2016 SP1 Bug with Graphical Execution Plans
Early adopters: if you’re rolling on SQL Server 2016 SP1, you may have noticed that when you click on query plans in sp_BlitzCache or sp_WhoIsActive, they sometimes render as ugly XML rather than the...
View ArticleIntegration Testing with Entity Framework Core and SQL Server
Entity Framework Core makes it easy to write tests that execute against an in-memory store. Using an in-memory store is convenient since we don’t need to worry about setting up a relational database....
View ArticleDeploying SSIS Projects to a Restored SSIS Catalog (SSISDB)
You’re coding away with SSIS, happy as a clam, and it’s now time to deploy your hard work to an instance of the SSIS Catalog. If you’re in Visual Studio, you right-click the project name in Solution...
View ArticleSQL SERVER Playing with Backups and Compression
The era of innovation with SQL Server administration side of things keep happening, it is strange that a lot of us miss these capabilities getting added into the system. I have seen processes define...
View Article如何快速删掉SQL Server登录时登录名下拉列表框中的选项
问题:我以前创建了一个登录名如kpi,之后在“安全性-登录名” 里删掉了,但是每次登录时,登录名的下拉框中总是能显示登录名kpi,怎么把它删掉呢?解决方案:1).SQL Server 2008 R2和SQL Server 2008先关闭数据库登录窗口,然后删除:%AppData%\Microsoft\Microsoft SQL...
View ArticleSqlServer 复制中将大事务分成小事务分发的方法
在sql server 复制中,当在发布数据库执行1个大事务时,如一次性操作 十万或百万以上的数据。当操作数据在发布数据库执行完成后...
View Article数据库SQL中having和where的用法区别
“Where” 是一个约束声明,使用Where来约束来之数据库的数据,Where是在结果返回之前起作用的,且Where中不能使用聚合函数。“Having”是一个过滤声明,是在查询返回结果集以后对查询结果进行的过滤操作,在Having中可以使用聚合函数。 聚合函数,SQL基本函数,聚合函数对一组值执行计算,并返回单个值。除了 COUNT 以外,聚合函数都会忽略空值。 聚合函数经常与 SELECT...
View Articlesql中 order by 和 group by的区别
order by 从英文里理解就是行的排序方式,默认的为升序。 order by 后面必须列出排序的字段名,可以是多个字段名。group by 从英文里理解就是分组。必须有“聚合函数”来配合才能使用,使用时至少需要一个分组标志字段。什么是“聚合函数”? 像sum()、count()、avg()等都是“聚合函数” 使用group by...
View ArticleSQL SERVER中强制类型转换cast和convert的区别详解
SQL SERVER中强制类型转换cast和convert的区别在SQL SERVER中,cast和convert函数都可用于类型转换,其功能是相同的,只是语法不同.cast一般更容易使用,convert的优点是可以格式化日期和数值.select CAST('123' as int) -- 123select CONVERT(int, '123') -- 123select CAST(123.4...
View Articlejava之File对象对文件的操作常用的几个方法(推荐)
File对象是对文件操作最常用的类,平常工作总用的很多,贴出来了几个我工作常用的几个方法。简单总结了下直接上代码://构建文件对象File file=new File("E:/android_demo/a");File fileTest=new File("E:/android_demo/a/test.mp3");//获取文件的父路径File...
View ArticleSQL Sever2008r2 数据库服务各种无法启动问题的解决办法(详解)
一.Sql Server服务远程过程调用失败解决以前出现过这个问题,那时候是因为把实例安装在了D盘,后来D盘被格式化了。然后,这些就没了。今天早上打开电脑,竟然又出现这个问题,可是Server2008R2全部装在C盘了呢。解决方法:最后查找解决方法,发现故障原因为:安装Visual Studio 2012的时候,自动安装“Microsoft SQL Server 2012 Express...
View Article在SQL Server 2005所有表中搜索某个指定列的方法
有时候我们只知道列的名字,但是不知道这列数据到底在哪个表里面,那么可以用下面的办法把含有这列数据的表查找出来。复制代码 代码如下:Select O.name objectName, C.name ColumnName from sys.columns C inner join sys.objects O ON C.object_id=O.object_id where C.name like...
View ArticleExam study material for Querying Microsoft SQL Server 2012/2014 (Exam 70-461)
By:Daniel Calbimonte || Related Tips:More > Professional Development Certifications Problem I would like to pass the Microsoft 70-461 exam. Can you give me links, books and recommendations for the...
View ArticleMonday Coffee 2016-11-28
MCSA SQL Server 2016 The new SQL 2016 MCSA exams are out and joy of joys, the DBA path no longer requires the Data Warehouse exam! I say this as a DBA who has had limited practical exposure to the...
View ArticleGetting Started with R Services in SQL Server 2016 Part 1
Introduction Advanced Analytics is becoming a norm now. Every organization wants to use the power of advanced analytics to predict the future outcome and take proactive corrective measures to remain...
View ArticleA Better Way to Execute SSIS Packages with T-SQL
There are several ways to execute SSIS packages that have been deployed to the SSIS catalog, and my favorite way of performing this task is to execute SSIS packages with T-SQL. There are a couple of...
View Article