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

Image may be NSFW.
Clik here to view.

设置sql server 2008 r2的身份验证模式的图文教程

我在安装sql server2008R2的时候,选择了windows身份验证模式,现在想把它改为sql server验证模式,怎么修改呢?其实方法步骤很简单,下面小编给大家分享修改方法。方法如下所示:1.先通过windows身份验证模式登录2.选中服务器,右键属性,点击属性3.4.以上所述是小编给大家介绍的设置sql server 2008...

View Article


Image may be NSFW.
Clik here to view.

SQL server 2008不允许保存更改的完美解决办法(图解)

      我重装系统后就安装了SQL Server2008R2,第一次使用时在修改表结构的时候经碰到这样一个警告【不允许保存更改。您所做的更改要求删除并重新创建以下表。您对无法重新创建的标进行了更改或者启用了“阻止保存要求重新创建表的更改"选项。】解决方法如下:1.问题描述2.点击SQL2008菜单...

View Article


Image may be NSFW.
Clik here to view.

win2008 r2安装SQL SERVER 2008 R2 不能打开1433端口设置方法

服务器:windows SERVER 2008 R2SQL:SQL SERVER 2008 R2背景:同一个公司同一个局域网  网络可以ping通  但是不能连接服务器数据库  提示错误1326前期设置:经过前期设置都不行  telnet localhost 1433还是失败后期设置:OK  到现在成功了。谢谢网友的提问以及各位的热心回答   在此处整理成文   供各位参考   如有问题请留言

View Article

Image may be NSFW.
Clik here to view.

Early Thoughts About the 2017 Data Professional Salary Survey Results

1,300 2,400 results in already, I’ve noticed some interesting trends in the raw data. (Idid this analysis on Friday, so if you redo it, you’ll see even higher response counts and possibly different...

View Article

Image may be NSFW.
Clik here to view.

T-SQL Tuesday: Connect item Last Log Backup Time

T-SQL Tuesday is a blog party started by Adam Machanic ( b/ t ) over five years ago. The first Tuesday of each month a blogger hosts the party and suggests a topic. Then anyone who is interested blogs...

View Article


Image may be NSFW.
Clik here to view.

曲演杂坛--SQLCMD下执行命令失败但没有任何错误提示的坑

今天使用SQLCMD导入到SQL SERVER数据库中,看着数据文件都成功执行,但是意外发现有一个文件数据没有成功导入,但执行不报错,很容易导致问题被忽略。 使用存在问题的文件做下测试,从界面上看几行脚本没有任何问题: 4条INSERT语句“几乎”一样,区别在于最上面三行的部分文字是我从问题语句中粘贴出来,而最后一行是我手动敲打的。 使用SQLCMD来执行上面4条SQL来执行,执行效果为:...

View Article

SQL Server is Getting More Popular

At the db-engines.com site, SQL Server was named the DMBS of the year . This was the site’s choice based on a measure of how popularity changed from Jan 2016 -Jan 2017. Apparently SQL Server grew in...

View Article

Image may be NSFW.
Clik here to view.

Please Fix This T-SQL Tuesday #86

It’s T-SQL Tuesday time, and this month is an interesting topic. The invite comes from Brent Ozar , and it’s designed to get you to look at SQL Server. I spent some time thinking about this one and...

View Article


Image may be NSFW.
Clik here to view.

T-SQL Tuesday #86: Enhancement Requests

On the second Tuesday of each month, the SQL Server universe all comes together to blog about a topic. Known as T-SQL Tuesday and started by Adam Machanic ( Blog | @AdamMachanic ), this month’s T-SQL...

View Article


Proc*C/C++入门之常用嵌入式SQL语句 sql sql语句 SQLServer 嵌入式SQL语句

事务控制语句Commit, rollback and savepoint.EXEC SQL commit;EXEC SQL commit work release;EXEC SQL rollback work release;数据定义语句(DDL)create, alter, dropEXEC SQL CREAT TABLE t1(cola int);EXEC SQL DROP TABLE...

View Article

Image may be NSFW.
Clik here to view.

T-SQL Tuesday #86 Adding when DBCC CHECKDB last ran to the SYS.DATABASES cata...

SQLvariant T-SQL Tuesday #86 Adding when DBCC CHECKDB last ran to the SYS.DATABASES catalog view Posted on 10 January 2017 Comments Brent Ozar is hosting TSQL2sDay #86 this month and in response to...

View Article

Image may be NSFW.
Clik here to view.

Sql Server: Using CTE to Get All Dates Between Two Specified Dates

Introduction : In this short article I am going to share how to get all dates between the date range we specify in Sql server using CTE (Common table expression). In previous articles i explained How...

View Article

Announcing Columnstore Indexes and Query Store support in Database Engine...

The latest version of MicrosoftSQL Server Database Engine Tuning Advisor ( DTA ) supports two new features: (a) Ability to recommend columnstore indexes in addition to rowstore indexes, and (b)...

View Article


SQLServer根据视图名称批量删除视图 sql sql语句 SQLServer 批量删除视图

SQLServer根据视图名称批量删除视图。有时候在删除视图时,只想删除视图名符合某些条件的,那么以下代码可以轻松的帮你实现:Declare @SQLText Varchar(1000),@viewNames varchar(1000)set @viewNames=''select @viewNames=@viewNames+A.Name+',' from sysobjects A WHERE...

View Article

SQL截取字符串 sql sql语句 SQLServer SQL截取字符串

SUBSTRING 返回字符、binary、text 或 image 表达式的一部分。有关可与该函数一起使用的有效 Microsoft® SQL Server™ 数据类型的更多信息,请参见数据类型。 语法 SUBSTRING ( expression , start , length ) 参数 expression...

View Article


SQL之二 sql sql语句 SQLServer like操作符

SQL之二1. like操作符通配符(wildcard):用来匹配值的一部分的特殊字符。搜索模式(search pattern):由字面值,通配符或两者组合构成的搜索条件。谓词(predicate):操作符何时不是操作符?答案是,它作为谓词时。从技术上说,like是谓词而不是操作符。2. 通配符[]找出所有名字以J或M起头的联系人。Select cust_contact from...

View Article

Image may be NSFW.
Clik here to view.

NOSQL数据库浅析(一):Memcache内存分配策略和性能(使用)状态检查 sql sql语句 SQLS ...

前言: 一直在使用Memcache,但是对其内部的问题,如它内存是怎么样被使用的,使用一段时间后想看看一些状态怎么样?一直都不清楚,查了又忘记,现在整理出该篇文章,方便自己查阅。 1:参数memcached -h memcached 1.4.14-p TCP端口,默认为11211,可以不设置-U UDP端口,默认为11211,0为关闭-s UNIX socket-a access mask for...

View Article


Image may be NSFW.
Clik here to view.

SQLPlus的使用技巧 sql sql语句 SQLServer SQLPlus技巧

SQLPlus的使用技巧。用SQL Plus看执行计划和统计信息:set autotrace trace exp; 显示结果集的行宽:show linesize;//默认为80 设置结果集的行宽:set linesize 200; 显示结果集的每页记录数:show pagesize;//默认为15 设置结果集的每页记录数:set pagesize 50; 让SQL...

View Article

Proc*C/C++入门之动态SQL sql sql语句 SQLServer 动态SQL

Proc*C/C++入门之动态SQL基本概念在有些情况下, 在编码时 SQL 语句还不能完整地写出来, 而是在程序执行时才能构造出来,这种在程序执行临时生成的 SQL 语句叫动态 SQL 语句. 利用动态 SQL 来编写 Pro*C 程序的方法叫动态 SQL 技术!目的:加强应用程序的功能和灵活 静态SQL —- 在编写应用程序时,使用EXEC...

View Article

sqlplus登录的几种方式 sql sql语句 SQLServer sqlplus登录方式

sqlplus登录的几种方式1.直接敲sqlplus并回车就是启动SQL*PLUS,输入user及password将使用户登陆到缺省的数据库。 2.sqlplus user/password@SERVICE_NAME 将连接到指定的数据库。 3.敲sqlplus /nolog就是使SQL*PLUS启动,但不登陆Oracle数据库。然后需要使用connect命令连接Oracle。...

View Article
Browsing all 3160 articles
Browse latest View live