BACKUP is the only way to BACKUP a MS SQL database - and it's designed to work when the DB is open. That's the cool thing about MS SQL - it's perfect like that.
If you don't do regular backup's your LOG file can grew like crazy. BACKUP is good.
Do you understand how the LOG file works in MS SQL?
*** Read the sticky in the DB forum about how to get your question answered quickly!! ***
Please remember to rate posts! Rate any post you find helpful - even in old threads! Use the link to the left - "Rate this Post".
Many different programs over many months. What's wrong with the connection string? ie, how would you suggest that I change it? I'm still fairly new at .Net.
Well, aren't you the early bird. Thanks for your help and your helpful attitude!!
I use this same connection string in all my programs that I have written so far and they all work just fine. I think I am connecting to the DB directly?.?
Do you use SQL Server Management Studio to work with this SQL instance? Since SQL normally runs as a SERVICE on a SERVER or workstation it is usually talked to with SSMS.
*** Read the sticky in the DB forum about how to get your question answered quickly!! ***
Please remember to rate posts! Rate any post you find helpful - even in old threads! Use the link to the left - "Rate this Post".
If you are using SSMS then you have an object explorer on the left you can open and see a branch for your DB. If that is the case then the DB is already mounted to the service running.
Your connection string is not correct. Follow these three steps and make this same screen shot for me to see.
*** Read the sticky in the DB forum about how to get your question answered quickly!! ***
Please remember to rate posts! Rate any post you find helpful - even in old threads! Use the link to the left - "Rate this Post".
Re: [RESOLVED] How can I backup an OPEN Server database?
GAAAAAH! MASTER? Noooooo! (slow motion leaping over chairs, reaching out)
The master database is the main master database that SQL Server uses to maintain the list of databases and other internal states... good gawd man! Please tell me you didn't put your tables or do development in the master database!
Re: [RESOLVED] How can I backup an OPEN Server database?
Before we both panic, maybe I RCed the wrong line.
If I expand Databases in SSMS there are 2 items "System Databases" and "a DB symbol with the full path to my DB"
If I then RC the topmost line in the screen, that's where I see Master in the Database Name field.
If, however, I RC "the Symbol with the full path to my DB", Click Properties, and then Click "View Connection Properties", I get the full path to my DB in the Database Name field.
The Backup only works if I use Master as the Database.
Re: [RESOLVED] How can I backup an OPEN Server database?
I created my DB and Set up SSMS about a year and a half ago, when I first started learning .Net. I absolutely did not know what I was doing back then(self taught) and don't remember how I went about it.
I get the correct DB, "AbcDatabase", in the backup folder when I run my backup.
Dim ThisQuery As String = "backup database master to disk='\\" & BackupCmptr & "\BackupAbcHal\AbcDatabase.bak'"
Last edited by DexterRose; Jun 25th, 2014 at 04:09 PM.
Re: [RESOLVED] How can I backup an OPEN Server database?
Should I just rename the Database here by right clicking the Database Name symbol shown under the "Server Databases" symbol, selecting Rename, and then changing the Database Name from "C:\Program Files............." to "AbcDatabase" ?
Re: [RESOLVED] How can I backup an OPEN Server database?
Yup.
It probably got that way because of how you had the connection string in the first place and it got attached as a user instance or something. One way or another, it got created incorrectly.