Posts filed under 'SQL'

Restoring .bak files using query Analyzer [sql server]

I was wondering how to restore BAK files using query Analyzer as most of the hosting services will provide query Analyzer.

I got a script which works wonder and it’s damn simple.

1. create .bak file using Enterprise Manager

2. Store that in some location

3. Open Query analyzer and execute below command.

Use Master
Alter Database db_Name
SET SINGLE_USER With ROLLBACK IMMEDIATE

RESTORE DATABASE db_Name
FROM DISK = ‘D:\dbName.bak’

That’s it here we go………..

One more solution is installing third party software http://www.sqlscripter.com/


Add comment February 16, 2008

What is Sql?

  • SQL stands for Structured Query Language
  • SQL allows you to access a database
  • SQL is an ANSI standard computer language
  • SQL can execute queries against a database
  • SQL can retrieve data from a database
  • SQL can insert new records in a database
  • SQL can delete records from a database
  • SQL can update records in a database
  • SQL is easy to learn

3 comments April 10, 2007


Spam Blocked

Flickr Photos

THE-GROUP-YOU-CANNOT-GET-INTO-ANYMORE

.pouting.

L'informarsi, prima di tutto

More Photos

Categories

Links

Calendar

August 2008
M T W T F S S
« Jun    
 123
45678910
11121314151617
18192021222324
25262728293031

Recent Posts

Recent Comments

Sachin Gajraj on Top 50 Govt Engineering C…
Sachin Gajraj on Top 50 Govt Engineering C…
KUSHAGRA on Top 50 Govt Engineering C…
Siber on 5 useful PHP functions for MyS…
Daniel Tome on Applying background to Iframe …

Pages

Top Clicks

Top Posts

Blog Stats