use smo to clone azure SQL database? -


i'm writing program test update scripts azure sql. idea - first clone database (or fill clone source schema , content) - run update script on clone

locally have working, azure have probem don't see file names. if restore 1 database on same azure "server", don't have rename data files during restore too?

for local restore this:

restore.devices.adddevice(settings.backupfilename, devicetype.file); restore.relocatefiles.add(new relocatefile("<db>", path.combine(settings.datafiledirectory, settings.testdatabasename + ".mdf"))); restore.relocatefiles.add(new relocatefile("<db>_log", path.combine(settings.datafiledirectory, settings.testdatabasename + "_1.ldf"))); restore.sqlrestore(srv); 

is similar required cloning database on azure?

lots of greetings! volker

you can create database copy of [source]:

create database database_name [ collate collation_name ] | copy of [source_server_name].source_database_name  {    (<edition_options> [, ...n])  }  <edition_options> ::=  {       maxsize = { 100 mb | 500 mb | 1 | 5 | 10 | 20 | 30 … 150…500 } gb       | edition = { 'web' | 'business' | 'basic' | 'standard' | 'premium' }      | service_objective =            {  'basic' | 's0' | 's1' | 's2' | 's3'              | 'p1' | 'p2' | 'p3' | 'p4'| 'p6' | 'p11'              | { elastic_pool(name = <elastic_pool_name>) } }  } [;] 

Comments

Popular posts from this blog

javascript - Chart.js (Radar Chart) different scaleLineColor for each scaleLine -

apache - Error with PHP mail(): Multiple or malformed newlines found in additional_header -

java - Android – MapFragment overlay button shadow, just like MyLocation button -