?? yonghuguanli1.frm
字號:
VERSION 5.00
Begin VB.Form shujukubeifen
Caption = "數據庫備份"
ClientHeight = 6210
ClientLeft = 60
ClientTop = 465
ClientWidth = 7125
LinkTopic = "Form1"
ScaleHeight = 6210
ScaleWidth = 7125
StartUpPosition = 3 '窗口缺省
Begin VB.TextBox Text1
Height = 375
Left = 2640
TabIndex = 7
Top = 1320
Width = 1935
End
Begin VB.CommandButton Command2
BackColor = &H0000FF00&
Caption = "取消"
BeginProperty Font
Name = "華文行楷"
Size = 14.25
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 4080
Style = 1 'Graphical
TabIndex = 5
Top = 4320
Width = 1455
End
Begin VB.CommandButton Command1
BackColor = &H0000FF00&
Caption = "確定"
BeginProperty Font
Name = "華文行楷"
Size = 14.25
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 2040
Style = 1 'Graphical
TabIndex = 4
Top = 4320
Width = 1335
End
Begin VB.DirListBox Dir1
Height = 1560
Left = 2640
TabIndex = 1
Top = 2520
Width = 2055
End
Begin VB.DriveListBox Drive1
Height = 300
Left = 2640
TabIndex = 0
Top = 2160
Width = 2055
End
Begin VB.Label Label3
BackStyle = 0 'Transparent
Caption = "數據庫備份"
BeginProperty Font
Name = "黑體"
Size = 15.75
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H000000FF&
Height = 375
Left = 2520
TabIndex = 6
Top = 600
Width = 1695
End
Begin VB.Label Label2
BackStyle = 0 'Transparent
Caption = "備份路徑"
BeginProperty Font
Name = "隸書"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FF0000&
Height = 375
Left = 1320
TabIndex = 3
Top = 1320
Width = 1095
End
Begin VB.Label Label1
BackStyle = 0 'Transparent
Caption = "選擇列表"
BeginProperty Font
Name = "隸書"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FF0000&
Height = 255
Left = 1200
TabIndex = 2
Top = 2160
Width = 1215
End
End
Attribute VB_Name = "shujukubeifen"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Dim conn As New ADODB.Connection
Dim rec As New ADODB.Recordset
Dim b As String
db = "Driver={SQL Server};SERVER=DDK;DATABASE=lvxingshe"
conn.Open db '打開數據庫連接
FileName = Dir1.Path & "\lvxingshebackup"
conn.Execute "backup database lvxingshe to disk='" & FileName & "'"
MsgBox "數據庫備份成功!", vbOKOnly, "提示"
End Sub
Private Sub Command2_Click()
Unload Me
mainfrm.Show
End Sub
Private Sub Dir1_Change()
Text1.Text = Dir1.Path
End Sub
Private Sub Drive1_Change()
Dir1.Path = Drive1.Drive
Text1.Text = Drive1.Drive
End Sub
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -