百度首页 | 百度空间
 
查看文章
 
与SQL数据库相关的一些操作和问题
2008-03-23 17:12

一、

freetalk.sql是查询分析器中运行的,是建表和建库的内容,到查询分析器中打开此文件直接运行就可以了
freetalk_Date.MDF; freetalk_Log.LDF 是数据的备份,直接在企业管理器中附加就行了!

二、SQL 数据库附加、还原、备分、分离

SQL数据库文件不分离是不能复制的。也就是说,如果想复制数据库文件,那么先分离这个数据库,然后再在磁盘上找到数据库文件,复制到别的地方。

数据库的备份很简单,备分的文件可以还原。

分离后的数据库,可以复制到其他的文件夹,然后再用附加数据库的方法在企业管理器中附加。

sa     密码空

安全性:SQL Server和Windows身份验证

右击"Local..."----"属性"----"安全性"选项卡---- ........,这样就可以正确的连接数据库了 ^_^

三、SQL Server备份、还原问题总结

将数据库备份到远程机器上,远程机器可能未安装数据库
http://community.csdn.net/Expert/topic/4932/4932438.xml?temp=.8836939
http://community.csdn.net/Expert/topic/5091/5091709.xml?temp=.7705652
http://community.csdn.net/Expert/topic/4975/4975350.xml?temp=.527157
http://community.csdn.net/Expert/topic/5077/5077285.xml?temp=.9955103
http://community.csdn.net/Expert/topic/5046/5046936.xml?temp=.1390345

请问怎么删掉数据库的备份?
http://community.csdn.net/Expert/topic/4967/4967508.xml?temp=.4096338

网上租有数据库,怎样将数据备份到本地的电脑 http://community.csdn.net/Expert/topic/4747/4747502.xml?temp=.4803583

数据库自动备份问题
http://community.csdn.net/Expert/topic/5024/5024517.xml?temp=.8827173

定期备份问题
http://community.csdn.net/Expert/topic/5066/5066183.xml?temp=.9523584

如何仅备份库中表的数据
http://community.csdn.net/Expert/topic/4860/4860261.xml?temp=.9317896

从虚拟主机上的数据库导出数据时出现的问题
http://community.csdn.net/Expert/topic/4876/4876620.xml?temp=.2954065

*基本还原数据库方法*
http://community.csdn.net/Expert/topic/5111/5111602.xml?temp=.9495661
http://community.csdn.net/Expert/topic/4991/4991655.xml?temp=.515011
SQL Server 2005还原问题http://community.csdn.net/Expert/topic/4876/4876515.xml?temp=.5053217

*误删恢复*
http://community.csdn.net/Expert/topic/5076/5076798.xml?temp=.5811273
http://community.csdn.net/Expert/topic/5111/5111993.xml?temp=.6654627
http://community.csdn.net/Expert/topic/5093/5093360.xml?temp=9.054202E-02
误删除数据库只有一个LDF日志文件
http://community.csdn.net/Expert/topic/5051/5051185.xml?temp=.1046717

sql2000数据库文件(或bak备份文件)直接在sql2005中还原恢复,
http://community.csdn.net/Expert/topic/5109/5109392.xml?temp=.6537592

错误:无法将设备'xxx'上的备份应用于数据库'yyy'。restore database 操作异常终止。
http://community.csdn.net/Expert/topic/5057/5057228.xml?temp=.4222986

数据库还原后无法使用
http://community.csdn.net/Expert/topic/5090/5090406.xml?temp=.6951868

如何根据日志恢复数据库??
http://community.csdn.net/Expert/topic/5036/5036497.xml?temp=.2766992
http://community.csdn.net/Expert/topic/4996/4996531.xml?temp=.9004785

还原日志备份时老是提示数据库正在使用
http://community.csdn.net/Expert/topic/4815/4815517.xml?temp=.221081

恢复数据库时,登录用户的问题
http://community.csdn.net/Expert/topic/5048/5048550.xml?temp=.3520471

MDF文件导入出错
http://community.csdn.net/Expert/topic/5014/5014644.xml?temp=.3427393


备份

如何在sql2000中自动把数据库备份到网络上其他没有装sqlserver的计算机上?
http://community.csdn.net/Expert/topic/4975/4975350.xml?temp=.527157

我想实现数据库的远程备份,请问都需要做什么?
还有就是 怎么去实现?
谢谢指教
http://community.csdn.net/Expert/topic/5091/5091709.xml?temp=.7705652

本人在网上租有一数据库,请问怎样将数据备份到本地的电脑,不可能建立一个完全共享的文件夹,最好能像backup一样备份成一个文件放到我本地的电脑里
http://community.csdn.net/Expert/topic/4747/4747502.xml?temp=.4803583


备份内网中的数据库sql2005,代码如下:
backup database NM_CRM to disk='F:\CRM\BACKUPDATA\20061012.bak'
报错说无法打开备份设备,查了一下说是仅限的事,但都没说的很清楚,谁帮忙分析一下
http://community.csdn.net/Expert/topic/5077/5077285.xml?temp=.9955103


今天备份时选择了七天前的一个备份文件进行覆盖,那个文件本来是七天前的定时备份产生的。结果后来用它还原数据时发现数据只有七天前的。好像完全没有进行覆盖一样。可是那个文件的修改时间明明是今天的啊。
   不知道能不能从这个文件中找回我这最后七天的数据呢?
http://community.csdn.net/Expert/topic/5066/5066183.xml?temp=.9523584


SQL Server2000数据库异地备份的问题
http://community.csdn.net/Expert/topic/5046/5046936.xml?temp=.1390345

数据库自动备份问题
http://community.csdn.net/Expert/topic/5024/5024517.xml?temp=.8827173


如何仅备份库中表的数据
http://community.csdn.net/Expert/topic/4860/4860261.xml?temp=.9317896

能不能将数据库备份到远程机器上,需要什么条件?求解。
http://community.csdn.net/Expert/topic/4932/4932438.xml?temp=.8836939


从虚拟主机上的数据库导出数据时出现的问题
http://community.csdn.net/Expert/topic/4876/4876620.xml?temp=.2954065


请问怎么删掉数据库的备份?
http://community.csdn.net/Expert/topic/4967/4967508.xml?temp=.4096338


类别:工作日记 | 添加到搜藏 | 浏览() | 评论 (0)
 
最近读者:
 
网友评论:
发表评论:
姓 名:
网址或邮箱: (选填)
内 容:
验证码: 请输入下图中的四位验证码,字母不区分大小写。
看不清?
 

     

©2008 Baidu