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


How to get schema changes on sql azure database using tsql?


How to get schema changes on sql azure database using tsql?

Author
Message
vsamantha35
vsamantha35
SSCertifiable
SSCertifiable (7.6K reputation)SSCertifiable (7.6K reputation)SSCertifiable (7.6K reputation)SSCertifiable (7.6K reputation)SSCertifiable (7.6K reputation)SSCertifiable (7.6K reputation)SSCertifiable (7.6K reputation)SSCertifiable (7.6K reputation)

Group: General Forum Members
Points: 7573 Visits: 1168
Hi All,

Need some help on SQL Azure db.

Environment:
select @@version
Microsoft SQL Azure (RTM) - 12.0.2000.8 Nov 17 2017 14:42:09 Copyright (C) 2017 Microsoft Corporation

How can I get Schema changes report on sql azure db? In ssms, when I right click the db->I dont see that report which tells me schema change history.If it is onPrem sql db, I used to right click -> reports - >standard reports -> Schema changes history and get all the changes done to the database.

Basically, I want to get a similar report if not SSMS GUI, can we get the same report using plain TSQL for azure db? Basically I wanted to check for schema changes between 2 dates which could have affected the database performance.

Thanks,

Sam
Grant Fritchey
Grant Fritchey
SSC Guru
SSC Guru (333K reputation)SSC Guru (333K reputation)SSC Guru (333K reputation)SSC Guru (333K reputation)SSC Guru (333K reputation)SSC Guru (333K reputation)SSC Guru (333K reputation)SSC Guru (333K reputation)

Group: General Forum Members
Points: 333600 Visits: 33962
That's not available in Azure SQL Database because you're not dealing with a server, which uses default trace to generate the report. Instead you're dealing with a database as a platform. It's just not the same as having a SQL Server instance. You can add tracking for that using Extended Events, however, it's on you to set it up, maintain it, create reports off of it. You'd be better using some kind of source control system to maintain & deploy schema changes to the database.

----------------------------------------------------
The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood...
Theodore Roosevelt

The Scary DBA
Author of: SQL Server Query Performance Tuning and SQL Server Execution Plans
Product Evangelist for Red Gate Software
vsamantha35
vsamantha35
SSCertifiable
SSCertifiable (7.6K reputation)SSCertifiable (7.6K reputation)SSCertifiable (7.6K reputation)SSCertifiable (7.6K reputation)SSCertifiable (7.6K reputation)SSCertifiable (7.6K reputation)SSCertifiable (7.6K reputation)SSCertifiable (7.6K reputation)

Group: General Forum Members
Points: 7573 Visits: 1168
Okay. Thanks Grant.
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