Search Chirayu Software Solutions Blog

Tuesday, June 17, 2014

Delete a Database in SQL Server Management Studio 2008 R2

Go To SQL Server Management Studio 2008 R2
Right mouse click on the database
Select “delete”
MyImage
Confirm the deleteClick “OK”
MyImage 

You are done 

Tuesday, June 10, 2014

Speed Up Windows XP PC

Speed Up Settings
Right Click My Computer --> Properties
Click Advanced in tabs
In Performance block click on Settings
Click the third option Adjust for best performance


Disable following services in windows XP :

Disable services
Alerter
Clipbook
Messenger
Network DDE
Network DDE DSDM
Routing and Remote Access
Telnet
Task Scheduler
Themes
Event Log
Error Reporting
Automatic Updates
Help and Support
Secondary Logon
Security Center
Server
Computer Browser
Wireless Zero Configuration
Windows Firewall
Windows Audio
Terminal Services



Click Start--> Run
typpe MSCONFIG and press enter
Goto Startup Tab
Click Disable All
Click Apply

Right Click Desktop --> Properties
Goto Desktop tab
click on NONE in Background list
The Wallpaper will be removed now
Click OK

Right Click Desktop --> Properties
Goto Screen Saver
click on NONE in Screen Saver drop down
The screen saver will be removed now
Click OK

Right Click Desktop --> Properties
Goto Screen Saver
Click on POWER
In Power schemes select NEVER in 'Turn Off Monitor'
In Power schemes select NEVER in 'Turn Off harddisk'
In Power schemes select NEVER in 'System stand by'
Click OK

Right Click Desktop --> Properties
Goto Hibernate
Remove click on 'ENABLE HIBERNATE'
Click OK

Thursday, June 5, 2014

How to use Monitor for locking functions

object locker = new object;

if (Monitor.TryEnter(locker))
            {

                try
                {
                   

                }
                catch (Exception ex)
                {

                    clsLogFile.toLogError(System.Reflection.MethodBase.GetCurrentMethod(), ex, 0);
                }
                finally
                {
                   
                    Monitor.Exit(locker );
                   

                }

            }