{"id":6416,"date":"2015-12-04T13:49:31","date_gmt":"2015-12-04T12:49:31","guid":{"rendered":"https:\/\/www.dbi-services.com\/blog\/manipulate-stretch-database-feature-by-script\/"},"modified":"2015-12-04T13:49:31","modified_gmt":"2015-12-04T12:49:31","slug":"manipulate-stretch-database-feature-by-script","status":"publish","type":"post","link":"https:\/\/www.dbi-services.com\/blog\/manipulate-stretch-database-feature-by-script\/","title":{"rendered":"Manipulate Stretch database feature by script"},"content":{"rendered":"<p>On November 30th, I presented the Stretch Database feature in \u201cLes Journ\u00e9es SQL Server 2015\u201d in Paris. I explained how to manage by script this new feature in SQL Server 2016 CTP 3.0<br \/>\nI decided to share you my demonstration into a blog.<\/p>\n<p>&nbsp;<\/p>\n<h3>I &#8211; Enabling the feature at the instance level<\/h3>\n<p>First, you need to enable the \u201cRemote Data Archive\u201d option at the instance level.<br \/>\nTo check if the options is enabled:<\/p>\n<pre class=\"brush: sql; gutter: false; first-line: 1\">sp_configure 'REMOTE DATA ARCHIVE';\nGO<\/pre>\n<p>&nbsp;<\/p>\n<p>As it returns a \u201crun-value\u201d set to \u201c0\u201d, I need to enable the option as follows:<\/p>\n<pre class=\"brush: sql; gutter: false; first-line: 1\">sp_configure 'remote data archive', '1';\nRECONFIGURE\nGO<\/pre>\n<p>&nbsp;<\/p>\n<h3>II &#8211; Enabling the feature at the database level<\/h3>\n<p>I create a database named \u201cStretch_DB\u201d for this demonstration:<\/p>\n<p>By default, the feature is obviously disabled for my database:<\/p>\n<pre class=\"brush: sql; gutter: false; first-line: 1\">SELECT is_remote_data_archive_enabled FROM sys.databases WHERE name = 'Stretch_DB';<\/pre>\n<p>During the activation process of the feature, I need to link my local database to Azure. So I have to create a SQL Database server. I will not detail this creation in this blog because you can find several sources on the web describing how to do (cf. <a href=\"http:\/\/sqlmag.com\/sql-server\/getting-started-azure-sql-database-v12\" target=\"_blank\" rel=\"noopener\">Getting Started with Azure SQL Database v12<\/a>).<\/p>\n<p>Do not forget to configure the remote firewall to accept the connection of the local SQL Server instance.<\/p>\n<p>To access to the remote SQL Database server, I also need to use the Server Admin Login (provided during the SQL Database server creation step).<\/p>\n<p>&nbsp;<\/p>\n<p>So I create the credential on my local instance:<\/p>\n<pre class=\"brush: sql; gutter: false; first-line: 1\">USE Stretch_DB;\nGO\nCREATE MASTER KEY ENCRYPTION BY PASSWORD = 'pa$$w0rd';\nCREATE DATABASE SCOPED CREDENTIAL StretchCred WITH IDENTITY = 'myLogin', SECRET = 'myPa$$w0rd';\nGO<\/pre>\n<p>And I link my local database to my remote server:<\/p>\n<pre class=\"brush: sql; gutter: false; first-line: 1\">ALTER DATABASE STRETCH_DB\n    SET REMOTE_DATA_ARCHIVE = ON ( SERVER = 'JSS.DATABASE.WINDOWS.NET' , CREDENTIAL = STRETCHCRED ) ;\nGO<\/pre>\n<p>&nbsp;<\/p>\n<p>I can check that my feature is enabled for my database:<\/p>\n<pre class=\"brush: sql; gutter: false; first-line: 1\">SELECT IS_REMOTE_DATA_ARCHIVE_ENABLED FROM SYS.DATABASES\n    WHERE NAME = 'STRETCH_DB';\nGO<\/pre>\n<p>&nbsp;<\/p>\n<p>Also, I can see my remote database created in Azure:<\/p>\n<pre class=\"brush: sql; gutter: false; first-line: 1\">SELECT * FROM SYS.REMOTE_DATA_ARCHIVE_DATABASES<\/pre>\n<p>&nbsp;<\/p>\n<h3>III &#8211; Enabling the feature at the table level<\/h3>\n<p>I create a table named \u201cERRLOG\u201d in \u201cdbo\u201d schema.<\/p>\n<p>Then I enable the migration for this table:<\/p>\n<pre class=\"brush: sql; gutter: false; first-line: 1\">ALTER TABLE DBO.ERRORLOG\n    SET ( REMOTE_DATA_ARCHIVE ( MIGRATION_STATE = OUTBOUND )  ) ;\nGO<\/pre>\n<p>&nbsp;<\/p>\n<p>I can check that my feature is enabled for my table:<\/p>\n<pre class=\"brush: sql; gutter: false; first-line: 1\">SELECT IS_REMOTE_DATA_ARCHIVE_ENABLED  FROM SYS.TABLES\nWHERE NAME = 'ERRORLOG'<\/pre>\n<p>&nbsp;<\/p>\n<p>Also, I can see the remote table created in Azure:<\/p>\n<pre class=\"brush: sql; gutter: false; first-line: 1\">SELECT * FROM SYS.REMOTE_DATA_ARCHIVE_TABLES<\/pre>\n<p>&nbsp;<\/p>\n<p>I can pause the migration process for my table. Useful if I need to troubleshoot or monitor my feature.<\/p>\n<pre class=\"brush: sql; gutter: false; first-line: 1\">ALTER TABLE dbo.ErrorLog\n\tSET ( REMOTE_DATA_ARCHIVE ( MIGRATION_STATE = PAUSED )  ) ;\nGO<\/pre>\n<p>&nbsp;<\/p>\n<h3>IV &#8211; Monitoring the Stretch Database feature<\/h3>\n<p>To check the migration state of the table:<\/p>\n<pre class=\"brush: sql; gutter: false; first-line: 1\">SELECT REMOTE_DATA_ARCHIVE_MIGRATION_STATE_DESC FROM SYS.TABLES\nWHERE NAME = 'ERRORLOG'<\/pre>\n<p>&nbsp;<\/p>\n<p>To list the migration batch of the table:<\/p>\n<pre class=\"brush: sql; gutter: true; first-line: 1\">SELECT * FROM SYS.DM_DB_RDA_MIGRATION_STATUS ORDER BY START_TIME_UTC DESC;\nGO<\/pre>\n<p>&nbsp;<\/p>\n<p>To obtain a data consumption of the table (locally and remotely):<\/p>\n<pre class=\"brush: sql; gutter: false; first-line: 1\">SP_SPACEUSED 'ERRORLOG', 'TRUE', 'REMOTE_ONLY'\nGO\nSP_SPACEUSED 'ERRORLOG', 'TRUE', 'LOCAL_ONLY'\nGO<\/pre>\n<p>&nbsp;<\/p>\n<p>As soon as the Stretch Database feature is enabled, an Extended Events session is created to monitor the Stretch Database ecosystem.<br \/>\nTo see these events, I made a script:<\/p>\n<p>SELECT CAST(EVENT_DATA AS XML) AS EVENTDATA<br \/>\nINTO #CAPTURE_EVENT_DATA<br \/>\nFROM SYS.FN_XE_FILE_TARGET_READ_FILE(&#8216;C:MSSQL13.MSSQLSERVERMSSQLLOGSTRETCHDATABASE_HEALTH*.XEL&#8217;, &#8216;C:MSSQL13.MSSQLSERVERMSSQLLOGMETAFILE.XEM&#8217;, NULL, NULL);<\/p>\n<pre class=\"brush: sql; gutter: false; first-line: 1\">SELECT CAST(EVENT_DATA AS XML) AS EVENTDATA\nINTO #CAPTURE_EVENT_DATA\nFROM SYS.FN_XE_FILE_TARGET_READ_FILE('C:MSSQL13.MSSQLSERVERMSSQLLOGSTRETCHDATABASE_HEALTH*.XEL', 'C:MSSQL13.MSSQLSERVERMSSQLLOGMETAFILE.XEM', NULL, NULL);\n\nSELECT \n\tEVENT_DATA.VALUE('(.\/@NAME)', 'NVARCHAR(50)') AS EVENT_NAME,\n\tEVENT_DATA.VALUE('(.\/@TIMESTAMP)', 'DATETIME') AS EVENT_DATE,\n\tEVENT_DATA.VALUE('(DATA[@NAME=\"DATABASE_ID\"]\/VALUE)[1]', 'INT') AS EVENT_DB_ID,\n\tEVENT_DATA.VALUE('(DATA[@NAME=\"TABLE_ID\"]\/VALUE)[1]', 'BIGINT') AS EVENT_TABLE_ID,\n\tEVENT_DATA.VALUE('(DATA[@NAME=\"IS_SUCCESS\"]\/VALUE)[1]', 'NVARCHAR(5)') AS EVENT_SUCCESS,\n\tEVENT_DATA.VALUE('(DATA[@NAME=\"DURATION_MS\"]\/VALUE)[1]', 'INT') AS EVENT_DURATION,\n\tEVENT_DATA.VALUE('(DATA[@NAME=\"ROWS\"]\/VALUE)[1]', 'BIGINT') AS EVENT_ROWS,\n\tEVENT_DATA.VALUE('(DATA[@NAME=\"ERROR_NUMBER\"]\/VALUE)[1]', 'BIGINT') AS EVENT_ERROR_NUMBER,DIRE\n\tEVENT_DATA.VALUE('(DATA[@NAME=\"SEVERITY\"]\/VALUE)[1]', 'INT') AS EVENT_SEVERITY,\n\tEVENT_DATA.VALUE('(DATA[@NAME=\"MESSAGE\"]\/VALUE)[1]', 'NVARCHAR(1000)') AS EVENT_MESSAGE\nFROM #CAPTURE_EVENT_DATA\n\tCROSS APPLY EVENTDATA.NODES('\/\/EVENT') XED (EVENT_DATA)<\/pre>\n<p>&nbsp;<\/p>\n<p>The Stretch Database feature is an interesting feature from SQL Server 2016. If you want more information, you should take a look to our other blogs:<\/p>\n<p><a href=\"Stretch database feature \u2013 Part 1\" target=\"_blank\" rel=\"noopener\">SQL Server 2016 CTP2: Stretch database feature \u2013 Part 1<\/a><br \/>\n<a href=\"http:\/\/dbi-services.com\/blog\/sql-server-2016-ctp2-stretch-database-feature-part-2\/\" target=\"_blank\" rel=\"noopener\">SQL Server 2016 CTP2: Stretch database feature \u2013 Part 2<\/a><br \/>\n<a href=\"http:\/\/dbi-services.com\/blog\/sql-server-2016-ctp3-0-stretch-database-enhancements\/\" target=\"_blank\" rel=\"noopener\">SQL Server 2016 CTP3.0: Stretch Database enhancements<\/a><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>On November 30th, I presented the Stretch Database feature in \u201cLes Journ\u00e9es SQL Server 2015\u201d in Paris. I explained how to manage by script this new feature in SQL Server 2016 CTP 3.0 I decided to share you my demonstration into a blog. &nbsp; I &#8211; Enabling the feature at the instance level First, you&hellip;&nbsp;<\/p>\n","protected":false},"author":14,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"neve_meta_sidebar":"","neve_meta_container":"","neve_meta_enable_content_width":"","neve_meta_content_width":0,"neve_meta_title_alignment":"","neve_meta_author_avatar":"","neve_post_elements_order":"","neve_meta_disable_header":"","neve_meta_disable_footer":"","neve_meta_disable_title":"","neve_meta_reading_time":"","_themeisle_gutenberg_block_has_review":false,"footnotes":""},"categories":[4133],"tags":[1338,566,712],"class_list":["post-6416","post","type-post","status-publish","format-standard","category-database","tag-azure","tag-sql-server-2016","tag-stretch-database"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v28.9 (Yoast SEO v28.9) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Manipulate Stretch database feature by script<\/title>\n<meta name=\"description\" content=\"I presented the Stretch Database feature in \u201cLes Journ\u00e9es SQL Server 2015\u201d in Paris. I explained how to manage by script this new feature in SQL Server 2016 CTP 3.0 I decided to share you my demonstration into a blog.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.dbi-services.com\/blog\/manipulate-stretch-database-feature-by-script\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Manipulate Stretch database feature by script\" \/>\n<meta property=\"og:description\" content=\"I presented the Stretch Database feature in \u201cLes Journ\u00e9es SQL Server 2015\u201d in Paris. I explained how to manage by script this new feature in SQL Server 2016 CTP 3.0 I decided to share you my demonstration into a blog.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.dbi-services.com\/blog\/manipulate-stretch-database-feature-by-script\/\" \/>\n<meta property=\"og:site_name\" content=\"dbi services Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/dbiservices\/\" \/>\n<meta property=\"article:published_time\" content=\"2015-12-04T12:49:31+00:00\" \/>\n<meta name=\"author\" content=\"Nathan Courtine\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@dbiservices\" \/>\n<meta name=\"twitter:site\" content=\"@dbiservices\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Nathan Courtine\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/manipulate-stretch-database-feature-by-script\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/manipulate-stretch-database-feature-by-script\\\/\"},\"author\":{\"name\":\"Nathan Courtine\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#\\\/schema\\\/person\\\/7c4623e3223cf21614c4a06c853ca363\"},\"headline\":\"Manipulate Stretch database feature by script\",\"datePublished\":\"2015-12-04T12:49:31+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/manipulate-stretch-database-feature-by-script\\\/\"},\"wordCount\":480,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/#organization\"},\"keywords\":[\"Azure\",\"SQL Server 2016\",\"Stretch database\"],\"articleSection\":[\"Database\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/manipulate-stretch-database-feature-by-script\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/manipulate-stretch-database-feature-by-script\\\/\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/manipulate-stretch-database-feature-by-script\\\/\",\"name\":\"Manipulate Stretch database feature by script\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#website\"},\"datePublished\":\"2015-12-04T12:49:31+00:00\",\"description\":\"I presented the Stretch Database feature in \u201cLes Journ\u00e9es SQL Server 2015\u201d in Paris. I explained how to manage by script this new feature in SQL Server 2016 CTP 3.0 I decided to share you my demonstration into a blog.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/manipulate-stretch-database-feature-by-script\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/manipulate-stretch-database-feature-by-script\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/manipulate-stretch-database-feature-by-script\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Manipulate Stretch database feature by script\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/\",\"name\":\"dbi services Blog\",\"description\":\"#BeSharing\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/#organization\",\"name\":\"dbi services\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/09\\\/dbi-services-logo.png\",\"contentUrl\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/09\\\/dbi-services-logo.png\",\"width\":512,\"height\":512,\"caption\":\"dbi services\"},\"image\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/dbiservices\\\/\",\"https:\\\/\\\/x.com\\\/dbiservices\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/dbi-services\\\/\",\"https:\\\/\\\/www.youtube.com\\\/user\\\/dbiservices\"],\"description\":\"Swiss IT consulting and services company specialized in efficient data infrastructures and platforms: databases, application servers, cloud, DevOps, digitalization, analytics, data quality and monitoring. Headquartered in Del\u00e9mont with offices in Nyon, Basel, Bern and Zurich.\",\"email\":\"info@dbi-services.com\",\"telephone\":\"+41 32 422 96 00\",\"legalName\":\"dbi services SA\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#\\\/schema\\\/person\\\/7c4623e3223cf21614c4a06c853ca363\",\"name\":\"Nathan Courtine\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/08\\\/NAC_web-min-scaled.jpg\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/08\\\/NAC_web-min-scaled.jpg\",\"contentUrl\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/08\\\/NAC_web-min-scaled.jpg\",\"caption\":\"Nathan Courtine\"},\"description\":\"Nathan Courtine has more than nine years of experience in Microsoft solutions, specializing in SQL Server installation, migration, performance analysis, and automation. He holds Microsoft Certified Solutions Expert (MCSE), Microsoft Certified Azure Administrator Associate, and AWS Certified Solutions Architect Associate credentials. He holds a Computer Science degree from ENSISA Mulhouse. His industry experience covers the public sector, pharma, IT, and banking\\\/financial services.\",\"sameAs\":[\"https:\\\/\\\/www.sequotech.com\\\/\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/vincentheimann\\\/\"],\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/author\\\/nathan-courtine\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Manipulate Stretch database feature by script","description":"I presented the Stretch Database feature in \u201cLes Journ\u00e9es SQL Server 2015\u201d in Paris. I explained how to manage by script this new feature in SQL Server 2016 CTP 3.0 I decided to share you my demonstration into a blog.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.dbi-services.com\/blog\/manipulate-stretch-database-feature-by-script\/","og_locale":"en_US","og_type":"article","og_title":"Manipulate Stretch database feature by script","og_description":"I presented the Stretch Database feature in \u201cLes Journ\u00e9es SQL Server 2015\u201d in Paris. I explained how to manage by script this new feature in SQL Server 2016 CTP 3.0 I decided to share you my demonstration into a blog.","og_url":"https:\/\/www.dbi-services.com\/blog\/manipulate-stretch-database-feature-by-script\/","og_site_name":"dbi services Blog","article_publisher":"https:\/\/www.facebook.com\/dbiservices\/","article_published_time":"2015-12-04T12:49:31+00:00","author":"Nathan Courtine","twitter_card":"summary_large_image","twitter_creator":"@dbiservices","twitter_site":"@dbiservices","twitter_misc":{"Written by":"Nathan Courtine","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.dbi-services.com\/blog\/manipulate-stretch-database-feature-by-script\/#article","isPartOf":{"@id":"https:\/\/www.dbi-services.com\/blog\/manipulate-stretch-database-feature-by-script\/"},"author":{"name":"Nathan Courtine","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/7c4623e3223cf21614c4a06c853ca363"},"headline":"Manipulate Stretch database feature by script","datePublished":"2015-12-04T12:49:31+00:00","mainEntityOfPage":{"@id":"https:\/\/www.dbi-services.com\/blog\/manipulate-stretch-database-feature-by-script\/"},"wordCount":480,"commentCount":0,"publisher":{"@id":"https:\/\/www.dbi-services.com\/#organization"},"keywords":["Azure","SQL Server 2016","Stretch database"],"articleSection":["Database"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.dbi-services.com\/blog\/manipulate-stretch-database-feature-by-script\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.dbi-services.com\/blog\/manipulate-stretch-database-feature-by-script\/","url":"https:\/\/www.dbi-services.com\/blog\/manipulate-stretch-database-feature-by-script\/","name":"Manipulate Stretch database feature by script","isPartOf":{"@id":"https:\/\/www.dbi-services.com\/blog\/#website"},"datePublished":"2015-12-04T12:49:31+00:00","description":"I presented the Stretch Database feature in \u201cLes Journ\u00e9es SQL Server 2015\u201d in Paris. I explained how to manage by script this new feature in SQL Server 2016 CTP 3.0 I decided to share you my demonstration into a blog.","breadcrumb":{"@id":"https:\/\/www.dbi-services.com\/blog\/manipulate-stretch-database-feature-by-script\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.dbi-services.com\/blog\/manipulate-stretch-database-feature-by-script\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.dbi-services.com\/blog\/manipulate-stretch-database-feature-by-script\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.dbi-services.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Manipulate Stretch database feature by script"}]},{"@type":"WebSite","@id":"https:\/\/www.dbi-services.com\/blog\/#website","url":"https:\/\/www.dbi-services.com\/blog\/","name":"dbi services Blog","description":"#BeSharing","publisher":{"@id":"https:\/\/www.dbi-services.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.dbi-services.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.dbi-services.com\/#organization","name":"dbi services","url":"https:\/\/www.dbi-services.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2026\/09\/dbi-services-logo.png","contentUrl":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2026\/09\/dbi-services-logo.png","width":512,"height":512,"caption":"dbi services"},"image":{"@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/dbiservices\/","https:\/\/x.com\/dbiservices","https:\/\/www.linkedin.com\/company\/dbi-services\/","https:\/\/www.youtube.com\/user\/dbiservices"],"description":"Swiss IT consulting and services company specialized in efficient data infrastructures and platforms: databases, application servers, cloud, DevOps, digitalization, analytics, data quality and monitoring. Headquartered in Del\u00e9mont with offices in Nyon, Basel, Bern and Zurich.","email":"info@dbi-services.com","telephone":"+41 32 422 96 00","legalName":"dbi services SA"},{"@type":"Person","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/7c4623e3223cf21614c4a06c853ca363","name":"Nathan Courtine","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2022\/08\/NAC_web-min-scaled.jpg","url":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2022\/08\/NAC_web-min-scaled.jpg","contentUrl":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2022\/08\/NAC_web-min-scaled.jpg","caption":"Nathan Courtine"},"description":"Nathan Courtine has more than nine years of experience in Microsoft solutions, specializing in SQL Server installation, migration, performance analysis, and automation. He holds Microsoft Certified Solutions Expert (MCSE), Microsoft Certified Azure Administrator Associate, and AWS Certified Solutions Architect Associate credentials. He holds a Computer Science degree from ENSISA Mulhouse. His industry experience covers the public sector, pharma, IT, and banking\/financial services.","sameAs":["https:\/\/www.sequotech.com\/","https:\/\/www.linkedin.com\/in\/vincentheimann\/"],"url":"https:\/\/www.dbi-services.com\/blog\/author\/nathan-courtine\/"}]}},"_links":{"self":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/6416","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/users\/14"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/comments?post=6416"}],"version-history":[{"count":0,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/6416\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/media?parent=6416"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/categories?post=6416"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/tags?post=6416"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}