Creating A SQL Server Agent Job To Call A Deployed SSIS Package
Though you may already be familiar with creating an automated SQL Server Agent Job utilizing a stored procedure, configuring it to work with a deployed SQL Server Integration Services (SSIS) requires...
View ArticleHow to JOIN Dirty Data in SQL Server
In this puzzle, we’re going to learn how to join dirty data using SQL Server. Many times you’re forced to use someone else’s data. Since it is their system and data, not yours, you can’t always fix the...
View ArticleGitLab for SQL Server Projects
This is the seventh part in the series: SQL Server and Continuous Integration .This post demonstrates the use of GitLab to build SQL Server projects. I use ReadyRoll for my SQL Server projects but...
View ArticleSQL SERVER Error: 566, Severity: 21 An Error Occurred While Writing an Aud ...
Have you ever been in a situation where SQL Server shuts down by itself? It sounds strange but I met across a gentleman in flight who reported this issue to me. Since I was curious to know the cause,...
View Article高级SQL搜索 sql SQLServer SQL教程 高级SQL搜索
高级SQL搜索,关键字: sql研究1.UNION,EXCEPT,INTERSECT运算符 A,UNION 运算符 UNION 运算符通过组合其他两个结果表(例如 TABLE1 和 TABLE2)并消去表中任何重复行而派生出一个结果表。 当 ALL 随 UNION 一起使用时(即 UNION ALL),不消除重复行。两种情况下,派生表的每一行不是来自 TABLE1 就是来自 TABLE2。 B,...
View ArticleSQL2005数据库附加失败 SQL2005 SQLServer 数据库附加失败
SQL2005数据库附加失败。—新建一个同名的数据库(新建数据库的目录必须和原有数据库目录一致)—停止本机数据库服务—将原数据库备份出来的mdf文件替换到新建的数据库mdf目录下—删除新建数据库的log文件—启动数据库—执行语句:use mastergoalter database test set emergencyGoalter database test set single_user...
View ArticleSQL基础教程 sql SQLServer SQL语句 SQL基础教程
SQL基础教程。注意: SQL 对大小写不敏感!SQL DML 和 DDL可以把 SQL 分为两个部分:数据操作语言 (DML) 和 数据定义语言 (DDL)。SQL (结构化查询语言)是用于执行查询的语法。但是 SQL 语言也包含用于更新、插入和删除记录的语法。查询和更新指令构成了 SQL 的 DML 部分:SELECT 从数据库表中获取数据 UPDATE 更新数据库表中的数据 DELETE...
View Articlestringbuffer拼出SQL语句,避免加号带来的引号冲突 sql SQLServer SQL语句 引号冲突
/*** 根据表名称创建一张表* @param tableName*/public int createTable(String tableName){StringBuffer sb = new StringBuffer("");sb.append("CREATE TABLE `" + tableName + "` (");sb.append("`id` int(11) NOT NULL...
View ArticlePostgresql流复制 sql SQLServer Postgresql 流复制
Postgresql流复制简单理解: 简单来说,当用户提交请求来修改某个数据的时候,我们将这个修改的操作使用预写日志来保存(WAL),也就是先将用户要改动的结果保存在WAL中,然后再实际的去修改数据库。通过WAL我们可以解决服务器宕机出现的数据丢失的问题。这种将预写日志从主服务器传输到备用服务器,然后在备用服务器回放出预写日志中记录改动,这就是实现了主从复制。...
View ArticleAndroid数据存储方式―SQLite SQLite Android 数据存储方式
Android数据存储方式—SQLiteSQLiteAndroid平台嵌入了一个关系型数据库SQLite,和其他数据库不同的是:SQLite存储数据时,不需要指定数据类型 一个字段声明为Integer类型,我们可以将一个字符串存入;一个字段声明为Boolean,我们也可以存入浮点数。 除非是主键被定义为integer,这时只能存储64位整数。...
View ArticlePGSQL简单的触发器的实例 sql SQLServer PGSQL 触发器
PGSQL简单的触发器的实例。学生表student 日志表 log 实现功能删除学生表的一条数据就触发将删除的主键存入到日志表中 create or replace function add_log() --触发器执行函数名returns trigger as $$begininsert into log(studentid) values(OLD.studentid);...
View ArticleSQL:两个字段的(顺序无关)去重 sql SQLServer SQL语句 字段去重
SQL:两个字段的(顺序无关)去重,今天发现了一个顺序无关去重复的巧妙方法。mark一下。这个是比较冷的问题,如果tb1 有两个字段 A,B,如何用A,B 字段进行顺序无关去重?什么是顺序无关?就是不区分AB两个字段的先后顺序。如: tbl1有三行记录,要求只保留(A, B)的唯一可能集合A B1 22 11 21. 常规去重比较简单:顺序相关select * from tb1 group by...
View ArticleCould not load assembly ‘Microsoft.SqlServer.Connectioninfo,...
Problem Statement: When trying to migrate SQL Server 2008 R2 to SQL Server 2016, we identified an issue with the following error: Could not load assembly ‘Microsoft.SqlServer.Connectioninfo,...
View ArticleBusiness Rules Extension in Master Data Services 2016
By:Koen Verbeeck || Related Tips:More >Master Data Services Problem Within Master Data Services (MDS), you can create business rules to enforce certain business criteria upon your data. You can...
View ArticleSQL Server Function to Encrypt Integer Values
Problem You need a simple and fast tool to encrypt and decrypt integer values without having to deal with complex encryption keys, certificates and other complex encryption methods. In this tip we...
View ArticleUpgrading a Replication Topology to SQL Server 2016
Cross posting from Tiger blog . SQL Server Replication provides multi-faceted data movement capabilities across SQL Server releases which has been used by customers across the globe for a large number...
View ArticleFriday Reading 2017-02-03
I’m Andrew Pruski and I am a SQL Server DBA with 5 years experience in database development and administration. The online SQL Server community has helped me out immensely throughout my career, whether...
View ArticleSQL Server vNext
I have been pretty busy recently working with Joe Sack from Microsoft and getting my hands dirty with SQL Server vNext accessing some cool stuff (which obviously I can’t talk about under NDA) and...
View ArticleYour Favorite Feature that Needs Work
The SQL Server platform has grown tremendously since I started working with SQL Server v4.2. We’ve had various subsystems added, lots of enhancements, and even new languages. There have also been a few...
View ArticleSQL Server Replication Upgrade Strategies
In the recent past, we have seen questions on the strategy/steps on upgrading a replication topology especially from customers using SQL Server 2008/2008 R2 or running SQL Server on windows Server 2008...
View Article