标题:[求助]兩個問題求大家相教
只看楼主
帝國時代
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2006-2-24
 问题点数:0 回复次数:2 
[求助]兩個問題求大家相教
我使用的是VB+SQL開發的,現在有兩個問題不知道怎麽解決,求高手指點.

1,怎麽實現上傳功能,無須上傳到網上,只需要上傳到本地文件夾就可以了

2,怎麽實現備份和還原數據庫?

[此贴子已经被作者于2006-2-24 11:16:02编辑过]

2006-02-24 11:16
griefforyou
Rank: 6Rank: 6
等 级:贵宾
威 望:27
帖 子:3336
专家分:0
注 册:2004-4-15
得分:0 
1,怎麽實現上傳功能,無須上傳到網上,只需要上傳到本地文件夾就可以了
本地怎么说上传?拷贝就可以

2,怎麽實現備份和還原數據庫?
可以使用SQLDMO组件,很简单

This example illustrates using SQL-DMO to perform a complete database backup
.
' Create a Backup object and set action and source database properties.
Dim oBackup As New SQLDMO.Backup
oBackup.Action = SQLDMOBackup_Database
oBackup.Database = "Northwind"
' Example illustrates a striped backup using two target devices. Note:
' Device creation is not illustrated in this example.
oBackup.Devices = "[NorthDev1],[NorthDev2]"
' Optional. Backup set name and description properties provide
' descriptive text when backup header is displayed for the device(s).
oBackup.BackupSetName = "Northwind_Full"
oBackup.BackupSetDescription = "Full backup of Northwind sample."
' Call SQLBackup method to perform the backup. In a production
' environment, consider wrapping the method call with a wait pointer
' or use Backup object events to provide feedback to the user.
'
' Note: Create and connect of SQLServer object used is not
' illustrated in this example.
oBackup.SQLBackup oSQLServer


天津网站建设 http://www./
2006-02-24 12:19
wsn
Rank: 2
等 级:新手上路
威 望:5
帖 子:321
专家分:0
注 册:2006-2-9
得分:0 
以前我用过ado的stream对象,有个save..

已婚男人!没事请勿打扰·老婆格言:①不准對她耍酷 ②不准讓她吃醋 ③吵架我要讓步 ④揍我我要挺住⊙⊙
2006-02-24 17:09



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-46939-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.120803 second(s), 7 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved