Quantcast
Browsing all 3160 articles
Browse latest View live

Simulating LAG And LEAD Prior To SQL Server 2012

Last month I covered a Special Islands challenge . The task was to identify periods of activity for each service ID, tolerating a gap of up to an input number of seconds ( @allowedgap ). The caveat...

View Article


Image may be NSFW.
Clik here to view.

SSIS SharePoint Source

This post shows you how to use Office 365 SharePoint as data source in SSIS Data Flow. Pre-requisite: 1. You already have basic knowledge on SSIS. 2. You have installed SharePoint SDK to your...

View Article


SDU Tools: Is XACT_ABORT on in my SQL Server session?

XACT_ABORTis one of the least well understood options that you can configure in a SQL Server session. Yet it's very important. XACT_ABORT makes statement-terminating errors become batch-terminating...

View Article

SQL Server Sorting Algorithm

Sort javascript to match SQL Server sort Can anyone point me towards a sorting algorithm in javascript that would sort the same way SQL Server does (for nvarchar/unicode columns)? For reference, my...

View Article

Image may be NSFW.
Clik here to view.

Using Alternate Key to set Lookup in SSIS (KingswaySoft)

Alternate Keys which were introduced with CRM 2015 Update 1, gave us the ability to Upsert and Update records, by defining one or more fields as Alternate Key and use that field(s) instead of relying...

View Article


Image may be NSFW.
Clik here to view.

[Video] Office Hours 2018/10/10 (With Transcriptions)

This week, Brent, Tara, and Richie discuss splitting large database files across multiple files, security auditing solutions, what Brent is currently teaching at the client location, SQL Server in...

View Article

SQL server queries are very slow only when first run

Somewhat strange problem... when I start my .NET app for the first time after rebooting my machine, the SQL Server queries are really slow... when I pause the debugger, I notice that it's hanging on...

View Article

SQL Server Query Log for Failed / Incorrect Queries?

I am using SQL Server 2008 and I would like to know if there's a way to find invalid SQL queries that have been executed in a database. For example: SELECT * FROM NonExistingTable ...where the database...

View Article


Image may be NSFW.
Clik here to view.

How to Find Queries Using an Index From SQL Server Plan Cache? Interview Ques...

Question:How to Find Queries Using an Index From SQL Server Plan Cache? Answer:During the recent Comprehensive Database Performance Health Check , I had an interesting situation, where I suggested...

View Article


Image may be NSFW.
Clik here to view.

Stop SSIS Package Execution in SSISDB

Suppose a package has been running for quite a long time or has been mistakenly run and we would like to stop its execution. To do so Right Click on SSISDB Select All Execution Reports Filter it to see...

View Article

IN SQL Server数据库

在我的数据库中我有这个char .我想查询他们 Select * from Sometable where somecolumn like '%%' 这让我没有结果. 我认为这是ANSI编码 使用N如下 where col like N'%%' why do you think ,you need N prefix : Prefix Unicode character string...

View Article

Sql server tables

Extend the Excel changes to the sql server table So I'm in Excel and I connected to my SQL Server Table. I updated a couple columns in Excel. column1,column2 updated1, updated2 updated3, updated3 Is...

View Article

创建存储过程如果不存在于sql server中

Oracle确实“创建或替换”语句. Sql server似乎没有 如果您从企业管理器脚本化,而是建议“删除和创建”.在您对存储过程进行授权的任何情况下,丢弃和创建都是不可取的,因为它会抛出数据库管理团队所做的任何授权.您真的需要“创建或替换”来帮助开发人员和管理员之间的分离. 我最近一直在做的是这样的: use [myDatabase] go create procedure...

View Article


Image may be NSFW.
Clik here to view.

Running R scripts within in-database SQL Server Machine Learning

Having all the R functions, all libraries and any kind of definitions (URL, links, working directories, environments, memory, etc) in one file is nothing new, but sometimes a lifesaver. Using R...

View Article

存储过程 重新编译后,存储过程运行得很快

我在SQL Server 2008 R2上存储过程有一个非常奇怪的问题.有时,每个月大约一次,我有一个程序变得非常慢,大约需要6秒运行而不是几毫秒.但是,如果我只是重新编译它,而不改变任何东西,它会再次运行. 所有存储过程都不会发生,只有一个(服务器上有几百个). 我的猜测是当sp被编译时,它被缓存,这个缓存在每次调用它时被重用,并且这个缓存版本由于某种原因而被破坏....

View Article


sql-server 如何释放空闲SQL Server数据库使用的内存?

我们有一个SQL Server与几百个数据库.该服务器上的许多数据库每周仅使用几次.我们有一个问题,SQL Server有时变得非常慢.当发生这种情况时,内存使用率指示为99%,并发生分页.为了解决这个问题,我们每天晚上安排重新启动SQL服务,以卸载所有这些数据库并释放内存. 释放空闲数据库使用的内存而不使SQL...

View Article

Image may be NSFW.
Clik here to view.

Add new article to existing publication for SQL Server Transactional Replication

By: Nisarg Upadhyay || Related Tips:More >Replication Problem SQL Server Replication is a great tool to transfer data between different instances of SQL Server as well as other non-SQL Server...

View Article


Image may be NSFW.
Clik here to view.

SQL Server Parallelism Overview

By: Pablo Echeverria || Related Tips:More > Database Configurations Problem In this tip we’re going describe what parallelism is, the benefits, and how to take advantage of parallelism in SQL...

View Article

Image may be NSFW.
Clik here to view.

SQLServer2008r2容灾备份还原及自动删除过期备份

完整备份和差异备份还原原理: 差异备份是完整备份的补充,只备份上次完整备份后更改的数据。相对于完整备份分来说,差异备份的数据量比完整数据备份小,备份的速度也比完整备份要快。因此,差异备份通常作为常用的备份方式。在还原数据时,要先还原前一次做的完整备份,然后还原最后一次所做的差异备份 ,这样才能让数据库里的数据恢复到与最后一次差异备份时的内容相同。...

View Article

Image may be NSFW.
Clik here to view.

Building Perfect Development Lab With SQL Server in Containers

I am heavily relying on virtualization in my home lab. I prefer to build separate SQL Server environments for different projects keeping them clean and isolated from each other. I can work with...

View Article
Browsing all 3160 articles
Browse latest View live