sql文档
文章平均质量分 66
iteye_19902
这个作者很懒,什么都没留下…
展开
-
The database could not be exclusively locked to perform the operation(SQL Server
SQL Server 5030错误解决办法 今天在使用SQL Server时,由于之前创建数据库忘记了设置Collocation,数据库中插入中文字符都是乱码,于是到DataBase的Options中修改 Collocation,出现了The database could not be exclusively locked to perform the operation这个错误,无法修改...原创 2013-05-28 16:32:39 · 230 阅读 · 0 评论 -
sql
http://technet.microsoft.com/zh-cn/library/ms191491%28v=sql.90%29原创 2013-03-22 16:51:36 · 94 阅读 · 0 评论 -
sqlserver 各table的空间
if not exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tablespaceinfo]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)create table tablespaceinfo --创建结果存储表 ...原创 2013-04-17 11:30:12 · 165 阅读 · 0 评论 -
sqlserver excel
原文地址: http://www.excel-sql-server.com/excel-import-to-sql-server-using-distributed-queries.htm Excel Import to SQL Serverusing Distributed Queries Introduction This article describes the compl...原创 2013-04-26 15:42:41 · 175 阅读 · 0 评论 -
sqlserver insert 后的主键获取方式
SQL Server 中,可以使用 SCOPE_IDENTITY()、 @@IDENTITY 、 IDENT_CURRENT() 来取得最后插入记录的值值,它们的区别在于:SCOPE_IDENTITY() 返回插入到同一作用域中的 IDENTITY 列内的最后一个 IDENTITY 值。一个作用域就是一个模块--存储过程、触发器、函数或批处理。因此,如果两个语句处于同一个存储过程、函数或批处理中...原创 2013-04-27 12:48:41 · 1311 阅读 · 0 评论