Thursday 5 September 2013

SANCHAY POST CANNOT CONNECT TO DATABASE

Error:Cannot connect to BPRO Database



Database 'BPRO' cannot be opened due to inaccessible files or insufficient memory or disk space. See SQL Server errorlog for details.

Solution:
 1. Run Below query step by step in SQL query analyzer.






 2.  Execute  First Two queries then Goto final.

 3. Final One query may Getting error. So try to run twice/thrice.  


check the DB status, most of the time , it will return 1
use master
select databaseproperty('dbname','isShutdown')

Change the database to offline to clear the database status 
use master
alter database dbname set offline

Now change the database to online, at this step log file and data files will be verified by sql server
use master
alter database dbname set online

0 comments:

Post a Comment

This information provided by NFPE karimnagar. Powered by Blogger.

About Me

KARIMNAGAR, TELANGANA, India
Working as a Postal Assistant from March 28, 2011 Karimnagar Head Post Office and worked as Divisional treasurer for NFPE Union from February 03, 2013 to April 19, 2015.