Re: SQL Server 2008 caching



Manoj saini (tomksaini@xxxxxxxxx) writes:
I need to give one functionality in my application as applicationl lock.
If my databsae is get lock at the time of backup, i need to give a
message to user that daatbse has been locked and ask him to log out.
This application is in Dot net2005. Before db lock , i set one parameter
in table and read this table every min with timer. if parameter is set
then i give message to user.
But to hit the DB every min is not good solution.
Pls help he, how i can avoid hit on dataabse

Why would the user have to log out when you do a backup in the first place?


--
Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx
.



Relevant Pages

  • Re: question about autogrowth and shrinkfile
    ... Assuming that you also left out the full backup, ... Yes, leave auto-grow on. ... Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx ... Books Online for SQL Server 2005 at ...
    (microsoft.public.sqlserver.tools)
  • Re: dropped tables
    ... We Restored from the last backup 12 hours prior... ... Restore it from a backup if you have one. ... Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx ... Books Online for SQL Server 2005 at ...
    (comp.databases.ms-sqlserver)
  • Re: Lock table problem
    ... > can somebody tell the correct syntax for the lock table statement. ... There simply is no LOCK TABLE in Microsoft SQL Server. ... Check out sp_setapplock in Books Online. ...
    (comp.databases.ms-sqlserver)
  • Re: Dump Huge
    ... dump three weeks ago was 26gb, ... In that case the backup is appended to the file. ... Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx ... Books Online for SQL Server 2005 at ...
    (microsoft.public.sqlserver.tools)
  • Re: Timeout errors
    ... BACKUP Database DBName to DISK='D:\Files\Backups\DBName.bak' ... That's one backup statement, not two, and not a RESTORE statement in sight. ... Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx ... Books Online for SQL Server 2005 at ...
    (comp.databases.ms-sqlserver)