How can we help you today? How can we help you today?
Chris Auckland
Thanks for your post. Normally we see this kind of error due to some form of schema corruption. Often it turns out to be down to an object not having an owner, hence the NULL returned. However, this is not always the case. The first thing to check is that the account you are using has permissions to retrieve all the meta data for the schema. Using a sysadmin account should prove if this is the problem or not. You could then rerun the project and see where it fails. It should say the point at which the registration fails, e.g. "Reading Views". This might help you to track down the problem object. If this doesn't help, you can run a SQL Server Profiler Trace and catch the exact query that causes SQL Compare to fail (usually the last query in the trace for 'SQL Tools'). If you run this query manually through SQL Server, the results returned should contain enough information to find out which object has caused the problem. If you have not run a trace before, here is some information on how to do it: http://www.red-gate.com/supportcenter/G ... 000082.htm Feel free to send me the query and the results if you need me to investigate this further. A screenshot of the SQL Compare error would also be useful. / comments
Thanks for your post. Normally we see this kind of error due to some form of schema corruption. Often it turns out to be down to an object not having an owner, hence the NULL returned. However, thi...
0 votes
Thanks for your post. I'll attempt to answer each of your questions in turn: 1. As long as you can connect to the remote SQL Server, you will only need to have SQL Compare installed on your workstation. If you can connect to the SQL Server using SSMS or EM then you shouldn't have any problems connecting with SQL Compare. If you would like to automate the creation of snapshots, or synchronisation of the schemas you can use the SQL Compare command line interface. As long as you have permission to connect to the SQL Server you will be able to create a batch file to automate the process on your workstation. See: http://www.red-gate.com/supportcenter/C ... %5c456.htm 2. The licensing for SQL Compare works on a per-user basis. This means that as long as you are the only person using the license, you can install it wherever you need to. However, in your situation I think you would just need to install it on your workstation and remotely connect to the SQL Servers. 3. This is indeed a permissions issue. In some circumstances a user might not have the permissions to view object definitions, this will cause the symptoms you reported. You should be able to fix it by granting VIEW DEFINITION for the user on the database. Hopefully this should resolve the problem. Please see the following article regarding minimum permissions required for using SQL Compare: http://www.red-gate.com/supportcenter/C ... 000072.htm I hope this information is helpful. Let me know if you need anything further. / comments
Thanks for your post. I'll attempt to answer each of your questions in turn: 1. As long as you can connect to the remote SQL Server, you will only need to have SQL Compare installed on your worksta...
0 votes