Your 10 Favorite Blog Posts of 2016
Here’s the stuff you clicked on this year: 1. When Shrinking TempDB Just Won’t Shrink Tara Kizer If there’s two things you people love, it’s TempDB and shrinking databases. Pair the two of them...
View ArticleStrategy and tips for performance troubleshooting in SQL Server
There was probably a time in its early days when SQL Server could be considered a simple database engine we’d run queries with SQL and we were probably pleasantly surprised when stuff just worked. Much...
View Articlesql排序根据字段内容,以及根据内容进行计算 sql sql语句 SQLServer sql排序
sql排序根据字段内容,以及根据内容进行计算1,当前时间与字段时间进行对比,分三种情况然后排序2,根据字段具体值,进行排序SELECT * from 表名(table) order bycase when table.start <='2017-01-03' AND table.end >='2017-01-03' then 1 when table.end...
View ArticlePostgreSQL存储过程简单示例 sql sql语句 SQLServer PostgreSQL 存储过程
PostgreSQL存储过程简单示例。删除3个月以前的数据,由定时调度任务定时调度。CREATE OR REPLACE FUNCTION delete_ebd_compute_log_three_month_ago_data() RETURNS void AS$BODY$begindelete from ebd_compute_log where create_time <...
View Article经典SQL语句大全 sql sql语句 SQLServer SQL语句大全
经典SQL语句大全一、基础 1、说明:创建数据库 CREATE DATABASE database-name 2、说明:删除数据库 drop database dbname 3、说明:备份sql server --- 创建 备份数据的 device USE master EXEC sp_addumpdevice 'disk', 'testBack',...
View Articlesqlserver事务 SQLServer SQLServer数据库 sqlserver事务
事务机制: 四个属性:原子性Atomicity,一致性Consistency,隔离性Isolation,持久性Durability ,即ACID特性。...
View ArticleSQL数据优化索引建suo避免全表扫描 sql sql语句 SQLServer SQL数据优化索引
SQL数据优化索引建suo避免全表扫描。首先什么是全表扫描和索引扫描?全表扫描所有数据过一遍才能显示数据结果,索引扫描就是索引,只需要扫描一部分数据就可以得到结果。如果数据没建立索引。 无索引的情况下搜索数据的速度和占用内存就会比用索引的检索慢和高。下面是一个例子: 1:无索引的情况 Product表,里面没有任何索引,如下图:...
View Article【PL/SQL调试】SQL*Plus或者PL/SQLDeveloper查看存储过程编译错误 sql sql语句 SQLSer ...
SQL*Plus 或者 PL/SQL Developer查看存储过程编译错误在 SQL *Plus 或者 PL/SQL Developer 的 Command windows 中, 【1】用show errors procedure procedure_name可以查看到存储过程具体错误;【2】用show errors function function_name查看函数错误。
View ArticleSQLServer数据库链接封 sql sql语句 SQLServer 库链接封
SQLServer数据库链接封package util;/** *创建连接数据库的相关服务,方便调用 *@author wu */import java.sql.Connection;import java.sql.DriverManager;import java.sql.ResultSet;import java.sql.ResultSetMetaData;import...
View Article常用的SQL的语句查询 sql sql语句 sql查询语句 表结构查看
常用的SQL的语句查询一、简单查询语句1. 查看表结构SQL>DESC emp; 2. 查询所有列 SQL>SELECT * FROM emp;3. 查询指定列SQL>SELECT empmo, ename, mgr FROM emp; SQL>SELECT DISTINCT mgr FROM emp; 只显示结果不同的项 4. 查询指定行 SQL>SELECT *...
View ArticleSQL SERVER Puzzle Conversion with Date Data Types
Over the years, every time I have worked with Date and time data types, I have learnt something new. There are always tons of tight corners where a number of exceptions happen. Though these are known,...
View ArticleGetting Started with SSDT 2016 using Visual Studio 2015
by Santhakumar Munuswamy Posted on01 January 2017 SSRS In this article. We will discuss in detail about the SSDT 2016, Prerequisite, Setting up the Environment, How to Start/Stop the Report Server,...
View ArticleWhat are transaction in SSIS?
Here we are using Transactions to make sure that if one component fails then the whole logical unit should fail. On the second day of MSBI training in Mumbai here shown are the demonstration steps of...
View Article[Video] Office Hours 2016/12/28 (With Transcriptions)
This week, Brent and Richie discuss Azure VM, min server memory, backup solutions, autogrowth in tempdb data files, parameter sniffing, sp_whoisactive, the worst feature in SQL server, why you should...
View ArticleMake Your Application’s Name Heard
Odds are, you’ve got more than one application or script accessing your database or SQL Server instance at any given time. You’re probably stacking them on a small number of servers in an attempt to...
View ArticleGetting Started with SQL Server 2016
by Santhakumar Munuswamy Posted on02 January 2017 SQL Server In this article we will discuss in detail about SQL Server 2016, List of features available in SQL Server 2016, Prerequisite, Setting up...
View ArticleSQL SERVER Fix Error Msg 13603 working with JSON documents
Working with new data types is something we need to evolve. In this blog, I have written on a number of articles on JSON which you can take a look at. I wanted to write about some of the interesting...
View ArticleHow do we cleanup plan cache in SQL Server?
At times, we may need to cleanup plan cache in SQL Server. I have come across situations where I need to flush the plans from the cache for our testing purposes to troubleshoot performance issues...
View ArticleSQL Server Database Mail Attachment Error
Problem We setup SQL Server Database Mail and use it to send alerts via email. We recently received the following error "File attachment or query results size exceeds allowable value of 1000000 bytes."...
View ArticleSQL Server Read Ahead Reads Example
By:Neeraj Prasad Sharma || Related Tips:More >Performance Tuning Problem SQL Server has many features that assist with providing the best query performance and one of these features is read ahead...
View Article