Quantcast
Channel: CodeSection,代码区,SQL Server(mssql)数据库 技术分享 - CodeSec

Image may be NSFW.
Clik here to view.

SQL SERVER Which Settings Change in sp_configure Needs Restart to Take Effect...

Learning one new thing every day keeps me passionate about my job. Recently, I had a very interesting experience with one of my customer while working with them on Comprehensive Database Performance...

View Article


SQL Server 2008 converts varchar to varbinary

I try to import image data into a sql server 2008 db with code like this: INSERT INTO [TAB] (ID_PHOTO,PHOTO) VALUES( CAST('333EFB54-7062-E043-F088-FE0A916C0297' as uniqueidentifier),...

View Article


2019 The Year of Memory Recall

Nothing I create is ever perfect and I cannot wait any longer until it is- because that time will never come. Sometimes you just have to run with what you have. So I’m going to focus on a single theme...

View Article

SQL Server 2019 Fixes Function Inlining Bug

Like most databases created in the last few decades, SQL Server allows developers to extend the database by creating functions. But prior to the upcoming 2019 release, SQL Server’s support for scalar...

View Article

Image may be NSFW.
Clik here to view.

Finding Application Session Settings

One of the underused troubleshooting and performance tuning techniques is to validate the application session settings. Things can work fabulous inside of SSMS, but run miserably inside the...

View Article


Image may be NSFW.
Clik here to view.

2018 Community Influencer of the Year

2018 Community Influencer of the Year Bert Wagner Posted on 1 January 2019 Comments A few days ago I was surprised to learn from Aaron Bertrand of SentryOne that he was selecting me as Community...

View Article

SDU Tools: Script SQL Server Database Users

In our free SDU Tools for developers and DBAs, there's a tool that makes it easy to create a script for creating SQL Server database users. No surprise, it's called ScriptDatabaseUsers . One key...

View Article

Image may be NSFW.
Clik here to view.

SQL SERVER Cannot Shrink Log File 2 (SQLAuthorityDB_log) Because the Logical ...

Learning never stops for a consultant. In this blog, I would share another learning and discuss message: cannot shrink log file because the logical log file located at the end of the file is in use....

View Article


Image may be NSFW.
Clik here to view.

How To Schedule SQL Scripts On SQL Server Express Edition

By:Joe Gavin | Last Updated: 2019-01-02 || Related Tips:More > Express Edition Problem You need to automate running some SQL, but the is you need to run it directly on an Express Edition of SQL...

View Article


Image may be NSFW.
Clik here to view.

SQL Create Database PostgreSQL, MySQL, SQL Server

The start of data storage is from the creation of a database. As the name suggests database is a base for data. A database typically contains different tables based on the necessity of data storage....

View Article

Find out if a user is over 18 T-SQL

What function C is used to find out if a user exists on the system? Simple question; what is the function or library that i need to use to write a very simple program (in C) (linux, ubuntu) to find out...

View Article

SQL Server中事务日志管理的步骤,第5级:完全恢复模式管理日志(译)

SQL Server 中事务日志管理的步骤,第 5 级:完全恢复模式管理日志 作者: Tony Davis , 2012/01/27 系列 本文是进阶系列的一部分: SQL Server 中事务日志管理的步骤...

View Article

Keep the SQL Server table sorted in the database

In my application I use a simple table that contains the number of times a file was accessed and the date at which it was last accessed. I'm trying to sort the saved entries so that the files with the...

View Article


Querying SSISDB For Errors

Optimizing SSIS Catalog Cleanup Kevin Feasel 2018-12-31 Integration Services No Comment Tim Mitchell has a script which replaces [internal].[cleanup_server_retention_window] in the SSISDB database:...

View Article

Image may be NSFW.
Clik here to view.

Get To Know How SQL Server Manages Disk I/O

SQL users often face the issue of slow SQL Server database, which is caused by I/O related bottlenecks in SQL Server. I/O subsystem is a major element of the performance of SQL Server because the pages...

View Article


Partial Support for Spatial Queries in EF Core 2.2

While there are many “nice-to-haves” in Entity Framework that have not been ported to EF Core, they aren’t talked about much because developers can do without. But one feature that has been repeatedly...

View Article

SQL Server 2008 and SQL Server 2008 R2 - OUT of SUPPORT July 2019

Both SQL Server 2008 and SQL Server 2008 R2 go out of extended support with Microsoft in July 2019. That’s fast approaching and as we enter the new year maybe you are thinking of upgrading your legacy...

View Article


Image may be NSFW.
Clik here to view.

Checking your Memory with XE

It is well known and understood that SQL Server requires a substantial amount of memory. SQL Server will also try to consume as much memory as possible from the available system memory if you let it....

View Article

Adding The Scalastyle Plugin To Eclipse

Miscellany On Java In SQL Server Kevin Feasel 2019-01-02 Misc Languages No Comment Niels Berglund continues a series on SQL Server 2019 and Java support: This post is the fourth post where I look at...

View Article

Difference between ORIGINAL_LOGIN() and CURRENT_USER

ORIGINAL_LOGIN()and CURRENT_USER are useful functions in SQL Server , used to report on identities within SQL Server sessions. The purpose of the ORIGINAl_LOGIN() is to return the value of the login...

View Article