views:

183

answers:

1

Well now at the end of my program I'm facing an access denied

Dim sqlFile As SqlFileStream = New SqlFileStream(filePathName, fileToken, FileAccess.Write)

This is the last command in order to write the STREAM image in the table.

This command returns me an 'Access Denied' error no other comment.

I have give in my account a Login relation which is Windows Login account which is a member of

SQLServerMSSQLUser$developer$SQLEXPRESS

account

Means that we have all the prmissions on the server (as a machine)

Even so i receive the 'Access Denied'

The Service account it is not the problem because we have solve it from the very start of this program

anyone which can help me?

A: 

Try this:

  1. In the SQL Server Configuration Manager under SQL Server Services right-click on the SQL Server (MSSQLSERVER) and select Properties
  2. On the FILESTREAM tab make sure that Enable FILESTREAM for file I/O streaming access and Allow remote clients to have streaming access to FILESTREAM data are selected.
Damir Sudarevic
Dear DamirThis tip you suggesting i have already done from the very very start of this projectPlease tell me this If you look a privious tip (on this pages) someone told me to login as sa what is your opinion?
Lefteris Gkinis
Basically I don't know from where it starts the 'Access Dinied' from the table itself or from the access on the disk, at the time which he tries to write data on the Stream Files?
Lefteris Gkinis
Tell me this Pleasethe ...Commit command needs to be before of the SqlFileStream = New SqlFileStream(filePathName, fileToken, FileAccess.Write)or After?
Lefteris Gkinis