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

T-sql语言基础 语言基础 T-sql 全局 局部

T-sql中有两种类型变量:全局和局部。全局是“@ @”表示,局部是“@”表示。局部变量需要先声明,用DECLARE声明,格式 DECLARE { @ local_variable [ AS ] date_type } | [ = value ] | [ ,...n ] 也就是声明 变量名 类型 初始值给变量赋值语句SET,格式 SET @loval_variable = expression...

View Article


Syntactic Sugar

There are all sort of features and enhancements that Microsoft can make to the SQL Server platform. If you look around Connect, you’ll see suggestions for improvements, such adding common checks , as...

View Article


Image may be NSFW.
Clik here to view.

Query Data Store SQL Server 2016

SQL Server’s new Query Data Store is a brilliant option for databases if you are a DBA or have to do performance tuning on T-SQL queries. This new feature of SQL Server 2016 is contained within a...

View Article

Image may be NSFW.
Clik here to view.

2016 By The Numbers

Tags: https://www.flickr.com/photos/oskay/8668965783 Well 2016 was a hell of a year for blogging. I recorded just under 285k page views (284,553 as of writing this the afternoon of December 27th),...

View Article

Image may be NSFW.
Clik here to view.

Oracle to SQL SERVER Migration Triggers Used While Migration

I am a big supporter of working on something that I get used. This is a trend I see that most of us are used to. When was the last time you switched loyalty from one phone to another? I know most of us...

View Article


存储与触发 sqlServer 数据库教程 SQL语句 SQLServer存储与触发

存储过程: 在编写数据库应用程序时,SQL语言是应用程序和数据库之间的主要编程接口。使用SQL语言编写访问数据库的代码时,可用两种方法存储和执行这些代码。一种是在客户端存储代码,并创建向数据库服务器发送的SQL命令;另一种是将SQL语句存储在数据库服务器端,然后由应用程序调用执行这些SQL语句。...

View Article

Image may be NSFW.
Clik here to view.

Importance of Performing DBCC CHECKDB on all SQL Server Databases

By:Simon Liew || Related Tips:More >System Databases Problem The SQL Server model database is one of the core system databases, but it seem to get less attention in terms of importance. This tip...

View Article

Image may be NSFW.
Clik here to view.

SSIS Variable and Expression Example - Part 1

By:Nat Sundar || Related Tips:More > Integration Services Development Problem What is a SQL Server Integration Services (SSIS) expression? How can we use SSIS expressions to modify the SSIS package...

View Article


Image may be NSFW.
Clik here to view.

DROP IF EXISTS A handy feature in SQL Server 2016

Microsoft has introduced a handy cool feature in SQL Server 2016 called DROP IF EXISTS for objects. Applies to : SQL Server 2016 and later This is applicable for dropping an object with existence...

View Article


Image may be NSFW.
Clik here to view.

Columnstore Indexes part 93 (“Batch Mode Adaptive Memory Grant Feedback”)

Continuation from the previous 92 parts, the whole series can be found at http://www.nikoport.com/columnstore/ . Given that currently the Batch Execution Mode is an exclusive feature of the...

View Article

SQLite聚合函数中的group_concat() SQL SQL数据库 SQLite聚合函数 group

SQLite聚合函数中的group_concat()。先上定义 group_concat(x[,y])该函数返回一个字符串,该字符串将会连接所有非NULL的x值。该函数的y参数将作为每个x值之间的分隔符,如果在调用时忽略该参数,在连接时将使用缺省分隔符”,”。再有就是各个字符串之间的连接顺序是不确定的。 找到这个函数不容易呀,我本身对sql语句懂的就不多,只会增删改查。 需求是DepID...

View Article

SQL中表的联接(内联接,左联接,右联接,外联接,交叉联接) SQL SQL数据库 SQL数据库 ...

SQL中表的联接(内联接,左联接,右联接,外联接,交叉联接)数据表t_teacher表id name------------1 teacher12 teacher23 teacher34 teacher4t_course表id name tid----------------1 course1 22 course2 13 course3 24 course4 35 course5...

View Article

Image may be NSFW.
Clik here to view.

JDBCPreparedStatement高级特性:批量执行sql语句 高级特性 sql语句 批量执行sql语句

JDBCPreparedStatement高级特性:批量执行sql语句 案例: 工具方法:public static Connection getConnection(){ try { Class.forName("com.mysql.jdbc.Driver"); ct =...

View Article


无法连接局域网中的sqlserver数据库 sqlserver sqlserver数据库 sqlserver连接问题

无法连接局域网中的sqlserver数据库。在SQL Server配置工具---SQL Server配置管理器中,配置tcp/ip商品为1344(?未验证是否一定要) 已成功与服务器建立连接,但是在登录过程中发生错误。 (provider: 共享内存提供程序, error: 0 - 管道的另一端上无任何进程。)...

View Article

SQLserver总结(入门) SQLserver SQLserver数据库 SQLserver入门学习

SQLserver总结,T-SQL语句 对于新手来说要全记住是完全不可能的,我们可以在工作中慢慢来熟悉,但是对于SQL server该怎么来写T-SQL语句的流程,是必须要清楚的,这要可以减少不必要的时间。 1、创建关系表 2、往表中 查询、插入、更新、删除数据。 3、创建视图、索引 以及 修改 或 删除视图、索引。 4、定义触发器。 5、创建与执行储存过程。 6、对于数据库的用户管理。...

View Article


sql批量替换及替换某字段的前N个字符 sql sql数据库 sql数据库学习 替换某字段

sql批量替换及替换某字段的前N个字符。很好用哦。 批量替换:UPDATE wp_posts SET post_content = REPLACE( post_content, '原内容', ' 新内容' ) ;批量替换某字条的第一个字符(占两位,所以是2);update wp_posts set post_content=substring(post_content,2) WHERE...

View Article

Image may be NSFW.
Clik here to view.

SQL Server v.Next : STRING_AGG() performance

While SQL Server on linux has stolen almost all of the headlines about v.Next, there are some other interesting advancements coming in the next version of our favorite database platform. On the T-SQL...

View Article


Image may be NSFW.
Clik here to view.

Setup SSIS Scale Out

Case SQL VNext has anewScale Out function. How does it work and howdoyou install and configurethat? Solution The new Scale Out option in SSIS VNEXT gives you the ability to execute multiple packages...

View Article

Image may be NSFW.
Clik here to view.

SQL SERVER Why Does Encrypted Column Show NULL on Subscriber?

While I was online on Skype last night, one of my old customers pinged me and wanted to know my opinion of a special issue which he was facing whenEncrypted Column Show NULL on Subscriber. He said that...

View Article

SQL常用增删改查语句 SQL增删改查 SQL 数据库

SQL常用增删改查语句:1增:1.1【插入单行】insert [into] <表名> (列名) values (列值)。例:insert into Strdents (姓名,性别,出生日期) values ('开心朋朋','男','1980/6/15')1.2【将现有表数据添加到一个已有表】insert into <已有的新表> (列名) select...

View Article
Browsing all 3160 articles
Browse latest View live