Quantcast
Browsing all 3160 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Queries to inventory your SQL Server Agent Jobs

By: Rick Dobson || Related Tips:More >SQL Server Agent Problem I am a SQL developer who recently migrated to a team that relies heavily on SQL Server Agent Jobs. I need some help with inventorying...

View Article


Image may be NSFW.
Clik here to view.

SQL Server Memory Accounting: Aligning Perfmon & DMVs

Short one for today, trying to get back into the habit of posting stuff here ;-) I remember staring at all of the SQL Server memory-related counters available in perfmon, and wondering how I was going...

View Article


Skype for Business SQL Server Frustrations

Scenario The environment is new and secure. Assumptions: You are a DBA who knows how to build WSFCs and AGs. If you need help with that, then you’re in the wrong place for this post. The windows 2016 /...

View Article

Image may be NSFW.
Clik here to view.

RegEx in SQL Server for replacing text

In this post I’m presenting usage of two functions that use Regex. Myprevious post was about searching text in SQL Server using regex, and now I’m showing how to use it for replacing text in SQL...

View Article

[Video] Last Season’s Performance Tuning Techniques

You’re kinda-sorta comfortable doing performance tuning on SQL Server. You’ve read a few blogs, you monitor Page Life Expectancy, you rebuild your indexes, and you add an index here or there. However,...

View Article


Image may be NSFW.
Clik here to view.

Querying SQL Server Data from R Using RODBC

In the previous blog, we looked at some of the annoyances encountered when installingRODBC on linux. Of course, RODBC can also be used in R running on windows. In either case, running queries using...

View Article

Image may be NSFW.
Clik here to view.

How to simplify SQL Server Database Object usage with Synonyms

The concept of SQL Server Synonyms was introduced the first time in SQL Server 2005 as an alias name that references an existing database object, replacing its fully qualified name. In this way, it...

View Article

Working with SQL Server in Hybrid Cloud Scenarios. Part 2

As a rule, impersonal information is stored in a public cloud, and the personalized part in a private cloud. The question thus arises how to combine both parts to return a single result at a user’s...

View Article


Image may be NSFW.
Clik here to view.

SCCM, SQL, DBATools, and Coffee

Warning : This article is predicated on (A) basic reader familiarity with System Center Configuration Manager and the SQL Server aspects, and (B) nothing better to do with your time. Caveat/Disclaimer...

View Article


Image may be NSFW.
Clik here to view.

SQL SERVER Invalid Object Name ‘master.dbo.spt_values’ in Management Studio

One of my clients contacted me for On Demand (55 minutes) as they believed that this was a simple issue. John was honest enough to confess the mistake which he has done, which lead to error related to...

View Article

Image may be NSFW.
Clik here to view.

Sql Server Performance Testing

Home Performance Tuning Sql Server Performance Testing Performance Tuning Sql Server Performance Testing Sachin Diwakar August 1, 2017 no comments sql server performance testing, sql server...

View Article

Image may be NSFW.
Clik here to view.

SSAS: Discipline, Accuracy, Attention to Details. Part 2 OLAP Cube

Introduction In this article, I will continue describing my experience with Microsoft Analysis Services. In addition to theprevious article, I would like to write about unconventional solutions that...

View Article

深入浅析SQL中的group by 和 having 用法

一、sql中的group by 用法解析:  Group By语句从英文的字面意义上理解就是“根据(by)一定的规则进行分组(Group)”。  作用:通过一定的规则将一个数据集划分成若干个小的区域,然后针对若干个小区域进行数据处理。  注意:group by 是先排序后分组!  举例说明:如果要用到group by 一般用到的就是“每”这个字,...

View Article


sqlserver分页查询处理方法小结

sqlserver2008不支持关键字limit ,所以它的分页sql查询语句将不能用mysql的方式进行,幸好sqlserver2008提供了top,rownumber等关键字,这样就能通过这几个关键字实现分页。下面是本人在网上查阅到的几种查询脚本的写法:几种sqlserver2008高效分页sql查询语句top方案:sql code:select top 10 * from...

View Article

SqlServer索引的原理与应用详解

索引的概念索引的用途:我们对数据查询及处理速度已成为衡量应用系统成败的标准,而采用索引来加快数据处理速度通常是最普遍采用的优化方法。索引是什么:数据库中的索引类似于一本书的目录,在一本书中使用目录可以快速找到你想要的信息,而不需要读完全书。在数据库中,数据库程序使用索引可以重啊到表中的数据,而不必扫描整个表。书中的目录是一个字词以及各字词所在的页码列表,数据库中的索引是表中的值以及各值存储位置的列表...

View Article


Image may be NSFW.
Clik here to view.

SQL Server 2012使用Offset/Fetch Next实现分页数据查询

在Sql Server 2012之前,实现分页主要是使用ROW_NUMBER(),在SQL Server2012,可以使用Offset ...Rows  Fetch Next ... Rows only的方式去实现分页数据查询。select [column1] ,[column2] ... ,[columnN]from [tableName]order by [columnM]offset...

View Article

大容量csv快速内导入sqlserver的解决方法(推荐)

前言在论坛中回答了一个问题,导入csv 数据,并对导入的数据增加一个新的列date datetime。要求在10s内完成,200w行数据的导入.分享下解决问题的思路和方法分析通常来讲Bulk insert 比 BCP 更快一点,我们选择Bulk insert的方式。 提出的解决方案:先把数据导入到sql server 的临时表,然后再插入目标表。 具体语句如下:bulk insert...

View Article


SQL查询字段被包含语句

前言说到SQL的模糊查询,最先想到的,应该就是like关键字。当我们需要查询包含某个特定字段的数据时,往往会使用 ‘%关键字%' 查询的方式。例如:SELECT ... FROM 表名 WHERE 字段名 LIKE...

View Article

Image may be NSFW.
Clik here to view.

Sql Server2012 使用IP地址登录服务器的配置图文教程

最近在使用NFineBase框架+c#做一个系统的时候,在使用sql server 2012 连接数据库的时候 ,遇到几个问题。一.就是在本地或者远程连接别人的数据库的时候,以ip地址作为服务器名称 以SQL Server 身份验证(即输入登录名和密码)的方式登录数据库 总会出现错误比如说会提示一下错误:用户 'sa' 登录失败,该用户与可信 SQL Server 连接无关联。但是使用...

View Article

SQLServer查询某个时间段购买过商品的所有用户

goods表如下:name time productA 2016-1-2 13:23:00 WFEYB 2016-2-17 11:43;34 ASGA 2017-1-10 15:23:00 SGHC 2015-4-5 13:47:20 HRTC 2016-7-12 19:56:03 XCCA 2017-3-4 14:00:00 ESFWSELECT DISTINCT OO.name FROM...

View Article
Browsing all 3160 articles
Browse latest View live