Solved

SQL Filetable access using SQL Login

Posted on 2015-01-25
5
168 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 33

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction In my previous article (http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SSIS/A_9150-Loading-XML-Using-SSIS.html) I showed you how the XML Source component can be used to load XML files into a SQL Server database, us…
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 video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
Via a live example, show how to shrink a transaction log file down to a reasonable size.

867 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

18 Experts available now in Live!

Get 1:1 Help Now