<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: HerrKiel</title>
    <description>The latest articles on DEV Community by HerrKiel (@herrkiel).</description>
    <link>https://dev.to/herrkiel</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F892105%2F16b9debf-492d-48f7-86e4-9901d8633792.png</url>
      <title>DEV Community: HerrKiel</title>
      <link>https://dev.to/herrkiel</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/herrkiel"/>
    <language>en</language>
    <item>
      <title>Build error SQL46005: Expected FILESTREAM_ON but encountered object instead</title>
      <dc:creator>HerrKiel</dc:creator>
      <pubDate>Thu, 14 Jul 2022 19:15:21 +0000</pubDate>
      <link>https://dev.to/herrkiel/build-error-sql46005-expected-filestreamon-but-encountered-object-instead-pgl</link>
      <guid>https://dev.to/herrkiel/build-error-sql46005-expected-filestreamon-but-encountered-object-instead-pgl</guid>
      <description>&lt;p&gt;I am trying to build a database project with azure synapse sql pool as the target database but i get &lt;code&gt;Build error SQL46005: Expected FILESTREAM_ON but encountered object instead&lt;/code&gt; error every time single.&lt;br&gt;
I investigated as noticed there are couple procedures where I am using the data swapping approach to stage and load the data. Here is an example of the pattern;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;CREATE PROC [schema].[some_proc] AS

-- Drop temp table if exists
if object_id(N'schema.t_dim_temp_table') is not null
drop table schema.t_dim_temp_table;

create table schema.t_dim_temp_table
with (   distribution = hash (somecol)
        ,clustered columnstore index
     )
as
select
*
,CURRENT_TIMESTAMP AS last_update_date
from stgschema.v_dim_stage

-- Rename and remove temp objects
rename object schema.t_dim_table            to schema.t_dim_table_old;
rename object schema.t_dim_temp_table       to schema.t_dim_table;
drop table schema.t_dim_table_old;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Any ideas about how to get around this error will be appreciated&lt;/p&gt;

</description>
      <category>devops</category>
      <category>azure</category>
      <category>sql</category>
    </item>
  </channel>
</rss>
