How not to mess up a customers SQL database?

时间:2016-02-12 22:07:10

标签: sql-server security backup frontend

Next week I will create some simple select queries for PowerBI for a new customer who wants to have more insight in his business.

Until now I have only done this for our own company. I am afraid that by installing SQL Server Management Studio and building some queries in Management Studio I might (in a freak accident scenario) damage his database. I know this is unlikely.

However I do not really want to mess with his configuration. I also do not want to give him any ground to argument against me if anything unrelated does not work afterwards.

What would be a reasonable way to get my queries without really touching his database ? I thought of using a 3rd party frontend like Heidi SQL or FlySpeed SQL (even better because you cannot do admin tasks with it). I cannot just start with PowerBI because I need to analyze his DB first (scroll through tables etc).

Also I thought of making a backup of his DB first but that involves playing around with Management Studio.

Thanks in advance for any suggestions!

2 个答案:

答案 0 :(得分:1)

备份和恢复。然后使用备份作为开发系统,以便您可以解决错误,然后将您的应用程序或查询投入生产。

答案 1 :(得分:0)

结帐SSMS ToolsPack。它不会阻止您更新/删除某些行。但如果您在没有where子句的情况下运行更新/删除,则会发出警告。或者,如果您运行TRUNCATE或DROP TABLE语句。请参阅配置设置。还有窗户的颜色编码。

还有窗口连接着色 - 您可以根据服务器/数据库名称

为查询窗口着色

enter image description here