How To Backup and Resotre .mdf file local database
-
Please can any one tell how to backup and restore .mdf file , currently i am trying some like: SqlCommand cmd = new SqlCommand(@"BACKUP DATABASE [Record] TO DISK ='D:/Backup/main.bak'",con); but error is DATABASE not exist
-
Please can any one tell how to backup and restore .mdf file , currently i am trying some like: SqlCommand cmd = new SqlCommand(@"BACKUP DATABASE [Record] TO DISK ='D:/Backup/main.bak'",con); but error is DATABASE not exist
Now, not everyone's first language is English. However you did post your question in perfectly legible English so I can't give you a free ride there. At the top of the page is the following blurb:
Quote:
Technical discussions are encouraged, but click here to ask your programming question.
So if you'd just delete this post and click on the link at top I'm sure someone will help you with this ...
062142174041062102
-
Please can any one tell how to backup and restore .mdf file , currently i am trying some like: SqlCommand cmd = new SqlCommand(@"BACKUP DATABASE [Record] TO DISK ='D:/Backup/main.bak'",con); but error is DATABASE not exist
This is the Kentucky Fried Question and your name must be Rex Kramer[^], the danger seeker.
The language is JavaScript. that of Mordor, which I will not utter here
This is Javascript. If you put big wheels and a racing stripe on a golf cart, it's still a fucking golf cart.
"I don't know, extraterrestrial?" "You mean like from space?" "No, from Canada." If software development were a circus, we would all be the clowns. -
Please can any one tell how to backup and restore .mdf file , currently i am trying some like: SqlCommand cmd = new SqlCommand(@"BACKUP DATABASE [Record] TO DISK ='D:/Backup/main.bak'",con); but error is DATABASE not exist
You forgot the
USE [Correct_Forum];
statement. That's why.Jeremy Falcon
-
Please can any one tell how to backup and restore .mdf file , currently i am trying some like: SqlCommand cmd = new SqlCommand(@"BACKUP DATABASE [Record] TO DISK ='D:/Backup/main.bak'",con); but error is DATABASE not exist
Member 11528928 wrote:
but error is DATABASE not exist
Really? I wonder what your problem might be (besides posting in the wrong forum)... :doh:
Visit my blog at Sander's bits - Writing the code you need. Or read my articles at my CodeProject profile.
Simplicity is prerequisite for reliability. — Edsger W. Dijkstra
Regards, Sander
-
Member 11528928 wrote:
but error is DATABASE not exist
Really? I wonder what your problem might be (besides posting in the wrong forum)... :doh:
Visit my blog at Sander's bits - Writing the code you need. Or read my articles at my CodeProject profile.
Simplicity is prerequisite for reliability. — Edsger W. Dijkstra
Regards, Sander