Commandline snapshot creation fails

Discussion of open issues, suggestions and bugs regarding database management and development tools for SQL Server
Post Reply
1234
Posts: 1
Joined: Mon 17 Nov 2014 13:31

Commandline snapshot creation fails

Post by 1234 » Mon 17 Nov 2014 13:34

I can successfully create a snapshot of our database from the GUI. However, when I try to do the same from the commandline, I get the following output:

Code: Select all

=== Snapshot creation started ===

Command line: /snapshot /connection:"Data Source=localhost;Integrated Security=True" /database:"DATABASE" /file:"E:\db_schema\DB.snap"


Describing objects...70%

Error: Object reference not set to an instance of an object.

=== Snapshot creation finished ===
The resulting snapshot file contains basically just a self-closing "snapshot" tag:

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<!-- Devart (www.devart.com), snapshot file -->
<!-- Modifying this generated file will probably render it invalid -->
<Snapshot />

alexa

Re: Commandline snapshot creation fails

Post by alexa » Mon 17 Nov 2014 14:40

Could you please navigate to the installation folder of dbForge (by default, %programfiles%\Devart\dbForge Studio for SQL Server) and send us the text file with the detailed error report?

Also, please provide us the following information:

1. Version of dbForge Studio for SQL Server.
2. Version of SQL Server.

You can send a reply straight to our support system at supportATdevartDOTcom

mish666uk
Posts: 2
Joined: Wed 19 Nov 2014 11:01

Re: Commandline snapshot creation fails

Post by mish666uk » Wed 19 Nov 2014 11:03

What is the correct syntax for generating a snapshot of a database from the command line?

mish666uk
Posts: 2
Joined: Wed 19 Nov 2014 11:01

Re: Commandline snapshot creation fails

Post by mish666uk » Wed 19 Nov 2014 11:25

I think I am suffering from the same problem using dbForge Schema Compare for SQL Server Professional Edition 4.0.27. I am not getting an error file in my installation directory. Command line I'm using is:

schemacompare /snapshot /connection:"Server=???;User ID=???;" /database:??? /password:??? /file:"C:\temp\snapshot.snap"

alexa

Re: Commandline snapshot creation fails

Post by alexa » Wed 19 Nov 2014 14:43

We will fix this issue in the next product build and will notify you once it's available for downloading.

Post Reply