Solved

SQL Filetable access using SQL Login

Posted on 2015-01-25
5
165 Views
Last Modified: 2015-01-31
Hi Guys,

I have read that access to SQL filetable requires Windows Authentication etc. This is a frustrating feature of SQL Filetable but understandable?? But I have also read that the only exception is if the SQL Login has sysadmin rights of which mine does but if I add this user in my connection string it still fails.

Basically I can access the SQL Filetable but in my deployed .Net winforms application the end users receive a GetData Reader NULL exception when they try to view a file or  a "SQLLogin failed permissions...... I have read that this error is caused by lack of permissions to the FileTable.

I have setup my instance filestream properties to "Full Access Enabled" and check the I/O streaming features etc. My FileTable works just fine when I am the user, all settings I believe are correct but how can I give access to the end users in my organisation ideally using SQL Login or alternatively windows authentication for the Filetable??

Your help is much appreciated
0
Comment
Question by:databarracks
  • 4
5 Comments
 

Author Comment

by:databarracks
ID: 40570091
This is the error I get in my application
0
 

Author Comment

by:databarracks
ID: 40570134
It appears as though it isn't a permissions thing but more of a DLL problem. The internet says that I need to add a reference to C:\Program Files (x86)\Microsoft SQL Server\110\Shared\Microsoft.SqlServer.Types.dll in the project.Which I have done but the error persists?

It works on any work station that has SQL SErver installed or MAnagement Studio??
0
 
LVL 32

Expert Comment

by:ste5an
ID: 40571337
Well, what about posting your failing code?
0
 

Accepted Solution

by:
databarracks earned 0 total points
ID: 40572083
Hi there,

I figured it out. I had to add "C:\Program Files (x86)\Microsoft SQL Server\100\Shared\Microsoft.SqlServer.Types.dll" this into my project. The difference being that I had to get the Dll in the 100 folder not the 110 one. Also you need to checnge the Copy local to true
0
 

Author Closing Comment

by:databarracks
ID: 40581245
Through trial and error I got to the bottom of it. Thank you to the expert that did get back to me
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Suggested Solutions

A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now