SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


views,tables,stored procedures are rolled back to previous versions


views,tables,stored procedures are rolled back to previous versions

Author
Message
adisql
adisql
Say Hey Kid
Say Hey Kid (684 reputation)Say Hey Kid (684 reputation)Say Hey Kid (684 reputation)Say Hey Kid (684 reputation)Say Hey Kid (684 reputation)Say Hey Kid (684 reputation)Say Hey Kid (684 reputation)Say Hey Kid (684 reputation)

Group: General Forum Members
Points: 684 Visits: 577
Hi,

I have observed that some of the views,tables,stored procedures are rolled back to previous versions .
Need to find how those objects modified.
any suggestions please.


Thanks.
GilaMonster
GilaMonster
SSC Guru
SSC Guru (670K reputation)SSC Guru (670K reputation)SSC Guru (670K reputation)SSC Guru (670K reputation)SSC Guru (670K reputation)SSC Guru (670K reputation)SSC Guru (670K reputation)SSC Guru (670K reputation)

Group: General Forum Members
Points: 670816 Visits: 48432
Either the database was restored to an earlier version, or someone ran ALTER scripts (or DROP & CREATE) on all of the affected objects.

Check restore history, check the default trace, ask your colleagues who changed things.

Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

We walk in the dark places no others will enter
We stand on the bridge and no one may pass


adisql
adisql
Say Hey Kid
Say Hey Kid (684 reputation)Say Hey Kid (684 reputation)Say Hey Kid (684 reputation)Say Hey Kid (684 reputation)Say Hey Kid (684 reputation)Say Hey Kid (684 reputation)Say Hey Kid (684 reputation)Say Hey Kid (684 reputation)

Group: General Forum Members
Points: 684 Visits: 577
verified restore history that it is blank as it is production server.

and i have verified In SSMS, right click on Server Name, choose Reports / Standard Reports / Schema Changes History. there i could see some objets modifed with some login name,but those users are not modified those objects manually.
GilaMonster
GilaMonster
SSC Guru
SSC Guru (670K reputation)SSC Guru (670K reputation)SSC Guru (670K reputation)SSC Guru (670K reputation)SSC Guru (670K reputation)SSC Guru (670K reputation)SSC Guru (670K reputation)SSC Guru (670K reputation)

Group: General Forum Members
Points: 670816 Visits: 48432
Default trace doesn't go back far. It's not a full history.

Still, SQL doesn't revert changes. If the objects are an older version, either someone reverted them, or you're looking at the wrong server.

Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

We walk in the dark places no others will enter
We stand on the bridge and no one may pass


adisql
adisql
Say Hey Kid
Say Hey Kid (684 reputation)Say Hey Kid (684 reputation)Say Hey Kid (684 reputation)Say Hey Kid (684 reputation)Say Hey Kid (684 reputation)Say Hey Kid (684 reputation)Say Hey Kid (684 reputation)Say Hey Kid (684 reputation)

Group: General Forum Members
Points: 684 Visits: 577
default trace is enabled.
Lynn Pettis
Lynn Pettis
SSC Guru
SSC Guru (272K reputation)SSC Guru (272K reputation)SSC Guru (272K reputation)SSC Guru (272K reputation)SSC Guru (272K reputation)SSC Guru (272K reputation)SSC Guru (272K reputation)SSC Guru (272K reputation)

Group: General Forum Members
Points: 272331 Visits: 41190
adisql - Thursday, December 21, 2017 2:29 PM
verified restore history that it is blank as it is production server.

and i have verified In SSMS, right click on Server Name, choose Reports / Standard Reports / Schema Changes History. there i could see some objets modifed with some login name,but those users are not modified those objects manually.


Lost me at the end.

Cool
Lynn Pettis

For better assistance in answering your questions, click here
For tips to get better help with Performance Problems, click here
For Running Totals and its variations, click here or when working with partitioned tables
For more about Tally Tables, click here
For more about Cross Tabs and Pivots, click here and here
Managing Transaction Logs

SQL Musings from the Desert Fountain Valley SQL (My Mirror Blog)
GilaMonster
GilaMonster
SSC Guru
SSC Guru (670K reputation)SSC Guru (670K reputation)SSC Guru (670K reputation)SSC Guru (670K reputation)SSC Guru (670K reputation)SSC Guru (670K reputation)SSC Guru (670K reputation)SSC Guru (670K reputation)

Group: General Forum Members
Points: 670816 Visits: 48432
adisql - Thursday, December 21, 2017 2:37 PM
default trace is enabled.


Well, obviously it is, or the report you mentioned above would have returned no data, since it pulls from the default trace.

Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

We walk in the dark places no others will enter
We stand on the bridge and no one may pass


adisql
adisql
Say Hey Kid
Say Hey Kid (684 reputation)Say Hey Kid (684 reputation)Say Hey Kid (684 reputation)Say Hey Kid (684 reputation)Say Hey Kid (684 reputation)Say Hey Kid (684 reputation)Say Hey Kid (684 reputation)Say Hey Kid (684 reputation)

Group: General Forum Members
Points: 684 Visits: 577
its returned data. and we are trying to find how those objects modified .
Sue_H
Sue_H
SSC-Forever
SSC-Forever (41K reputation)SSC-Forever (41K reputation)SSC-Forever (41K reputation)SSC-Forever (41K reputation)SSC-Forever (41K reputation)SSC-Forever (41K reputation)SSC-Forever (41K reputation)SSC-Forever (41K reputation)

Group: General Forum Members
Points: 41580 Visits: 11523
adisql - Thursday, December 21, 2017 2:37 PM
default trace is enabled.


It doesn't go back that far even if it is enabled.
sys.objects has create and modified dates and times. Check the dates and times for the objects in question to help narrow things down.

Sue



GilaMonster
GilaMonster
SSC Guru
SSC Guru (670K reputation)SSC Guru (670K reputation)SSC Guru (670K reputation)SSC Guru (670K reputation)SSC Guru (670K reputation)SSC Guru (670K reputation)SSC Guru (670K reputation)SSC Guru (670K reputation)

Group: General Forum Members
Points: 670816 Visits: 48432
adisql - Thursday, December 21, 2017 2:42 PM
its returned data. and we are trying to find how those objects modified .


Yes, it will, but it doesn't go back far. It's not a full history.

If the changes aren't in the default trace, and you don't have custom monitoring or audits, then you will not be able to tell who made these changes.
It's possible to narrow down the list of potential culprits. SQL doesn't revert changes by itself, so if the objects are an older version, either someone reverted them, or you're looking at the wrong server, and if someone did so, then they'd need permissions to modify the objects, which should eliminate most of your users. Ask the other admins and devs.

Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

We walk in the dark places no others will enter
We stand on the bridge and no one may pass


Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum








































































































































































SQLServerCentral


Search