Schema Compare SqlDatabaseOptions Timeout

Have a small Azure SQL DB (handful of tables and stored procs) that I been able to successfully import into Visual Studio 2013 as a DB project, and all the objects (tables and procs) do get imported properly. But when trying to do a comparison
using Schema Compare tool between my project and the Azure SQL, I keep receiving an error message:
"An error was received from SQL Server while attempting to reverse engineer elements of type Microsoft.Data.Tools.Schema.Sql.SchemaModel.SqlDatabaseOptions: Timeout expired."
I have set my DB project property for target DB to Azure SQL Database, but it does nothing to solve the problem. I have also set that only tables and stored procedures are compared.
I am not sure what am I missing here. Will note that I am using the new DB tier on Azure, but I don't think that makes a difference. My best guess it that my permissions are not set right, but it puzzles me that I was able to import the Azure SQL DB into
the project initially without a problem, where a schema model had to be looked up.

Hi Hrovje Maric,
In theory, the new Schema Compare and Data Compare features in Visual Studio 2013 supports SQL Server and Windows Azure databases. Usually, when you want to compare your working database project with the database, you can use the schema compare by right
clicking on your database project and selecting Schema Compare. However, according to your description, the timeout error occurs when you using schema compare. We need to check if your login have permission to view definition. Or if the database which be used
for schema compare was restored from backups of other place, the users in the databases may lose their SID, you need to delete the database users and recreate them and then restart the schema comparison again.
In addition, you can try to increase the query timeout allowed on the connection. In the Windows Registry, search the key "QueryTimeoutSeconds" and increase the value from 60 to 360 and try to use the schema compare and check if the timeouts error will disappear
Visual Studio 2013.
For more information, there is detail about Schema Compare for SQL Server in Visual Studio 2013, 
you can review the following article.
http://www.techbubbles.com/sql-server/schema-compare-for-sql-server-in-visual-studio-2013/
Regards,
Sofiya Li
Sofiya Li
TechNet Community Support

Similar Messages

  • SSDT Schema Compare keeps showing the same objects as different..

    Hi, 
    When comparing a database to my project using Visual Studio 2012 SSDT I get several stored procedures marked as changed. The body of the procedures is identical, but two properties are highlighted as different when expanding the object:
    IsSelf (false on the DB vs true on the project) and User  (dbo on the DB, needs to be added to the project).
    The procedures have the option "with execute as self" both in the database and in the project as part of the body.
    I have not found what needs to be done so these differences are applied to the project and never appear again. Tried changing some options on the schema compare but didn't found one that help. 
    Some forum suggested dropping the objects and re-creating them but I don't want to loose the history of changes on TFS.
    Any suggestions? 

    Hi Daniel,
    Since you have posted this issue to the SSDT forum here:
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/5c9c5c47-64ac-4af4-9104-c9500dc8cf52/ssdt-schema-compare-keeps-showing-the-same-objects-as-different?forum=ssdt#5c9c5c47-64ac-4af4-9104-c9500dc8cf52
    I will move this thread to the Off-topic forum, thanks for your understanding.
    Sincerely,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Database Project Schema Compare Source Control to target database Not working

    I am trying to use the schema compare feature of database project / TFS.  I don't understand why it is trying to DELETE a stored procedure that exists in TFS.
    The Degenerate Dimension

    Hi MM,  
    Thanks for  your post.
    If you open this solution from a local folder(not stored in TFS), and try to compare that same file, what’s the result? We need confirm this issue relate to VS Schema Compare tool or relate to TFS Source Control first.
    http://blogs.msdn.com/b/ssdt/archive/2012/03/23/schema-compare-improvements.aspx
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • SQL Server Data Tools : Schema Compare

    I have my SQL 2012 installed and also its' tools like management studio, visio studio shell 2010
    I know there is a function inside visio studio shell call "schema compare"
    how to enable/install this function ? extra license is required ?

    You can download SSDT(SQL Server Data Tools), install it. Then you can use it without extra license:
    Download SQL Server Data Tools
    more info plus tutorials:
    Microsoft SQL Server Data Tools
    T-SQL Articles
    T-SQL e-book by TechNet Wiki Community
    T-SQL blog

  • How to suppress compiler errors without excluding database objects from the "Schema Compare" tool (using VS2013/SSDT)

    Hi,
    In short: How to suppress compiler errors without excluding the object from the "Schema Compare" tool ??
    A bit longer:
    We have a SQL Server 2008 project in Visual Studio 2013 running SQL Server Data Tool.
    An old database, with a lot of history in, has been imported into SSDT and there are many syntax errors preventing the project from compiling/running. An typical error is: "SQL70001: This statement is not recognized in this context".
    Running the "faulty" scripts on the server, executes just fine. I understand that there are syntax errors and they should be rewritten, but it's not gonna happen just like that - it is a slow process over a long period of time.
    I know it is possible to change Build Action to None, but that also exclude the object from appearing in the Schema Compare function/window.
    So - how to ignore some compiler errors and still having the objects to appear when doing "Schema Compare" ??
    Thank you in advance.

    Hi Steven,
    Thanks for your comments.
    Well, it sure does help in the future, but right now i would prefer the other way - to suppress some errors and still allow the scripts to build.
    The thing is that if we "rewrite" the objects into create scripts, then we have a huge test job ahead of us + the database environments (PROD vs DEV and UAT) does not share the same AD or DB users and therefore grants is lost if dropping/creating
    objects, right!
    If you drop a object before creating it, the drop will also drop the roles and grants and since they don't share user table, the create will not be able to add the permissions again. There might be a solution to that, but it is going to be very complicated
    for some newbies like us. We need something we can trust.
    BR
    Peter

  • Schema compare tool seems to do nothing - at least not to compare schemas.

    Hello,
    (Version: complete zip-download from today)
    the Schema compare tool seems to do nothing - at least not to compare schemas.
    I can choose a source an a target schema, but when I press the action button (in german the descripton is "Anwenden") nothing happens.
    For every single click on that button a windows appears for the fraction of a second with the header text "Performing Diff".
    And that's all ...
    Regards
    Andre
    hmm...,
    OK, seems I have to reword my first posting:
    Did anyone ever managed the Schema-Diff-Tool to compare Schema(s)/Object(s) in the past?
    Regards
    Andre
    Message was edited by:
    andreml

    Andre,
    If you do not check the check box for individual objects on the Source tab, but just check the high level "TABLES" checkbox, then nothing is selected. Which is why no report runs. There is nothing to compare. This is a known bug. This means that if you only check the high level check boxes and then move to the destination tab, nothing is effectively selected.
    The work around is to expand the nodes. Then, by just by expanding the nodes, all the objects are selected. You can then move to the Destination tab and select the schema you wish to compare. To see the syntax, select the Apply button on the Results tab.
    We are aware the Schema Diff is not fully functional and have many a debate about removing it from the product until it's ready. But there are those who are using it, and so it remains. We will be redoing the UI and feature support for our next release, together with Schema Copy. (See the updated Statement of Direction for more)
    Regards
    Sue

  • Export Schema Compare to HTML Report

    I've downloaded and installed the latest SQL Server Data Tools for VS 2012.  Is there anyway to export the results of the schema comparison into a report in CSV/Html format?  I understand that it can generate the sql diff script, but I want a
    readable report that I can use to show to people.

    Hi Sean, I think you'll be interested in the recent blog post covering how to generate schema comparison results using MSBuild. This is a command line tool but it supports saving results to a file and event using a custom XSD to define the report contents
    if the defaults aren't what you want. The blog post is at 
    http://blogs.msdn.com/b/ssdt/archive/2014/07/15/msbuild-support-for-schema-compare-is-available.aspx
    I believe this will cover your requirements. Regards,
    Kevin

  • Schema compare between 2 databases from different server

    Let me know the method for comparing schema between 2 databases from different server of SQL 2012 and sending that in mail.

    Check redgate:
    Compare SQL Server schemas and deploy differences
    Kalman Toth Database & OLAP Architect
    SQL Server 2014 Database Design
    New Book / Kindle: Beginner Database Design & SQL Programming Using Microsoft SQL Server 2014

  • SSDT Schema Compare puts objects in the root of project instead of the correct schema

    Hello,
    Since last week I encountered a problem when synchronizing my database project with a database.
    When I try to sync new objects (tables / sp's / views) the *.sql scripts are put in the root of my project directory instead of the directory with corresponding schema (schema folder already exists!). Every time after I do a sync I have to manually put all
    the scripts in the right folders. 
    I have a SQL Server 2014 Project in VS 2013 (update 4).
    Version 12.0.31101.00
    SSDT 12.0.41025.0
    .NET Framework 4.5.50938
    I haven't had a VS update since the last release in November. Can this be caused by Windows Updates? 
    Anyone else with this problem?
    Mohsine

    I think this is "one of those things".
    When you initially create a project by importing objects from an existing database you have a couple of options for project layout; schema/object type or object type only.
    When adding new objects, I don't think there's any way to tell SSDT where in the project you want these located.
    However, it is possible to drag and drop objects from the SQL Server Object Explorer into folders in solution explorer - with no guarantees that this won't break your build in the event that the "dragged in" object references other objects not
    present in the project. As far as I'm aware, this capability is not documented anywhere!
    You might want to think about your wider workflow; would it not be easier to create objects directly in the project rather than creating in SSMS (for example) and subsequently importing?
    http://xkcd.com/979/

  • Requesting guidance on how best to deal with removal of CreateElementSteps for tables when option to 'script validation for new constraints' is enabled during schema compare

    I have a DeploymentPlanModifer subclass that is responsible for removing certain tables from a deployment plan under specific conditions. It is relatively trivial to find the
    CreateElementSteps I need and subsequently remove them via
    DeploymentPlanModifier.Remove(), but...
    ... if in my comparison I have enabled the 'Script validation for new constraints' option, the deployment plan will contain a
    DeploymentScriptDomStep with a Batch containing AlterTableConstraintModificationStatements for tables with foreign key constraints. My problem starts here - there will be an orphaned
    AlterTableConstraintModificationStatement for each of the tables that I removed. Obviously, execution of the generated script comes to a grinding halt when asking SQL Server to to alter a table that is never created.
    I'm able to get around this by digging around in the aforementioned batches and removing the orphaned alter statements, but this seems really hacky, which makes me think I'm missing the proper way of dealing with this.
    So... if anyone is aware of a more correct way of avoiding this problem, I would really appreciate finding out more about it.
    Thanks in advance for any help. :-)

    Hi Greg. Unfortunately there is not an easy solution here. Walking the deployment model, spotting potential issues and excluding them really is what you have as an option here. The alternative is to pre-process the dacpac to have it in the form you want,
    but I'm not sure if this is an option in your case and it also has limitations.
    Regards,
    Kevin

  • How to compare schema (offline) ?

    Hi all,
    We have requirement to compare two schema in different location: one is in the server in our office, and the other is one in client site. So this is offline comparation.
    What tools can we use for this ?
    Thank you for any help,
    xtanto

    What do you mean by offline schema compare?
    You can get an export of schema from your client end and dump the same in a dummy database/user at your office and carry out schema comparison with the copy that you have.
    You can use various tools like CA ERwin, TOAD. There are some free/open source schema compare tools available.

  • How can i compare tables of same type and in different schemas

    Hi all,
    i have one table "employee" in schema 'Master'.
    And i have the same table +(total structure is same as master schema employee table with some additional columns).+ in Audit schema.
    So, when i do update or delete on the "master.employee" table the previous record (entire record) will go into
    "Audit.employee" table, and my "master.employee" table is having the existing record.
    So now, i want to generate one excel report containing or comparing the existing record from master and previous record from Audit. And my Input fields are " schema_name " and "Table_name".
    Ex. i will give masters.employee.
    So it has to search the same table in Audit schema compare the values and generate output.

    Hello,
    Here is the Oracle Forms forum, and your question has really nothing to do with this product.
    Please, send this kind of question in the database forum, you would increase your chances to get the appropriate answer.
    Francois

  • Unable to perform database compare

    Recently, not since three or four days, we have been facing an issue when trying to compare within visual studio 2013 on a database project. The compare screen loads up but I'm not able to select source or target. Nothing happens if I click the target combo
    and select "Select target...". Sa for source. I tried using the menu bar's "SQL" with the compare screen open and tries "Select Target" from there only to be presented with a error message: An item with the same key has already
    been added. Same behaviour on source.
    We tried reading the logs of visual studio, searched all over internet and got suggestion to update SSDT but thats not really an option as the search results are from 2011/2012 and those update don't exists or apply to VS2013.
    We did more testing:
    A stand-alone new solution with new DB projects works fine
    Loading our DB project directly into a new solution works fine
    Our full solution 'A' fails.
    Other of our solutions 'B' and 'C' also fails
    Couldn't find anything in the solution file that could prevent comparing.
    Anyone facing/had similar issues?
    Regards, Hassan Gulzar

    Hi Hassan,
    We will have an update for SSDT in VS 2013 early next week for you to install, but this issue doesn't sound familiar.  We did have a schema compare bug where we had odd behavior if you had your DPI set at 125%+, but that was fixed for VS 2013 RTM. 
    Are you on VS2013 RTM with the SSDT that came as part of that install?
    To help us debug, can you please turn on tracing and send me your logs.  jillth @ Microsoft .com
    For diagnostic purposes we would like you to gather an event log for the issue that
    you are experiencing in SSDT. In order to gather a log and send it to a member
    of the team, please follow the steps below.
    Open a new command prompt as Administrator.
    Run the following command
    logman create trace -n DacFxDebug -p "Microsoft-SQLServerDataTools" 0x800 -o "%LOCALAPPDATA%\DacFxDebug.etl" -ets
    logman create trace -n SSDTDebug -p "Microsoft-SQLServerDataToolsVS" 0x800 -o "%LOCALAPPDATA%\SSDTDebug.etl" -ets
    Run whatever the target/issue scenario is in SSDT.
    Go back to the command prompt and run the following commands
    logman stop DacFxDebug -ets
    logman stop SSDTDebug -ets
    The resulting ETL files will be located at %LOCALAPPDATA%\SSDTDebug.etl &  %LOCALAPPDATA%\DacFxDebug.etl
    and can be navigated to using Windows Explorer.
    Please attach this file to an email and send it to the SSDT team member you have been working with
    NOTE - These logs will only be used by Microsoft product team members in order to better diagnose the problem you are experiencing with SSDT and
    will not be shared elsewhere. If you want to make
    sure that there is no private information in your ETL file, the SSDTDebug.etl file can be opened and analyzed using the Windows Event Viewer.
    To do this, open the Windows Event Viewer application. In the right-hand panel,
    select Open Saved Log. Navigate to the location where you saved the log, open,
    and review the contents of the trace.

  • Look up Schema

    Dear OTN members,
    I want to set up a schema which would contain the defined set of objects such as tables, views and synonyms. At the end of the day i need to generate report against several other schemas compared on par with my master schema and do a kind of synch check and list the differences in my report, especially like column width changes, addition of constrainsts, dropping of columns/constraints. As the schemas which are gonna be compared are set up for development and research kind of activiities, i would like to do the above activity. Please help me with concepts or ideas to get this done.
    Regards,
    Vivek

    Here is one which i tried to report tablesCongratulations. Does that mean you've answered your own question? All PL/SQL Developer etc do is provide a nice GUI over a more complete set of those queries.
    Cheers, APC

  • Generating schema upgrade scripts

    On our project we're currently using Apache Torque Generator to create schema installation scripts for Oracle, MS SQL Server and DB2 with great success. However, making alterations to the schema and capturing these alterations in patch scripts is still a very manual process.
    Does anyone know of any open source tools that can help with this task? Either by automatically generating the patch scripts (based on comparison of two schemas), or by using some other means of upgrading (such as a java process that runs and makes changes programmatically). The scripts generated (or process run) would ideally be idempotent.
    Cheers,
    Joe

    Take a look at TOAD -quest software-.
    There is a Free edition abvailable where you can do a schema compare from which TOAD generates the SQL.
    I only use it for Oracle, never looked into using it for MySQL or DB2 so don't know about that.
    Message was edited by:
    mTeigeler

Maybe you are looking for