hello every one
i wont to select the data place in textbox in the form but the code does not work
Sub backup()
con.Open()
Dim cmd As New SqlCommand("BACKUP DATABASE ['" & TextBox1.Text & "'] TO DISK = N'D:\5-2016\Backup.bak' WITH COPY_ONLY", con)
cmd.ExecuteNonQuery()
con.Close()
hhaannyy
0
Newbie Poster
Recommended Answers
Jump to PostWait, did you post that 4 times?
All 2 Replies
rproffitt
2,580
"Nothing to see here."
Moderator
Reverend Jim
commented:
Yes, but I just deleted 3 of them.
+14
3DotDev
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.