Link to home
Start Free TrialLog in
Avatar of Asif Naeem
Asif NaeemFlag for United Kingdom of Great Britain and Northern Ireland

asked on

SQl Server 2005

Hi,

I need urgent help.  I have XP based machine running ACT by Sage on it. It has SQL server 2005 on it. I need to backup the Data base.
But there is no SQL server managment Studio Express on it. Please how I can backup Current Database without SQl server managment Studio express running on Machine.

Thanks
Asif
Avatar of Ankit Pareek
Ankit Pareek
Flag of India image

Hey you can backup your data base by following method

SQL Server Management Studio
Transact-SQL
PowerShell

as you told that sql server management studio not here so you can try to transact sql or poweshell script method
here is the way for transact sql method

USE AdventureWorks2012;
GO
BACKUP DATABASE AdventureWorks2012
TO DISK = 'Z:\SQLServerBackups\AdventureWorks2012.Bak'
   WITH FORMAT,
      MEDIANAME = 'Z_SQLServerBackups',
      NAME = 'Full Backup of AdventureWorks2012';

Open in new window

either you can also check out full process on the following link
msdn.microsoft.com/en-us/library/ms187510.aspx?f=255&MSPPError=-2147217396
Go to RUN and type SQLWB.exe. check if sql server management studio open or not. Some time someone delete it from start menu.

or you can take backup using SQLCMD

1. Open windows command prompt.
2. type SQLCMD -S <Servername> -U <username> -P <Password>  -Q "Backup database <databaseName> to disk ='<location\backupfilename.Bak' "
ASKER CERTIFIED SOLUTION
Avatar of Lee
Lee
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Asif Naeem

ASKER

Hi,

Thanks Lee Yes I realized that ACT has builtin facility to backup the database. I used this to backup the database.

Thanks
Asif