Red Gate forums :: View topic - SQL Compare Comandline Database information
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
SQL Compare 10
SQL Compare 10 forum

SQL Compare Comandline Database information

Search in SQL Compare 10 forum
Post new topic   Reply to topic
Jump to:  
Author Message
JDS44



Joined: 20 Sep 2013
Posts: 5

PostPosted: Fri Sep 20, 2013 10:54 pm    Post subject: SQL Compare Comandline Database information Reply with quote

Is there anyway to get the database settings from the script generation through the command line interface similar to this?

USE [master]
GO
/****** Object: Database [DATABASE1] ******/
CREATE DATABASE [DATABASE1] ON PRIMARY
( NAME = N'DATABASE1', FILENAME = N'D:\SQLData\DATABASE1.mdf' , SIZE = 32182656KB , MAXSIZE = UNLIMITED, FILEGROWTH = 512000KB )
LOG ON
( NAME = N'DATABASE1_log', FILENAME = N'D:\SQLData\DATABASE1.ldf' , SIZE = 10369024KB , MAXSIZE = 2048GB , FILEGROWTH = 512000KB )
GO
ALTER DATABASE [DATABASE1] SET COMPATIBILITY_LEVEL = 100
GO
IF (1 = FULLTEXTSERVICEPROPERTY('IsFullTextInstalled'))
begin
EXEC [DATABASE1].[dbo].[sp_fulltext_database] @action = 'disable'
end
GO
ALTER DATABASE [DATABASE1] SET ANSI_NULL_DEFAULT OFF
GO
ALTER DATABASE [DATABASE1] SET ANSI_NULLS OFF
GO
ALTER DATABASE [DATABASE1] SET ANSI_PADDING OFF
GO
ALTER DATABASE [DATABASE1] SET ANSI_WARNINGS OFF
GO
ALTER DATABASE [DATABASE1] SET ARITHABORT OFF
GO
ALTER DATABASE [DATABASE1] SET AUTO_CLOSE OFF
GO
ALTER DATABASE [DATABASE1] SET AUTO_CREATE_STATISTICS ON
GO
ALTER DATABASE [DATABASE1] SET AUTO_SHRINK OFF
GO
ALTER DATABASE [DATABASE1] SET AUTO_UPDATE_STATISTICS ON
GO
ALTER DATABASE [DATABASE1] SET CURSOR_CLOSE_ON_COMMIT OFF
GO
ALTER DATABASE [DATABASE1] SET CURSOR_DEFAULT GLOBAL
GO
ALTER DATABASE [DATABASE1] SET CONCAT_NULL_YIELDS_NULL OFF
GO
ALTER DATABASE [DATABASE1] SET NUMERIC_ROUNDABORT OFF
GO
ALTER DATABASE [DATABASE1] SET QUOTED_IDENTIFIER OFF
GO
ALTER DATABASE [DATABASE1] SET RECURSIVE_TRIGGERS OFF
GO
ALTER DATABASE [DATABASE1] SET DISABLE_BROKER
GO
ALTER DATABASE [DATABASE1] SET AUTO_UPDATE_STATISTICS_ASYNC OFF
GO
ALTER DATABASE [DATABASE1] SET DATE_CORRELATION_OPTIMIZATION OFF
GO
ALTER DATABASE [DATABASE1] SET TRUSTWORTHY OFF
GO
ALTER DATABASE [DATABASE1] SET ALLOW_SNAPSHOT_ISOLATION OFF
GO
ALTER DATABASE [DATABASE1] SET PARAMETERIZATION SIMPLE
GO
ALTER DATABASE [DATABASE1] SET READ_COMMITTED_SNAPSHOT OFF
GO
ALTER DATABASE [DATABASE1] SET HONOR_BROKER_PRIORITY OFF
GO
ALTER DATABASE [DATABASE1] SET READ_WRITE
GO
ALTER DATABASE [DATABASE1] SET RECOVERY FULL
GO
ALTER DATABASE [DATABASE1] SET MULTI_USER
GO
ALTER DATABASE [DATABASE1] SET PAGE_VERIFY CHECKSUM
GO
ALTER DATABASE [DATABASE1] SET DB_CHAINING OFF
GO
EXEC sys.sp_db_vardecimal_storage_format N'DATABASE1', N'ON'
GO
Back to top
View user's profile Send private message
Brian Donahue



Joined: 23 Aug 2004
Posts: 6678

PostPosted: Mon Sep 23, 2013 11:11 am    Post subject: Reply with quote

If the question is, how can you get SQL Compare to output a list of database creation options, SQL Compare doesn't compare and script these options. SQL Server Management studio does, when you tell it to script the database...
Back to top
View user's profile Send private message
JDS44



Joined: 20 Sep 2013
Posts: 5

PostPosted: Wed Sep 25, 2013 12:39 am    Post subject: Reply with quote

I am using the command line interface to capture the files to check into my version control. I was hoping to automate that.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group