SQL Server permissions problem

From: Manoj Gadhia (anonymous_at_discussions.microsoft.com)
Date: 08/06/04


Date: Fri, 6 Aug 2004 09:41:00 -0700

You must be running this in your query analyzer. So its
your nt account should have permission to access the
folder & when you run as a job the server2 sqlagent
account should have permission to access the same.

>-----Original Message-----
>
>Hello.
>
>Here is my problem.
>I have a CSV file on a server, let's say "server1".
>I have also a stored procedure, into a SQL Server
database, which is located
>on another server, let's say "server2".
>These 2 servers are in the same network.
>
>I need to connect from the stored procedure to the CSV
file, using
>OPENDATASOURCE, like this:
>OPENDATASOURCE(''Microsoft.Jet.OLEDB.4.0'',''Data
>Source=\\Idd1\test_files_import\1_files;Extended
>Properties="text;HDR=Yes;FMT=Delimited"'')...CLASSES#CSV
>It gives the following error:
>
>Microsoft OLE DB Provider for SQL Server error '80040e14'
>
>[OLE/DB provider returned message: '\\Idd1
\test_files_import\1_files' is not
>a valid path. Make sure that the path name is spelled
correctly and that you
>are connected to the server on which the file resides.]
>
>The path is valid, I'm sure about it. Maybe it is a
users permissions
>problem.
>Shouldn't I set permissions for SQL Server user for this
folder?
>But what user SQL Server uses?
>
>Thanks for any help!
>
>
>.
>



Relevant Pages

  • Re: dts and access db
    ... How can I setup permission for sa account under \\server\data folder? ... The service account for SQL Server ... >>already opened exclusively by another user, or you need permission to view ...
    (microsoft.public.sqlserver.dts)
  • Re: xp_msadenabled
    ... This has been seen before when the account that SQL Server is running under ... didn't have permission to access Active Directory. ...
    (microsoft.public.sqlserver.server)
  • Re: Exec permissions on Stored Procedure
    ... my case the aspnet machine account for a web app) must have insert ... permission to the underlying table as well as execute permission to ... With the same owner as the tables. ... Or use any of the new mechanisms in SQL Server 2005, ...
    (microsoft.public.sqlserver.security)
  • Re: EXECUTE PERMISSION DENIED on executing Sproc
    ... i don't have any privilege needed to change any permission on any of my ... > to the account you're using to work with your SQL server DB. ... > which in turn depends on which version of IIS you're using. ...
    (microsoft.public.dotnet.framework.aspnet)
  • RE: Get permission error after mdb move.
    ... You can give the Network Service account that Express is running under rights ... Check the security permissions that were granted to the folder on ... LocalService and Network Service are both low privilidged accounts. ... and attached to an instance of SQL Server 2005 ...
    (microsoft.public.sqlserver.server)