Quantcast
Browsing all 3160 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

SQL SERVER Puzzle Why does sp_spaceused Show No Values?

When you see something not behaving the way normal way, either it must be magic or in software terms it is an error or bug. This blog was inspired by someone who caught me unaware with this challenge...

View Article


Image may be NSFW.
Clik here to view.

Delete Files with SQL Server 2016 R Logic in T-SQL Code

Problem How can I delete files older than [X] days in a folder using T-SQL? This is an old requirement, as old as SQL Server 7 (or even earlier). The typical T-SQL solution is to use xp_cmdshell or an...

View Article


Image may be NSFW.
Clik here to view.

SQL Server breaking bad habits, improving knowledge and awareness

The hardest part of being a DBA is to keep up with all the things that appear in connection to our job. SQL Server new features SQL Server best practices SQL Server new DMVs, DMFs SQL Server procedures...

View Article

Image may be NSFW.
Clik here to view.

Building Angular2 Apps with SQL Server Data

Angular2 is an updated framework for dynamic Web apps, built upon and expanding principles of Angular JS. The CData API Server lets you generate a REST API for your databases, both on-premises and...

View Article

Image may be NSFW.
Clik here to view.

R and SQL Server articles

In past couple of months, I have prepared several articles on R and SQL Server that have been published on SQL Server Central . The idea was, to have couple of articles covering the introduction to R,...

View Article


Creating SQL Server Express LocalDb v11, v12, v13, and MSSQLLocalDb Instances

This post isdays old. Here’s some copy-pastable commands for creating SQL Server Express LocalDb instances: "C:\Program Files\Microsoft SQL Server\110\Tools\Binn\SqlLocalDB.exe" create "v11.0" 11.0 -s...

View Article

Image may be NSFW.
Clik here to view.

SQL Server Issues I have with SSDT based deployments: Part 2

In myprevious post, I alluded to some of the issues I’ve found using SSDT based deployments into a live server, with lots of data. For me, these are the configuration options that could cause...

View Article

Image may be NSFW.
Clik here to view.

Rubrik update >> 3.1

It has been a while since I wrote about Rubrik. This week I was briefed by Chris Wahl on what is coming in their next release, which is called Cloud DataManagement 3.1. As Chris mentioned during the...

View Article


Image may be NSFW.
Clik here to view.

Speaking at SQLSaturday Chicago 600!

Anthony Nocentino's Blog Anthony Nocentino is the founder of Centino Systems. As an Enterprise Architect he works with clients to find right technology for their business, designing and deploying it,...

View Article


Image may be NSFW.
Clik here to view.

手动将excel表中的数据通过sql语句填入数据库 excel表 sql语句 sql数据库 数据导入

手动将excel表中的数据通过sql语句填入数据库,此次过程为将实际数据导入管理系统,由于实际数据资料的格式与字段在表中的分布不尽相同,所以需要进行一些处理。通过数据库表中字段与excel表中列对应,在excel表中构建sql语句来导入数据,主要方式为组装模板语句。 步骤如下: 1.导出数据库中表已存在的一条数据的insert格式,为插入数据做铺垫。...

View Article

Image may be NSFW.
Clik here to view.

T-SQL语句(四)――视图操作 SQL SQL语句 数据库操作 视图操作

T-SQL 语句(四)—— 视图操作一、视图的优点1、简化查询语句;2、增加可读性,视图中可以只使用要显示的字段,并且可以使用字段别名3、方便程序维护,当数据表的结构发生改变时只要修改视图存储的查询语句无需修改程序。4、增加数据的安全性和保密性:针对不同的用户,可以创建不同的视图,此时用户只能看和修改其所能看到的视图中的数据,而真正的数据表中的数据都是不可见的。二、创建视图  注意事项:...

View Article

T-SQL语句(六)――触发器操作 SQL SQL语句 触发器操作

T-SQL 语句(六)—— 触发器操作一、触发器简介1、触发器的功能:  a、实现比约束更为复杂的数据约束  b、可以检查 SQL 所做的操作是否被允许  c、修改其他数据库里表的数据  d、可以一次调用多个存储过程  e、发送SQL Mail  f、返回自定义错误信息  g、修改原来要操作的 SQL 语句  h、防止数据表结构更改或表被删除 2、触发器的种类主要分为DML 触发器和DDL...

View Article

Image may be NSFW.
Clik here to view.

postgresql导入sql,out等sql文件 sql SQLServer postgresql sql文件

postgresql 导入sql,out等sql文件假设postgresql安装位置 然后,使用dos窗口进入这个位置导入(本地和默认端口可以不用属性)psql -d 数据库名 -h ip地址 -p 数据库端口 -U 用户名 -f 文件地址完成

View Article


关于“SqliteException:SQLiteerrornosuchcolumn:”错误 sql SQLServer sql数据库 数据 ...

关于“SqliteException:SQLiteerrornosuchcolumn:”错误,最近学Unity,用到SQLite作为数据库,使用的脚本都是@秦元培和@雨松MOMO的脚本,但在进行插入运算时出现了一个error, 即“SqliteException: SQLite error no such column:”。 弄了好久,发现是 变量string缺少...

View Article

Image may be NSFW.
Clik here to view.

SQL SERVER Management Studio Exception of type ‘System.OutOfMemoryException’ ...

I was trying to help my client in generating a report large data set. After spending some time and understanding the schema, I could provide them the query to get the results. Now, he wanted to save...

View Article


Image may be NSFW.
Clik here to view.

【能力提升】SQL Server常见问题介绍及快速解决建议

前言 本文旨在帮助SQL Server数据库的使用人员了解常见的问题,及快速解决这些问题。这些问题是数据库的常规管理问题,对于很多对数据库没有深入了解的朋友提供一个大概的常见问题框架。 下面一些问题是在近千家数据库用户诊断时发现的常规问题,本文分为【常见问题诊断流程】-【常见问题】-【常见问题快速解决的建议】 常见问题诊断流程 概览模块―[汇总]了解系统 了解系统性能(语句执行时间、会话等待)...

View Article

Image may be NSFW.
Clik here to view.

Understand the Peformance Behavior of SQL Server Scalar User Defined Functions

By:Simon Liew || Related Tips:More > Functions - User Defined UDF Problem Using scalar User Defined Function (UDF) generally causes SQL Server performance issues when used on a large number of...

View Article


SQL Server 备份还原

SQL Server支持三种备份方式 完全备份; 差异备份 事务日志备份 一般备份方式为,完全备份/每周,差异备份/每天,事务日志备份/按分钟计,这样可确保备份的高效性和可恢复性。 1. 完全备份 备份脚本 BACKUP DATABASE PCT TO DISK ='D:\Company\Data\SQL Server\Backup\PCT.bak'; 还原备份 RESTORE DATABASE...

View Article

Image may be NSFW.
Clik here to view.

Copying SQL Server Database objects without data

I hope, all SQL Server DBA or Developer have faced the scenario where they have to copy only SQL Server Database objects without data. To do this, commonly DBA/Developer script-out source database...

View Article

Image may be NSFW.
Clik here to view.

Getting Started with the SQL Server First Responder Kit

Your SQL Server database is slowly grinding to a halt, your DBA is on vacation, and you don’t know where to start. This is when you break out the SQL Server First Responder Kit . This open source...

View Article
Browsing all 3160 articles
Browse latest View live