Jump to content


Check out our Community Blogs

Register and join over 40,000 other developers!


Recent Status Updates

View All Updates

Photo
- - - - -

sql database 2008

database

This topic has been archived. This means that you cannot reply to this topic.
2 replies to this topic

#1 rhysgardner

rhysgardner

    CC Lurker

  • Just Joined
  • Pip
  • 1 posts

Posted 31 January 2016 - 07:58 AM

Fell virtual server, yesterday raised and moved onto a new backup of 02.12.15 number of backup, whether it is possible to restore the database with a log of the ldf 12.24.15 number



#2 jessicaamirr

jessicaamirr

    CC Lurker

  • New Member
  • Pip
  • 6 posts

Posted 01 February 2016 - 11:10 PM

I don't think you're ready to be a DBA, even a Junior one (sorry!).

Access is ok for end-users just pulling out numbers (similar to how office workers use Excel), but its considered nothing more than a novelty toy in the world of developers and enterprise databases.

I'd really just focus on being a developer with SQL Server first, there is probably a LOT you don't yet understand about T-SQL, let alone having to act as DBA. I think you'd need at least 2 or 3 years of working with SQL before you could realistically move into a DBA role.

--------------------------------------------------------------------------------------------------------------------

Dot net Training in ChennaiDot net Training in ChennaiDot net Training in Chennai



#3 karterstout

karterstout

    CC Lurker

  • Just Joined
  • Pip
  • 1 posts

Posted 09 February 2016 - 09:31 AM

You may try both variant of restoration:

 

First powerful resources

 

http://support.oreil...corrupted?rfm=1

http://itknowledgeex...e-is-corrupted/

https://www.repairto...rverrepair.html SQL Server Repair Toolbox

 

Check DB

Sometimes when you connect to your database server, you may find it in suspect mode. Your database server won’t allow you to perform any operation on that database until the database is repaired.

A database can go in suspect mode for many reasons like improper shutdown of the database server, corruption of the database files etc.

To get the exact reason of a database going into suspect mode can be found using the following query,

DBCC CHECKDB (’YourDBname’) WITH NO_INFOMSGS, ALL_ERRORMSGS

 

Output of the above query will give the errors in the database.

To repair the database, run the following SQL Script

EXEC sp_resetstatus ‘yourDBname’;

ALTER DATABASE yourDBname SET EMERGENCY

DBCC checkdb(’yourDBname’)

ALTER DATABASE yourDBname SET SINGLE_USER WITH ROLLBACK IMMEDIATE

DBCC CheckDB (’yourDBname’, REPAIR_ALLOW_DATA_LOSS)

ALTER DATABASE yourDBname SET MULTI_USER






Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download