天若有情.NET

  博客园 :: 首页 :: 新随笔 :: 联系 :: 订阅 :: 管理 ::

文章分类 -  数据库

摘要:--读取Access数据库 SELECT * FROM OpenDataSource( 'Microsoft.Jet.OLEDB.4.0', 'Data Source="d:\ssm.mdb";User ID=Admin;Password=')...h_info --读取Visual FoxPro DB select * from openrowset('MSDASQL', 'Driver=M... 阅读全文
posted @ 2005-01-27 13:45 pathik 阅读(373) 评论(0) 推荐(0)

摘要:Finding & Using Unused IDs If you want to fill in the gaps in IDENTITY columns left by SQL Server when you delete rows from a table, you can quickly get a list of unused identities using the following... 阅读全文
posted @ 2005-01-27 13:06 pathik 阅读(350) 评论(0) 推荐(0)

摘要:比较好用,贴出来: Using SQL Server Transactions In complicated relational database applications there are circumstances where a SQL query must be executed in its entirety or not at all in order to preserve t... 阅读全文
posted @ 2005-01-27 13:04 pathik 阅读(351) 评论(0) 推荐(0)

摘要:作为一个应用开发人员,平时一定少不了和数据库打交道,可是当数据库日志多大,又不需要保留这些日志,怎么办呢? 现将我使用的方法整理如下(MSSQL): 如何清除事务日志文件方法 三种方法: 一. 删除LOG 1:分离数据库企业管理器->服务器->数据库->右键->分离数据库 2:删除LOG文件 3:附加数据库企业管理器->服务器->数据库->右键->附加数据库 此法生成新的LOG,大小只... 阅读全文
posted @ 2005-01-27 13:02 pathik 阅读(587) 评论(0) 推荐(0)