Quantcast
Channel: CodeSection,代码区,SQL Server(mssql)数据库 技术分享 - CodeSec
Browsing all 3160 articles
Browse latest View live

PostgreSQL的痛点 数据库 数据库学习 数据库知识 PostgreSQL

PostgreSQL的痛点,内核必须为广泛的工作负载而工作;它并不总是执行得象一些用户社区所希望的那么好,这可以说不足为奇。PostgreSQL关系数据库管理系统项目是一个有时感到有些冷落的社区。在响应 2014年 “linux 存储,文件系统,和内存管理”峰会组织者的邀请时,PostgreSQL 开发商 Robert Haas,Andres Freund 和 Josh Berkus...

View Article


sql中exists,notexists的用法 sql SQLServer SQLDeveloper notexists用法

sql中exists,not exists的用法exists : 强调的是是否返回结果集,不要求知道返回什么 exists引导的子句有结果集返回,那么exists这个条件就算成立了,所以exists子句不在乎返回什么,而是在乎是不是有结果集返回。 而 exists 与 in 最大的区别在于 in引导的子句只能返回一个字段而not exists 和not in 分别是exists 和 in 的...

View Article


Image may be NSFW.
Clik here to view.

浅析PostgreSQL事务处理机制 sql SQLServer PostgreSQL 事务处理

浅析PostgreSQL事务处理机制,以ACID为特征的事务是关系数据库的一项重要的也是基本的功能。了解事务的实现原理不仅对数据库产品本身的开发,对使用数据库的应用程序的开发也有一定的益处。因此本次以PostgreSQL为对象简单介绍了其事务实现的原理。 内容概述: 事务的实现原理可以解读为DBMS采取何种技术确保事务的ACID特性。PostgreSQL针对ACID的实现技术如下表所示。...

View Article

Image may be NSFW.
Clik here to view.

postgresql内核语法解析器详解 sql SQLServer postgresql 内核语法解析器

postgresql内核语法解析器详解前面博文中谈过parser语法解析模块,但没深入介绍,本文相对详细的介绍下。当PostgreSQL的后台进程Postgres接收到查询语句后,首先将其传递给查询分析模块,进行词法、语法和语义分析。若是功能性命令(例如建表、创建用户、备份等)则将其分配到功能性命令处理模块;对于查询命令(SELECT/INSERT/DELETE/UPDATE)则要为其构建查询树(Q...

View Article

Image may be NSFW.
Clik here to view.

如何在sqlserver建立新用户并关联相应的数据库 sql SQLServer 新用户建立 数据库关联

如何在sqlserver建立新用户并关联相应的数据库,如果你没有开通sqlserver身份验证,首先windowns身份进入管理系统开通 属性-右键-安全性-开通即可 接着在安全性-登入名-添加新登入名 输入用户名,密码;密码最好启用强制实施密码策略 然后再在你要开通用户权限的数据库里面找到安全性-右键-新建-用户...

View Article


SQL优化经验总结34条 sql SQLServer SQL优化经验 优化器

SQL优化经验总结34条(1) 选择最有效率的表名顺序(只在基于规则的优化器中有效):ORACLE 的解析器按照从右到左的顺序处理FROM子句中的表名,FROM子句中写在最后的表(基础表 driving table)将被最先处理,在FROM子句中包含多个表的情况下,你必须选择记录条数最少的表作为基础表。如果有3个以上的表连接查询, 那就需要选择交叉表(intersection...

View Article

sql语句调优 sql SQLServer sql语句 sql语句调优

一、执行顺序及优化细则1.表名顺序优化(1) 基础表放下面,当两表进行关联时数据量少的表的表名放右边表或视图:Student_info (30000条数据)Description_info (30条数据)select *from description_info di,student_info si --学生信息表where si.student_id = di.lookup_code(+)and...

View Article

数据库SQL常用函数整理 sql SQLServer SQL数据库 SQL常用函数

数据库SQL常用函数整理一、Oracle数据库: 1、字符串连接: 字符串1 || 字符串2 2、二进制类型与字符串类型互转: 字符串转为二进制类型:hextoraw('34314623A0000021F1D8B7C1DD25B49E') 二进制转为字符串:rawtohex(二进制字段) 3、数值类型转换为字符串: to_char(数值)...

View Article


Image may be NSFW.
Clik here to view.

PLSQLDeveloper11使用技巧 sql SQLServer PLSQLDeveloper11 使用技巧

PLSQLDeveloper11使用技巧 0.首先是我的颜色配置,参照的Monokai的color schema 其中 Keywords 关键字: 明红色 Comments 注释: 青灰色 (斜体) Strings 字符串: 金色 Numbers 数字: 青色 Symbols 符号: 明红色 Custom 正文: 明红色 Background 背景: 深灰或黑 TIP1:重要!...

View Article


HeadFirstSQL学习笔记(一) sql SQLServer HeadFirstSQL HeadFirstSQL学习

HeadFirstSQL学习笔记创建数据库和表 create database gregs_list; -- 创建数据库 USE gregs_list; -- 使用这个数据 createtable doughnut_list ( doughnut_namevarchar(10), doughnut_typevarchar(6) ); -- varchar:varible...

View Article

SQL注入 sql SQLServer SQL注入 Statement

SQL注入1...

View Article

Image may be NSFW.
Clik here to view.

Copy a SQL Server database with just the objects and no data

By:Jeffrey Yao || Related Tips:More > Database Administration Problem I sometimes get requests to copy a database from one server to another without any data. I just need an empty database with...

View Article

Image may be NSFW.
Clik here to view.

Fixing dependency issues during installation of SQL Server Tools on Red Hat...

By:Manvendra Singh || Related Tips:More >SQL Server on linux Problem When we install SQL Server or SQL Server tools on a Linux server, it first checks the dependencies of the package to be...

View Article


Image may be NSFW.
Clik here to view.

Best Practices for Running SQL Server Virtualized

It was about this time in 2013 that Michael Corey , Jeff Szastak and I started writing Virtualizing SQL Server with VMware: Doing IT Right (VMware Press) 2014 . Microsoft SQL Server was the single...

View Article

Image may be NSFW.
Clik here to view.

Columnstore Indexes part 97 (“Working with Strings”)

Continuation from the previous 96 parts, the whole series can be found at http://www.nikoport.com/columnstore/ . After many years of using & fighting the String data type in Columnstore Indexes, I...

View Article


Image may be NSFW.
Clik here to view.

Availability Group on SQL Server 2016

The Challenge One of our clients in the gaming industry wanted to set up a high availability solution in their data center in the UK. They had a single standalone SQL Server 2014 instance (Enterprise...

View Article

SQL 101: The SQL Server Security Model

I haven’t done a “101” post in 8 years….oops The SQL Server Security model has a lot of moving parts to it. Some friends of mine are so expert in it that it is their primary function on the DBA team...

View Article


Image may be NSFW.
Clik here to view.

Getting Started with SQL Server In-Memory OLTP Part 2

In theprevious article of this blog series, I introduced In-Memory OLTP and explained how it is possible to create an In-Memory OLTP - enabled database as well as memory-optimized tables (durable and...

View Article

Image may be NSFW.
Clik here to view.

Parallel Execution on SQL Server 2016

There are a number of interesting questions in parallel execution performance that can be investigated using the TPC-H kit, which has a data generator. There are also supplemental files that accompany...

View Article

Image may be NSFW.
Clik here to view.

A Guide To Creating A SQL Server Integration Services Catalog And Deploying...

If you’ve ever worked with SQL Server Integration Services (SSIS) then you’re probably familiar, in some way, with the steps required for deploying that package onto the server. In the past this could...

View Article
Browsing all 3160 articles
Browse latest View live