views:

67

answers:

1

I have deploy my code in visual studio .NET 2010 in order to select images and save them into a SQL server (remote) 2008 express

When i deploy my tables as: [dbo].[tablename] then at the last command of my code which is:

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

I receive the error of 'Access denied'

When i deploy my tables as : [UserSchema].[tablename] then i receive the error of:

'The system detected a possible attempt to compromise security. Please ensure that you can contact the server that authenticated you'

I have made all the changes that i know around of SQL Server but nothing.

Please noticed that i can write data in all the privious tables without any problem, My issue starts only when i'm trying to pass the image into the shell of the table

Is there anyone which have faced this problem before?

+1  A: 

There are about 20+ reasons why an access is denied for a request to SQL SERVER Have look at this article from Miscrosoft.

Most common errors are as follow

  • Not specifying proper connection string
  • The local security policy user rights assignment for your Application are not enough

Hope it helps

Asad Butt
Well dear asad buttI solve the problem related to my above question the problem was that i have to put trusted security = trueon the database connection and on the server connection as well any way i thank you very much for your interest
Lefteris Gkinis
Glad it was over, bit related to second type!
Asad Butt