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

Image may be NSFW.
Clik here to view.

Deploying Multiple SSIS Projects via PowerShell

Overview This article describes a way of using PowerShell to deploy multiple SSIS projects as part of a database or data warehouse deployment. It contains code snippets to illustrate some of the...

View Article


Image may be NSFW.
Clik here to view.

SQL_SERVER2012安装报告

SQL_SERVER2012安装报告,应数据库课程要求,安装sql_server 现写一报告,记之。...

View Article


A Complete Guide: SQL Server Index Optimization Best Practices

Index in SQL Server is used to retrieve requested data speedily from database tables. There are two types of index are used in SQL server i.e. clustered and non-clustered indexes. In which, the...

View Article

Image may be NSFW.
Clik here to view.

Not An Administrator For Analysis Services Tabular

A couple of weeks back I installed SQL Server 2016 on my personal machine, including SSAS Tabular. Yesterday I created a new Tabular model project in SQL Server Data Tools. When I had to choose where...

View Article

Image may be NSFW.
Clik here to view.

NitroAccelerator 6.0 Now Accelerating Multiple Active Result Sets (MARS)

I’m happy to announce NitroAccelerator 6.0! We now can significantly improve performance of “chatty” applications. Chattiness can be caused by applications that require a lot of validations or that...

View Article


Image may be NSFW.
Clik here to view.

Books Online Consolidation

This is a post about one of your favorite topics, I'm sure: Documentation ! Books Online for SQL Server ( current version ) has always been my first go-to source for just about anything involving...

View Article

Image may be NSFW.
Clik here to view.

sql查询是学习的''重中之重'',单独开设板块记录.(二) sql sql语句 sql查询 sql学习 聚 ...

sql查询是学习的''重中之重'',单独开设板块记录.(二)。group by语句:聚合函数通常与group by 语句配合使用. 综合这块,自己理解下; 这一块,统计有多少条数据写法:

View Article

Image may be NSFW.
Clik here to view.

sql查询是学习的''重中之重'',单独开设板块记录.(一) sql sql语句 sql查询 sql文件导入 ...

sql查询是学习的''重中之重'',单独开设板块记录.(一)。每次使用到数据库的时候,都应该设置编码格式.命令 set names +编码格式。 导入外部sql文件的时候,进入文件所在目录在执行mysql登陆后执行脚本:sourse加空格加脚本名称执行脚本<确定脚本保存时编码格式一致> 向表中某一字段插数据时:字符串格式用单引号括起来 查看标的结构: desc + 表的名字...

View Article


Image may be NSFW.
Clik here to view.

Copy data to another SQL Server instance without a Linked Server

By:Jeffrey Yao || Related Tips:More >Import and Export Problem Copying data from a table in one instance to a table in another instance is a common task. You could do this with T-SQL and a Linked...

View Article


Image may be NSFW.
Clik here to view.

Getting SQL Server admin access

Following commands will provide you admin access for SQL Server instance. Step 1 : Run > Services.msc Step 2 : Stop SQL Server (Express) Step 3: sc start mssql$sqlexpress -m -T3659 -T4010 -T4022...

View Article

Image may be NSFW.
Clik here to view.

How Do I Add an R Package to SQL Server from In-Database R?

SQLBalls Bradley Ball is a MCITP SQL 2005 & MCTS 2008 DBA with over 10 years of IT experience. Bradley spent 8 years working as a Defense contractor for clients such as the U.S. Army and The...

View Article

SQLskills SQL101: Dealing with SQL Server corruption

As Kimberly mentioned last week , SQLskills is embarking on a new initiative toblog about basic topics, which we’re calling SQL101. We’ll all be blogging aboutthingsthat we often see done incorrectly,...

View Article

Image may be NSFW.
Clik here to view.

SQL Server Always On 读写分离配置方法

使用了SQL Server Always On技术后,假如采用的配置是默认配置,会出现Primary server CPU很高的情况发生,比如默认配置如下: 需要自定义来解决这个问题。 我们先来看看上图中的这些选项的意义 主角色中的连接 允许所有连接 如果当前server是primary角色时,primary instance允许所有连接(如:读/写/管理) 允许读/写连接...

View Article


Image may be NSFW.
Clik here to view.

SQL Server 数据库分离与附加图文详解

SQL Server 数据库分离与附加图文教程,需要的朋友可以参考一下。 一、概述 SQL...

View Article

Image may be NSFW.
Clik here to view.

SQL Server Target vs Total Memory

For this blog post I want to discuss the meaning behind SQL Server: Memory Manager\Target Server Memory (KB) and SQL Server: Memory Manager \Total memory (KB) Perfmon counters. I will mention how under...

View Article


SQL模糊查询 sql SQLServer SQL语句 SQL模糊查询

SQL模糊查询。 一般模糊查询语句如下: SELECT 字段 FROM 表 WHERE 某字段 Like 条件 其中关于条件,SQL提供了四种匹配模式: 1,% :表示任意0个或多个字符。可匹配任意类型和长度的字符,有些情况下若是中文,请使用两个百分号(%%)表示。比如 SELECT * FROM [user] WHERE u_name LIKE...

View Article

SQL系统表和兼容性视图使用 sql SQLServer SQL系统表 兼容性视图

SQL系统表和兼容性视图使用sql server系统表详细说明 名称 地址 说明 sysaltfiles 主数据库 保存数据库的文件 syscharsets 主数据库 字符集与排序顺序 sysconfigures 主数据库 配置选项 syscurconfigs 主数据库 当前配置选项 sysdatabases 主数据库 服务器中的数据库 syslanguages 主数据库 语言 syslogins...

View Article


AliSQL源码编译 AliSQL AliSQL源码编译 编译环境

1. 安装1.1 编译环境准备(CentOS 6.7)CentOS 和 Ubuntu 环境的区别就在这一步,CentOS yum 源里的 gcc 版本是 4.4 的,不满足需求,可以通过我之前介绍过的 devtoolset 来安装高版本 gcc,devtoolset 目前最新套装是 devtoolset-4,包含 gcc 5.2。yum install centos-release-scl...

View Article

sqlplus与shell结合--shell中执行sql脚本 sql SQLServer sqlplus shell sql脚本执行

sqlplus与shell结合--shell中执行sql脚本。su - oracle使用oracle 用户执行[oracle@dba ~]$ cat a.sh #!/bin/bashTAB=empsqlplus -s scott/tiger << EOF | awk 'NR != 1 && $2 ~ /S.*T/{print $2,$6}'set head offset...

View Article

Sql常见面试题 sql SQLServer SQL语句 Sql面试题

Sql常见面试题1. 用一条SQL 语句 查询出每门课都大于80 分的学生姓名name kecheng fenshu张三 语文 81张三 数学 75李四 语文 76李四 数学 90王五 语文 81王五 数学 100王五 英语 90A: select distinct name from table where name not in (select distinct name from table...

View Article
Browsing all 3160 articles
Browse latest View live