Sql Server Backup Database – my 10 Tips


1) How Do I Backup SQL Server Database To A Network Drive?
I have tried to use trace flag 1807, but it did not work. Any idea?
Thanks for anyone tried to help on this issue. I have resolved it, and it was due to my SQL server service was using local system account. Therefore I could not access network drive. Once I corrected by using domain account, it works. Fool

Can you access/write to files in general on that drive?
What error occurs?

http://www.microsoft.com/technet/prodtechnol/sql/2000/maintain/sqlbackuprest.mspx#EJDAC

is a good summary of ms sql backup options


2) How To Backup SQL 2000 Server Database Without Having Same Backup File Name?
After i did a backup database in Enterprise Manager, lets say the backup file name is “customer”.
Then i backup the same database again, and it replaced the old one (customer). How can i make the backup file name to become “16032007-Customer” (for 1st one) and “17032007-Customer”, according to date?

Hi there
I guess you have to do it manually
On windows 2000 server
go to start button then go to programs and select
microsoft sql server
select enterprise manager
collapse the microsoft sql servers
then collapse sql server group
choose your database name
select your database and right-click on it
select all tasks
choose backup database option
you will see database name
then bellow that there will be destimation
click on add button and select where to put you backup file
click the button which has the 3dots on it and input the file name that you want to save your backup file with

good luck


3) How To Make SQL Backup And Restore Database Inside A Visual Basic Application?
I am a software engineer. I want my software (Designed in Visual Basic 6.0)to make backup and restore SQL Database file hosted on a server. The backup should be made by SQL Server itself. I just want to know how to do send command to SQL to do this.

http://forums.g4tv.com/categories.cfm?catid=64

4) How Can I Take Backup Of SQL Server Database Using VB6 Code?
we are stuck with a problem. we are doing a project in VB 6.0 and SQL Server 2000 and need to make modules for the following.

1. Backing up Database
2. Restoring Databse
3. Attaching *.MDF files

through VB 6.0 code with SQL Server 2000 as Back End.

Can you please help us out.


You can see various details/T-SQL commands for Backing up
and restoring a database in SQL Server 2000 at the following site:
http://www.microsoft.com/technet/prodtechnol/sql/2000/maintain/sqlbackuprest.mspx

What i suggest is try using the commands given in
the site and fire them as any other command by creating the
connection on required database and on ‘master’ database.

I hope this soves you problem or gives you some idea of
solving the problem.

Do tell me if this solved your issue.


5) Backup Of Sql Server Database?
i am doing project in the vb.net..with backend as sql server2000..!!

now in my software i want a button on which if i clicked for backup..then it wil ask where to save databse…then if i provide a path then the datasse wil get stored ther automatically..
how to do this..??
i tried to find out a lot..b in vail..!!
can u help me..plzzzzzz??!!!



6) Is There Any Software To Use A Database Sql Server 2000, Instead Of Using Sql Server 2000?
i have a backup database from sql server 2000, when i had windows xp, and now sql server 2000 is not work on vista OS, and i can not restore database, i want a software to restore the database and works like sql server, do you know any software to do this job? thanks.

It depends on how you saved the backup. If it’s just the files themselves, you’ll have to import them into a database program that can import from SQL Server 2000. If not, you’ll need a database that can read the format you saved in.

7) How To Restore Backup Database Into Sql Server 2000.?
I have try my best to install the backup database into sql 2000 but the problem happen at move to physical. That the data mdf and ldf is error. How to make it at the correct path?

SQL Server is picky like that.

Right click the DB, select restore. Then pick the backup file choice and pick the file. Change to the other tab, there is a checkbox for forcing the restore. It will also show you the name and path for the MDF and LDF files. Just make sure it has the new name and path because these are prefilled based on the contents of the backup file itself.

That’s all you need to do.


8) Can Anyone Give Me A Step By Step Process To Backup SQL Server Tables And Database To Another Disk??
I have MS-SQL 2005 server installed.
In case of PC formatting or uninstallation, I have to backup all the data.
But I don’t know the path where the tables are stored on system.
Tell me:
1.Where r the tables and views saved on the hard disk.
2.how can I copy the database set I want to another storage medium(like flash drive or a CD).
3.After copying how can I use that database on another system that has SQL server installed??
Plz help me…..I need it

http://www.windowsitlibrary.com/Content/77/12/1.html

9) I Have A Backup Of My Database(sql Server 2000),?
i change my windows to vista, but i cant install sql server 2000 on vista, i need a version of sql server that i can RESTORE my database, i dont know which version of sql server is compatible with vista???
TITLE: Surface Area Configuration
——————————

No SQL Server 2005 components were found on the specified computer. Either no components are installed, or you are not an administrator on this computer. (SQLSAC)



10) I Have Made A Database In Sql Server 2000 But Didnot Backup,?
I have made a database in sql server 2000 but didnot backup, later i have to uninstall the sql server and reinstall it. I have the .mdf and .ldf files, can i restore these files in my new sql server. I need it. how to do it??

You can use the Attach commands to accomplish this.

From Microsoft SQL Server Books Online:

In Microsoft® SQL Server™ 2000, the data and transaction log files of a database can be detached and then reattached to another server, or even to the same server. Detaching a database removes the database from SQL Server but leaves the database intact within the data and transaction log files that compose the database. These data and transaction log files can then be used to attach the database to any instance of SQL Server, including the server from which the database was detached. This makes the database available in exactly the same state it was in when it was detached.

Detaching and attaching databases is useful if you want to move a database:

From one computer to another without having to re-create the database and then restore the database backup manually.

To a different physical disk, for example, when the disk containing the database file has run out of disk space and you want to expand the existing file rather than add a new file to the database on the other disk.
To move a database, or database file, to another server or disk:

Detach the database.

Move the database file(s) to the other server or disk.

Attach the database specifying the new location of the moved file(s).
When you attach a database, the name and physical location of the primary data file must be specified. The primary file contains the information needed to find the other files comprising the database unless one or more of those files have changed location since the database was detached. Any files that have changed location must be specified in addition to the primary file. Otherwise, SQL Server tries to attach the files based on incorrect file location information stored in the primary file, and the database will not be successfully attached.

If you attach a database to a server other than the server from which the database was detached, and the detached database was enabled for replication, you should run sp_removedbreplication to remove replication from the database. Alternatively, you can remove replication from the database prior to detaching it.

Errors produced while detaching a database may prevent both the database from closing cleanly and the transaction log from being rebuilt. If you receive an error message, perform these corrective actions:

Reattach all files associated with the database, not just the primary file.

Resolve the problem that caused the error message.

Detach the database again.


Leave a Reply