AXForum  
Вернуться   AXForum > Microsoft Dynamics CRM > Dynamics CRM: Blogs
All
Забыли пароль?
Зарегистрироваться Правила Справка Пользователи Сообщения за день Поиск

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 17.05.2011, 21:11   #1  
Blog bot is offline
Blog bot
Участник
 
25,475 / 846 (79) +++++++
Регистрация: 28.10.2006
Danny Varghese: Latest Changes Made To SQL Database
Источник: http://varghesedanny.com/2011/02/21/...-sql-database/
==============

I’ve recently had to debug a stored procedure in which I remembered how the procedure functioned, but completely forgot the name.  I did know that the procedure was edited recently, so I needed to track this down somehow.  Lucky for me, there’s a quick SQL query one can run to determine all changes made to a database in the last “X” number of days:

SELECT * FROM sys.objects WHERE DATEDIFF(D,modify_date, GETDATE()) < X

You can copy/paste this query and execute, replacing the “X” with any number of days.  You can also add conditions into the query to filter on type.  For example, say you want changes only made to system tables, or changes made to functions, you can add a condition statement filtering by “type.”  Hope someone finds this as useful as I did!




Источник: http://varghesedanny.com/2011/02/21/...-sql-database/
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
CRM DE LA CREME! CRM 4.0 Disaster Recovery Blog bot Dynamics CRM: Blogs 2 26.02.2016 08:23
emeadaxsupport: Checking Database entries after restoring a Microsoft Dynamics 2009 SQL Database to another Domain or Environment Blog bot DAX Blogs 0 18.02.2010 23:05
AX 2009 Technical Journal: Short note on AX and database mirroring in SQL Server 2008 Blog bot DAX Blogs 0 04.02.2010 06:10
Microsoft Dynamics CRM Team Blog: Accessing a SQL Database from a Microsoft Dynamics CRM Plug-in Blog bot Dynamics CRM: Blogs 0 14.07.2008 13:05

Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.
Быстрый переход

Рейтинг@Mail.ru
Часовой пояс GMT +3, время: 09:21.
Powered by vBulletin® v3.8.5. Перевод: zCarot
Контактная информация, Реклама.