The current user does not have permissions on that object.

Hi All,

The web application has no right to access folder at its application folder.
I use Stored Procedure to read file from the folder.

How to solve this ?

Thank you.
LVL 1
emi_sastraAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Pawan KumarDatabase ExpertCommented:
What username u are passing from web application?

That one should have access to create the folder and to select the data from the  table.

Can u share the store procedure.
0
emi_sastraAuthor Commented:
Hi Pawan,

Msg 7357, Level 16, State 2, Line 2
Cannot process the object "SELECT * FROM [DATA$]". The OLE DB provider "Microsoft.Jet.OLEDB.4.0" for linked server "(null)" indicates that either the object has no columns or the current user does not have permissions on that object.

Thank you.
0
Vitor MontalvãoMSSQL Senior EngineerCommented:
The SQL Server service account needs to have read and write permissions on the folder. Check if that is true for your case.
0
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

emi_sastraAuthor Commented:
Hi Vitor,

- The SQL Server service account needs to have read and write permissions on the folder. Check if that is true for your case.
How could I do it ?

Thank you.
0
Vitor MontalvãoMSSQL Senior EngineerCommented:
Well, check in that folder who has permissions. If you don't know how to check that, then follow this article.
0
emi_sastraAuthor Commented:
Hi Vitor,

The problem is at Windows Server 2008 R2.
Is the link help for windows server?

Thank you.
0
Vitor MontalvãoMSSQL Senior EngineerCommented:
Yes. That's for any Windows version.
0
emi_sastraAuthor Commented:
Still same problem.
0
Pawan KumarDatabase ExpertCommented:
Open the SSMS using the user you are running the application.

Connect to DB

Then execute the select command.
0
Vitor MontalvãoMSSQL Senior EngineerCommented:
emi_sastra, is this issue solved?
0
Pawan KumarDatabase ExpertCommented:
Hi Eme_sastra,
Did you try my last comment?
0
emi_sastraAuthor Commented:
Hi All,

I have found the solution.
The problem is odbc driver that its bit different form MS SQL bit.

MS SQL 32 bit, while I install ODBC using 64 bit driver.

Thank you.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Vitor MontalvãoMSSQL Senior EngineerCommented:
As stated by the author
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server

From novice to tech pro — start learning today.