Tuesday, 14 November 2017
Monday, 13 November 2017
Sql Server Tricks
1. List All Stored Procedure Created and Modified in Last N Days | Text
Labels:
database,
db,
Sql,
Sql server,
Sql Server tricks,
Tricks
Sunday, 12 November 2017
How to Restore system in Windows 8
Sometimes we are getting with message preparing new windows while log on the system which is create the temporary windows and its takes long time to boot the system.
3. Click on System Protection in System window
6. Select One date which restore your computer to the state it was in before the selected date event and Click on Scan for affected programs
7. After clicking Scan for affected programs, it will shown what are programs(Applications) block this event and Click Close button
In that case, How to resolve the problem?
1. Go to My computer
2. Right click "My PC Name" and click on Properties and it going to "Control Panel\All Control Panel Items\System"
My computer window |
System window |
4. Click on System Restore under System protection tab
System Properties window |
5. Click Next on System Restore window
System restore window |
Event Date |
Note: Mostly, Anti-virus programs will block this event, So uninstall the Anti-virus before going this
8. Click Next
Affected programs list |
9. Click on Finish
It will take 20-30 minutes on booting system. Dont shut down during this activity.
Saturday, 28 October 2017
List All Stored Procedure Created and Modified in Last N Days
Find last N days created Stored procedures
Use the below code which is shown what are the stored procedure createdin last 'N' days
SELECT name
FROM sys.objects
WHERE type = 'P'
AND DATEDIFF(D,create_date, GETDATE()) < 7
Note: Change 7 to any other day value
List All Stored Procedure Created in Last N Days |
Find last N days modified Stored procedures
SELECT name
FROM sys.objects
WHERE type = 'P'
AND DATEDIFF(D,modify_date, GETDATE()) < 7
Note: Change 7 to any other day value
List All Stored Procedure Modified in Last N Days |
Subscribe to:
Posts (Atom)