Please be aware that the content in SAP SQL Anywhere Forum will be migrated to the SAP Community in June and this forum will be retired.

How do I copy the schema of an existing database into a brand new database without copying the data ? (so not dbunload -an )

Thanks

Mark

asked 12 Nov '18, 05:40

ThelmaCottage's gravatar image

ThelmaCottage
141131420
accept rate: 0%


You want -n "Does not unload database data; reload.sql contains SQL statements to build the structure of the database only. If you want the reload.sql file to contain LOAD TABLE or INPUT statements, use -nl instead. "

Then create a new database, connect to it and run the reload.sql script.

http://dcx.sybase.com/index.html#sa160/en/dbadmin/dbunload.html

BTW it's always worth saying which version of SQLA you are running.

permanent link

answered 12 Nov '18, 07:26

Justin%20Willey's gravatar image

Justin Willey
7.6k137179249
accept rate: 20%

Just to add:

The initial section of the "reload.sql" file contains a comment with an according CREATE DATABASE statement you can use to build the new database with appropriate settings for page size, collations and the like.

(12 Nov '18, 07:36) Volker Barth
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×52
×25

question asked: 12 Nov '18, 05:40

question was seen: 1,351 times

last updated: 12 Nov '18, 07:36