<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:media="http://search.yahoo.com/mrss/"><channel><title><![CDATA[SQL - Deltacode Blog]]></title><description><![CDATA[A web developer's blog by David De Sloovere]]></description><link>https://blog.deltacode.be/</link><image><url>https://blog.deltacode.be/favicon.png</url><title>SQL - Deltacode Blog</title><link>https://blog.deltacode.be/</link></image><generator>Ghost 3.35</generator><lastBuildDate>Tue, 09 Jun 2026 09:05:49 GMT</lastBuildDate><atom:link href="https://blog.deltacode.be/tag/sql/rss/" rel="self" type="application/rss+xml"/><ttl>60</ttl><item><title><![CDATA[MS Sql 2008 - Add a FileStream column to an existing table (alter)]]></title><description><![CDATA[<!--kg-card-begin: markdown--><p>I couldn’t find any straight answer after googling, so I’m gonna put it here for all of you who want to add a FileStream varbinary to an existing table.<br>
You should already know that you can not do this from the design window of your table.</p>
<p>You need</p>]]></description><link>https://blog.deltacode.be/2010/03/11/ms-sql-2008-add-a-filestream-column-to-an-existing-table-alter/</link><guid isPermaLink="false">5f777fee6d3795227c24a4d4</guid><category><![CDATA[filestream]]></category><category><![CDATA[SQL]]></category><dc:creator><![CDATA[David De Sloovere]]></dc:creator><pubDate>Thu, 11 Mar 2010 15:14:35 GMT</pubDate><content:encoded><![CDATA[<!--kg-card-begin: markdown--><p>I couldn’t find any straight answer after googling, so I’m gonna put it here for all of you who want to add a FileStream varbinary to an existing table.<br>
You should already know that you can not do this from the design window of your table.</p>
<p>You need to do it in 3 steps:</p>
<p>First one is defining in which filegroup the files need to be stored. You define your filegroup on database level.</p>
<pre><code>ALTER TABLE dbo.YourTable SET (FILESTREAM_ON = FileStreamGroup)
</code></pre>
<p>Next you create a row guid column</p>
<pre><code>ALTER TABLE dbo.YourTable ALTER COLUMN GuidFieldAsPK ADD ROWGUIDCOL
</code></pre>
<p>Finally you add the file</p>
<pre><code>ALTER TABLE dbo.YourTable ADD YourNewFileStreamField varbinary(max) FILESTREAM NOT NULL
</code></pre>
<p>I found the code here: <a href="http://social.msdn.microsoft.com/Forums/en-US/sqldatabaseengine/thread/13de4291-f48e-438c-bee5-40d80746fc7b">http://social.msdn.microsoft.com/Forums/en-US/sqldatabaseengine/thread/13de4291-f48e-438c-bee5-40d80746fc7b</a></p>
<!--kg-card-end: markdown-->]]></content:encoded></item></channel></rss>