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

Effectively Pursuing Remote SQL Server Jobs

By:Cate Murray || Related Tips:More > Professional Development Career Planning Problem In our Job Search Strategies webcast , a question arose around getting a remote job. This is certainly a hot...

View Article


SQL性能优化 sql SQLServer SQL语句 SQL性能优化

SQL性能优化。 1、 查两张以上表时,把记录少的放在右边 2、 SELECT子句中避免使用*号 ORACLE在解析的过程中,会将*依次转换成所有的列名,这个工作是通过查询数据字典完成的,这意味着将耗费更多的时间 3、 避免对大表进行无条件或无索引的的扫描 4、 清空表时用TRUNCATE替代DELETE 5、 尽量多使用COMMIT;因为COMMIT会释放回滚点 6、 用索引提高查询效率,善用索引...

View Article


sqlserver2008r2查找非中文字母数字出现的第一个位置 sql sqlserver2008r2 查找非中文 ...

sqlserver2008r2查找非中文字母数字出现的第一个位置。 环境: 测试数据库sqlserver2008r2,排序规则Chinese_PRC_CI_AS,其它环境没有试过 语句select PATINDEX(‘%[^吖-

View Article

经典SQL语句大全 sql SQLServer SQL语句 SQL语句大全

经典SQL语句大全。 1, 创建数据库 create database database-name 2, 删除数据库 drop database dbname 3, 备份sql server 创建 备份数据的device Use master Exec sp_addumpdevice 'disk', 'testBack', 'c:\mssql17backup\MyNwind_1.dat' 开始 备份...

View Article

Image may be NSFW.
Clik here to view.

SQLServer基础――T-SQL语句 sql SQLServer SQL语句 SQLServer基础

SQLServer基础——T-SQL语句。 一. SQL-Server基础前言 1. 几大数据库巨头 Microsoft SQL Server 2000/2005/2008/2008R2/2012/2014 Oracle Database 11g/12c IBM DB2 Database mysql Database (open source) Mongo DB Database (NoSQL)...

View Article


android之存储篇_SQLite数据库_让你彻底学会SQLite的使用 android存储 SQLite数据库 S ...

android之存储篇_SQLite数据库_让你彻底学会SQLite的使用,SQLite最大的特点是你可以把各种类型的数据保存到任何字段中,而不用关心字段声明的数据类型是什么。 例如:可以在Integer类型的字段中存放字符串,或者在布尔型字段中存放浮点数,或者在字符型字段中存放日期型值。 但有一种情况例外:定义为INTEGER PRIMARY KEY的字段只能存储64位整数,...

View Article

sqlserver中输入英文语句出现错误时 sql SQLServer sqlserver错误 输入英文语句错误

sqlserver中输入英文语句出现错误时。 在输入表中‘background’的时候出现错误,误以为以为是values时出现空格导致。如‘Education includes a BA’ 错误为 ‘消息 8152,级别 16,状态 14,第 25 行 将截断字符串或二进制数据。’ 后发现,是由于确定‘background’时没有输入size。导致默认为varchar(1)

View Article

Image may be NSFW.
Clik here to view.

How to manipulate data during import in SSAS Tabular vNext

By:Siddharth Mehta || Related Tips: > Analysis Services Development Problem Data is not always in the exact desirable format from the source system. Modulating data in-flight during the import...

View Article


How do I locate data in my SQL Server tables using SQL Server Management...

Constructing a Transact-SQL query is only part of the process - you must also know where to find the data required by your query. In this video, Mark Long teaches you how to use the diagram tool built...

View Article


Get a List of Gaps in a Sequence in SQL Server

If you need to find gaps in a sequence (for example, gaps in an ID column, or in a sort order column, etc) you can use the below query. It uses a series of Common Table Expressions to slice up the gaps...

View Article

How to backup the SQL Server SystemResource db mssqlsystemresource

Question:I’ve got a sql backup script which completes a backup of all sql server databases on a SQL Server. This should include user and system databases. In reviewing the databases backed up , I...

View Article

Image may be NSFW.
Clik here to view.

Optimize Your SQL Server Queries with Column Statistics

Have you ever done something that your mother told you to never ever do? Well, we’re going to do that today, except with SQL Server. We’re going to get rid of SQL Server column statistics with the goal...

View Article

Image may be NSFW.
Clik here to view.

Let’s Corrupt a SQL Server Database Together, Part 1: Clustered Indexes

Hold my beer. CREATE DATABASE [50Ways];GOALTER DATABASE [50Ways] SET PAGE_VERIFY NONE; /* Normally a bad idea */GOUSE [50Ways];GOCREATE TABLE [dbo].[ToLeaveYourLover]([Way] VARCHAR(50));GOINSERT INTO...

View Article


Image may be NSFW.
Clik here to view.

A Quick Story of Tiny_TDS, Sequel, Ruby, MS SQL Server, and NVARCHAR(MAX)

Last night I spent hours debugging a situation where a result from DB['select huge_nvarchar from table'] was being truncated to 32256 characters. I tried searching for people having this problem...

View Article

SSMS Presenter Mode

All About SQL I am a Senior DBA with interest in MS technology especially SQL Server and Azure. During 2015 I was mentored by Paul Randal Data Platform (SQL Server) MVP and during 2016 I completed my...

View Article


Image may be NSFW.
Clik here to view.

SQL SERVER Improve Application Performance on Cloud While Reducing Bandwidth ...

It is very common for people to move databases now a days to the cloud. The very first question I often hear from them is How toImprove Application Performance on Cloud While Reducing Bandwidth Cost?...

View Article

MariaDB AB: How MariaDB ColumnStore Handles Big Data Workloads Data Loading a...

MariaDB ColumnStore is a massively parallel scale out columnar database. Data loading and modification behaves somewhat differently from how a row based engine works. This article outlines the options...

View Article


SQL Server Trace Flags - Complete list

Trace Flag: -1 Function: Sets trace flags for all client connections, rather than for a single client connection. Because trace flags set using the -T command-line option automatically apply to all...

View Article

Two T-SQL Alternatives For Tracking Changes

Problem Two very popular tools we've used for tracking data, logging and configuration changes aretriggers andchange data tracking. However, we've discovered they don't work as consistently as we'd...

View Article

Image may be NSFW.
Clik here to view.

Fixing SQL Server 2012 Support for Custom SSIS Objects in Visual Studio 2015+

You’re using the new One Designer cross-versioning in SQL Server Integration Services, and everything breakswhen you try to downgrade to SQL Server 2012. The little icon that indicates that everything...

View Article
Browsing all 3160 articles
Browse latest View live