Sql Schema Compare will not update after CLR object installed 'Source schema drift detected'

后端 未结 4 1476
臣服心动
臣服心动 2021-02-13 20:45

After installing a custom CLR object Sql Server Developer Tools (SSDT) VS2012 will not allow an update. The error is \"Source schema drift detected. Press Compare to refresh.

4条回答
  •  难免孤独
    2021-02-13 21:15

    This can happen when a db user "changes".

    The following rather scary forum page recounts issues where foreign hackers were trying to brute-force access to the "sa" db user, with each attempt changing the sa-user's date timestamp (which is seen as a schema drift):

    https://social.msdn.microsoft.com/Forums/sqlserver/en-US/5c22a7b4-7a82-4717-a118-2475bc62705b/schema-compareupdate-error-target-schema-drift-detected?forum=ssdt

    Here is also mentioned that you can query the sa-user a few times, to see if this is happening to you:

    SELECT * FROM sys.server_principals WHERE principal_id=1
    

    I am currently experiencing the same issue (that the sa-user is being modified; I know nothing about hackers yet) and am yet to find a solution.

    Edit - I turned on logging in Windows Firewall via properties > logging, and we setup a blocking rule on port 3071, which had a lot of unexplained traffic. Then the problem went away.

提交回复
热议问题