
SQL SERVER
yethyeth
这个作者很懒,什么都没留下…
展开
-
SQL Server SQL语句导入导出大全
SQL Server SQL语句导入导出大全 /******* 导出到excelEXEC master..xp_cmdshell bcp SettleDB.dbo.shanghu out c:/temp1.xls -c -q -S"GNETDATA/GNETDATA" -U"sa" -P""/*********** 导入ExcelSELECT * FROM OpenDataSour转载 2006-10-30 14:51:00 · 3748 阅读 · 0 评论 -
sql server tips 2
1 取中间n条记录select top 5 * from tab where id in(select top 10 id from tab order by id)andid not in(select top 5 id from tab order by id)可以取道6-10条记录2 select top @para不能用的替代http://www.cnblogs.com/lsmwell原创 2007-06-14 22:38:00 · 735 阅读 · 0 评论 -
动态sql--------绝对好文!
The Curse and Blessings of Dynamic SQLAn SQL text by Erland Sommarskog, SQL Server MVP.An earlier version of this article is also available in Korean, German, Spanish and Vietnames转载 2007-01-16 22:44:00 · 6436 阅读 · 0 评论 -
关于sql server中的表中记录按记录排序的问题,未有结论
http://topic.youkuaiyun.com/t/20050628/09/4109115.htmlhttp://topic.youkuaiyun.com/t/20030728/19/2082128.htmlSQL Server 排序规则基础知识 Microsoft® SQL Server™ 2000 支持多种排序规则。排序规则对控制正确使用语言(如马其顿语或原创 2007-01-10 22:39:00 · 1435 阅读 · 1 评论 -
无法删除数据库::提示:错误3702!无法除去数据库"test",因为它正在使用!!!
我发现是装了LOG explore,解决方法: Program Files/Microsoft SQL Server/MSSQL/Binn 下有uninstall.exe 文件执行即可,如果执行失败,执行unstall.ini中的[serversqluninstall]段的语句,记得有些是要加上exec的。 经过测试,成功。http://topic.转载 2007-01-04 19:48:00 · 8794 阅读 · 0 评论 -
从sql server的日志中获取事务信息Undocumented DBCC: Command to view a database transaction log
Serdar Yegulalp, Contributor 03.16.2006 Rating: --- (out of 5) RSS FEEDS: E转载 2006-12-29 17:00:00 · 1588 阅读 · 0 评论 -
sql server未经确认的dbcc命令
相关英文:(2000和7中支持的dbcc命令)http://www.mssqlcity.com/Articles/Undoc/SQL2000UndocDBCC.htmhttp://www.windowsitlibrary.com/Content/77/21/1.html 下面这些dbcc command有些是没有官方支持的,不建议初学者使用。切记小心使用,不过有很多还是非常转载 2006-12-29 16:38:00 · 2298 阅读 · 0 评论 -
将本地文件中数据批量导入到远程数据库中
http://topic.youkuaiyun.com/t/20021002/13/1069221.htmlhttp://www.netbei.com/Article/db/db3/200507/3905.htmlhttp://www.cc.jl.gov.cn/infopub25/sjjbbs/forum_posts.asp?TID=36http://www.moon-soft.com/download/in转载 2006-12-24 22:33:00 · 1074 阅读 · 0 评论 -
Transferring Data from One Table to Another
May 31, 2005 Transferring Data from One Table to Another By Gregory A. Larsen Every DBA needs to transfer data between tables. This is the kind of task that comes up all the time.转载 2006-12-23 17:09:00 · 1590 阅读 · 0 评论 -
SQL SERVER tips
1判断一个表或视图是否在 数据库中if exists (select * from sysobjects where name=v1 and xtype=V)drop view v1go sysobjects是一个系统表,如果判断对象是table,则xtype=U如果是trigger则xtype=TR2用sql建立交叉表一个常见的例子http://iouniuniu.cnblo原创 2006-07-24 16:20:00 · 1304 阅读 · 0 评论 -
Potential causes of the "SQL Server does not exist or access denied" error message
下面是从microsoft的网站上转的,但是我的问题是这样解决的:产生的原因是:我编码时,在datamodule里面留下了一些connectionstring,即有些connectionstring是有值的。但是在一个客户端环境中connectionstring未必有作用,但是在创建datamodule的时候先读这些默认的值,如何才读到我动态设置的connectionstring值,所以先转载 2006-11-02 20:36:00 · 4039 阅读 · 0 评论 -
数据库tips 20071029
function java(){ var java = document.getElementById("java"); var dt = document.getElementById("datastructure"); var db = document.getElementById("database"); java.style.display="block";原创 2007-10-29 11:34:00 · 642 阅读 · 0 评论