Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6953049
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T14:25:43+00:00 2026-05-27T14:25:43+00:00

Novice here! I’m currently creating an application using Ruby on Rails. This particular application

  • 0

Novice here! I’m currently creating an application using Ruby on Rails.

This particular application uses binary data for content. Apparently, SQL Server is the best way to go because of the FILESTREAM feature. From what I found from documentation, this basically creates a file system for binary objects that are > 1mb.

With that said, I am using Ruby on Rails and preparing to setup the activerecord-sqlserver-adapter but I need to know how will I be able to specify a column to use FILESTREAM while setting up a database with active record migration? Would I just edit the column to accept FILESTREAM in SQL Server management? (This is obviously after allowing FILESTREAM to be used in SQL SERVER.)

So the setup I predict is:
1. install SQL Server and all supporting components
2. install activerecord-sqlserver-adpater gem
3. create a varbinary(max) database column (for the binary file) – In migration
4. specify in sql server to use said column for FILESTREAM

All in all, How do I configure to specify the use of FILESTREAM when creating a column in a database using rails/ruby?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T14:25:44+00:00Added an answer on May 27, 2026 at 2:25 pm

    No that’s not the all, every table that has a column varbinary(max) which stored as a FILESTREAM should have a column with rowguid type.

    Here is a sample that I’ve used for Attachments

    CREATE TABLE [dbo].[Attachment](
        [Attachment_Id] [uniqueidentifier] ROWGUIDCOL  NOT NULL,
        [ContentLength] [int] NULL,
        [ContentType] [nvarchar](100) NULL,
        [Contents] [varbinary](max) FILESTREAM  NULL,
        [DateAdded] [datetime] NULL,
        [FileName] [nvarchar](255) NULL,
        [Title] [nvarchar](255) NULL,
    PRIMARY KEY CLUSTERED 
    (
        [Attachment_Id] ASC
    )WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY] FILESTREAM_ON [filestream]
    ) ON [PRIMARY] FILESTREAM_ON [filestream]
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This could be a novice question, but here goes... Why do we use data**.d**
novice Perl programmer here!. I'm using the system() function to get the return code
I guess this is a novice question, but here goes anyway... How do I
I am a JS novice. Using some code I found here to help me
This only happens in some IE's. Here: http://animactions.ca/Animactions/volet_entreprise.php You may notice that when you
Php novice. 1.Is there anything wrong with this PHP & MySQL code? include_once db_login.php
I'm a very novice OCaml programmer so please forgive me if this is a
Programming novice here. I'm trying to allow a user to enter their name, firstName
database/SQL novice here. I have a table with a column called, for example, EmployeeID.
I am a Scala novice so forgive me if this is a stupid question,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.