SQL server can't access network share

Hello,
I am facing an issue where the SQL server can't access the network share. The network share is mounted by  a domain user who is also configured as Administrator on the server.
Through SQL Server management studio as well as PoweShell script when i try to access the share in order to attach the database contained within the share, i get the error "Unable to find the file specified". I can't mention the network drive to
the SQL management GUI file browser too if i try to attach the database through GUI.
For all SQL services, I changed the service log on account to be the same account which mounts the network share.
As work around - 
I launched a command prompt under NT Authority \ SYSTEM (LocalSystem) account and mounted the drive to the same location which lead to adding one more connection but under local system account. With this change, the SQL server was able to access the network
share!
I couldn't understand whey SQL expects the network share to be mounted under local system account even if all the SQL services are running under domain account ? I want SQL to be able to access the network share without opting for above work around.

Hello,
I couldn't understand whey SQL expects the network share to be mounted under local system account even if all the SQL services are running under domain account ? I want SQL to be able to access the network share without opting for above work around.
It doesn't have to be. The workaround is only a temporary fix and is certainly not a good idea. I would not use mounted folders with SQL Server, at all, period.
The reason you're having difficulty is that when the folder is mounted, it's mounted for YOUR session not ALL sessions. SQL Server has already started its services and is running under its' own session and is not privy to the things you do to change the
environment. For example, if you changed a system or user variable (for example, a SET variable) SQL Server would have no idea about this because when it started, that variable either didn't exist or was something else. This is not SQL Server's fault but how
Windows works (this information is stored in the Process Environment Block [PEB]) for any windows process.
As other's have said, don't use mounted drives - use a UNC path. UNC paths are 100% supported on 2012+ as well as running databases on a SMB 3.x share (UNC pathed of course).
If you absolutely must use a mounted drive, enabled xp_cmdshell access (through sp_configure) and run the net use command through xp_cmdshell. I, once again, would highly advise not doing this and using an UNC path.
-Sean
The views, opinions, and posts do not reflect those of my company and are solely my own. No warranty, service, or results are expressed or implied.

Similar Messages

  • Can't access Network share from Windows 8 computer

    I have a clean install of Windows 8 x64 running in a workgroup environment. I can access multiple computer/NAS shares except one share off a partifular NAS. This share is accessible from other computers and the other shares on the NAS are accessible from
    this Windows 8 computer. I have cheked the credentials and they are fine, added them under the credential manager, tried to map a drive and selected use other credentials etc but it continually says "Windows cannot access \\ComputerName\ShareName"
    you do not have permission. I have permission and nothing is wrong with the permissions or the server. This is driving me crazy if anyone could help it would be greatly appreciated.
    I have tried:
    1. Mapping drive with ip address e.g. \\ip address\sharename
    2. disabled ipv6, made sure netbios enabled, made sure client for ms networks enabled.
    3. Setup a new account on server, doesn't work either.
    4. All sharing options enabled. I even modified the permissions on the share for "everyone" full access and it still didn't work.
    Has to be something with this windows 8 machine.

    Dear all,
    Hi am using 2012 r2 server and i have created share folder ,and added the user Id in that share folder but while accessing in windows pc (local admin) its opning all share folder , but its not asking password if i click in share folder it shows you do not have
    permission to access . but till lastweek it was worked fine . and if i tried in administrator login its asking password authentication. Please help me ASAp.
    Thanks
    mahamad
    8884209555 

  • I can't access folder share in WIndows Server 2012 R2 from windows 8.1

    i have a strange case:
    I have a Windows Server 2012 R2 machine with a shared folder. Accessing this folder using a Win7, Win8,
    Win 2008 R2 machine using \\servername  works fine but form windows 8.1 or windows
    2012 r2 i can't so any one can help me. 

    Hi,
    Would you please let me know the complete error message that you can find, when can’t access to the share folder
    that host in the Windows Server 2012 R2?
    If you logon the Windows 8.1 (or server 2012 r2) with administrator account, will encounter the same issue?
    Meanwhile, please access the share folder via \\server’s IP address\share folder. Then please check if this issue still persists.
    In addition, there is a similar thread. Please refer to and check if can help you.
    Can't
    access UNC share on Windows Server 2012 R2
    Hope this helps.
    Best regards,
    Justin Gu

  • Can a SQL SERVER table be accessed via Oracle Forms

    My boss asked me this question today. I am pretty sure the answer is "no", but thought it better to throw it out to the crowd:
    "Can a SQL SERVER table be accessed via Oracle Forms?"

    Yes, this is possible using Oracle's Transparent Gateway. Check out the My Oracle Support (formerly Metalink) document "How To Create A Form Based on SQL Server Table" (Doc ID: 564915.1) for all of the details. This document is based on Forms 10g (10.1.2.0.2) so you may need to upgrade your Forms version if you are not already at this version at a minimum.
    Hope this helps,
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • Can't access any shares on the network

    Hi,
    As the topic says, I can't access any shares on the network. I've tried connecting to a Iomega NAS, Windows 7 laptop, and a macMini. In the "Shared" list in finder im able to see all the shares, I'm able to click them and see the folders they share, but when I try to open one of the folders I get an error, no matter which share it is:
    +"The operation can’t be completed because the original item for “<folder name>” can’t be found."+
    The shares can all access each other, and they can access my folders. I just can't access any folder on the network.
    I got a mac pro with osx 10.6.2 and have all the latest updates.
    How can I solve this problem?
    Thanks.

    Well, try this (I was able to fix my with these steps):
    Go Utilities > Disk Utility
    Select your Startup Disk, e.g. Macintosh HD
    Then, under the First Aid Tab, click Verify Disk Permissions.
    If there are errors, then click repair Disk Permissions.
    After it is done, restart the computer and see if your problem is resolved.
    I hope this help.
    Zeke
    www.ZekeYuen.com/blog/

  • Window 8.1 system unable to access network shares via VPN connection

    Is there something inherent to Windows 8.1 that prevents it from accessing shares on a domain?
    I know that it cannot join a domain, but does that also mean that it cannot access shares which are on a domain?
    My problem is that I have several user that are running windows 8.1 that are connecting to our network via a VPN.
    The users have domain accounts but their computers as windows 8.1 cannot joined to the domain.
    So to access network shares they have to use their domain credentials to create a VPN connection.
    Once connected the user can RDP to systems on the domain using their domain accounts, so I know that their user names/passwords and permissions are correct. They can access these systems using the computer name, so I don't feel that I have a DNS issue.
    They can see the shares on our file server, but when they try to access their departments shared file, they receive an access denied message. There are a few shares that are completely wide open, shared to all users and all departments but they cannot access
    those shares either.
    You can ping the file server, from the the client when they are connected to the VPN but you just cannot access any of the shares.
    So...
    I am thinking that it has something to do with windows 8.1 and not being able to join a domain, but I cannot find anything to explicitly support this thought.
    Other users running a variety different OS (windows 7, OSX, Linux) can all access the shares without any problems via the VPN, so I am a little stumped.

    I have done some more testing and oddly enough I can map a drive if I use the IPaddress, but not the computer name, when checking the check box "connect using different credentials"and providing they users domain credentials.
    This seems to point to a DNS issue, one would think, but I can hit the file share server by name \\fileserver.dev.lan
    I can see all the shares, so dns seems to be fine right?
    So I don't understand why I can map a drive using do the IPaddress and not the machine name, but yet I can see and ping the server by name?
    When I try to create a mapped drive by machine name I receive the following message:
    Windows cannot access \\fileserver.dev.lan\all
    You do not have permissions to access \\fileserver.dev.lan. contact your network administrator  to request access.
    But if I use the \\x.x.x.x\all using the very same user and password I get connected with no problem.
    This only seems to happen on windows 8.1, which leads me to think that has something to do with OS. 
    I am thinking about upgrading to windows 8.1 pro, but I don't want to go though the hassle and expanse is the OS is not the problem.

  • Cannot access network shares on AD domain

    I've joined my mac to an AD domain (over vpn tunnel). I used the Directory Access app and when I did a "bind" to the domain all seemed to go well.
    However when I try to access a network share using the "Connect to Server" menu item:
    smb://server/share
    I get this error:
    The Finder cannot complete the operation because some data in...could not be read or written. (Error code -36)
    Ok I've tried googling this error message. Could someone tell me what this means? Could you point me to documentation on how to do what I'm doing?

    Can you access the share while in the office?
    Can you access the share by using the servers IP address instead of name?

  • Network Media Player (Noontec V9-T) unable to access network shares on WIN8 Pro

    I have just upgraded from Windows 7 home premium 64 bit to Windows 8 Pro 64 bit. After the upgrade, I made sure my video library was shared (both with the homegroup and my username) and that network discovery was enabled file sharing enabled etc etc.
    On the Noontec Media centre I can see the workgoup called WORKGROUP. When I click on it I can see the name of my PC. But when I click on the pc name to log in to access the shares within it comes up with a username/pass box comes up. I then put in my username/pass
    on the windows 8 pro machine, to which the Noontec receives an error message stating cannot login.
    Previously I had enabled sharing with everyone (read only) on windows 7 home and this username/pass dialog box never appeared. Just said successful logon. So i tried sharing video library with "everyone" in windows 8 pro, the unit still can't log on.
    I believe this noontec uses Samba. The last updated samba file was named "samba_3.0.23c_mipsel.ipk" when I updated the media players samba about 9 months-a year ago. i have checked the manufacturers website, there has been no further updates released.
    Is there a way for me to access network shares from this media centre by maybe installing a new samba server on the windows 8 machine that is compatible with older samba clients? I am not savy with samba clients/servers at all, I just loved the way XP network
    shares always seemed to work across multiple platforms... and win7/8 doesn't. Help anyone?

    A lot of these media players will not work correctly. If your Video files are stored as .avi, MKV, MP4 etc.. pretty much anything excpet for .ISO, the best way is to use Plex media server on the windows 8 PC. It's free and should allow you to organise files
    and libraries as you want.In fact, it's my preferred access method now, as most, smart TVs also support plex and support it well....allowing me to play the files directly in my smart TV, without using the Media players.
    In addition if you have an Android tablet or phone, you can (if you want) access your media files from Plex using Media Monkey (free) and simply play them direct to the TV, Media Monkey simply hands the data stream over to the smart TV.
    I have a similar set of media players and exactly the same problem with windows 8,8.1, previous shares on versions 7, vist etc..work perfectly. I use a free application on my android phone to remote start my media server/s (via the network card).
    Shutter Light - Free monitoring activity and network data, to prevent unwanted sleep during Videos and to ensure the PC goes into sleep mode (disabling windows power management)
    Plex simplifies everything and acts as a great central server for all types of devices and can bring media files together from different Directories/Disks, in to one set of Libraries.

  • XP Mode Crashes When Accessing Network Shares

    I am using Windows 7 Professional and have installed XP Mode to use a legacy accounting application.
    In the Virtual Machines folder on the host under settings I have set the network adapter to Realtek PCIe GBE Family Controller.
    Under XP Mode, I have set XP to be a member of the workgroup and I am logging on with a user who can access network. When I run XP Mode I can access the internet with Internet Explorer.
    If I then go to "My Network Places" "View Workgroup Computers" I can see all the workgroup computers on the network. If I then double click on a computer name Windows Explorer shows me all the shared directories on that computer.
    This is where the problem occurs. If I then click on a shared directory XP Mode instantly exits and restarts. (Windows 7 is unaffected.)
    Does anyone have any idea's as how I can access all the shared directories to view the files stored on the network.

    Miya Yao, Thank you for your reply.
    Can other computer in the workgroup see the shared directory in Windows XP Mode? I don't know exactly what you mean by this. No other computers in the workgroup are running XP Mode. They are running native XP Professional. (It was my original idea to run
    a physical XP laptop together with Windows 7 desktop to access the data files required, before I read about XP Mode.)
    All workgroup computers can access network shares, if the user has appropriate permissions. I have shared the "Shared Documents" under XP Mode and this share can be accessed by all other computers on the network including the host. However, if I access this
    share from the guest via "View Workgruop Computers" as in my first post, XP Mode instantly quits and restarts. For information the XP Mode user name and password is the same as the host user name and password.
    I have checked the Event Viewer both before I first posted and again today. There are no entries recorded. However, I should have mentioned that upon restarting XP Mode I get "The system has recovered from a serious error" the details of which are:-
    BCCode : 10000050     BCP1 : FFFFFF8A     BCP2 : 00000001     BCP3 : F7F23661
    BCP4 : 00000000     OSVer : 5_1_2600     SP : 3_0     Product : 256_1
    If I send the error report I am taken to thsi web page:-
    http://wer.microsoft.com/responses/Response.aspx/603/en-us/5.1.2600.2.00010100.3.0?SGD=316378af-10a1-428a-9016-074d398ed1a1
    The page talks about testing RAM. RAM is fine. There is 8GB of physical RAM. It was tested with memtest86+ v2.10 and v4.20 separately. v4.20 was run for 12 hours plus with no errors detected. I have tried adjusting XP Mode RAM under settings but this makes
    no difference.
    The issue happens when accessing all shared directories including empty ones.
    I clean booted the computer and yes the issue still exists.
    If I use dos to view a directory under XP Mode the problem exists, by typing
    \\SERVER\SHARE\FOLDERNAME .
    By using the host I can map a shared directory. Then under XP Mode I can access the share from my computer. I have noticed by mapping S: to a Network Share that in Windows Explorer in XP Mode the path is
    \\tsclient\S\ .  Is this normal?
    Under Windows 7 the same share appears as S:\ as I would expect.
    However, I would prefer not to have to map and un-map different Network Shares to drive letters.
    It should have been mentioned in my first post, host is Windows 7 Professional 64 bit. I don't know the build but it is full retail version (not upgrade) from when first released - prior to SP1. All updates have been applied including SP1.
    Any help would be appreciated.
    Thanks.

  • [Oracle][ODBC SQL Server Driver][libssclient22]General network error

    I am using oracle gateway (11.1) for sqlserver on Linux platform with Oracle Server 10g.
    I am getting following error when i run any select query:
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    [Oracle][ODBC SQL Server Driver][libssclient22]General network error. Check your network documentation.[Oracle][ODBC SQL Server Driver][libssclient22]ConnectionOpen (connect()).[Oracle][ODBC SQL Server Driver]Invalid connection string attribute
    ORA-02063: preceding 2 lines from SQLSERVER
    Another thing is, i have created a ODBC DSN named as "sqlserver" as well. This configuration works fine when "program" parameter is set to dg4odbc in Listener.ora. But with dg4msql, it gives error.
    Followings are the configuration files:
    initsqlserver.ora
    # HS init parameters
    HS_FDS_CONNECT_INFO=database_machine:1433//test_master
    HS_FDS_TRACE_LEVEL=OFF
    HS_FDS_RECOVERY_ACCOUNT=RECOVER
    HS_FDS_RECOVERY_PWD=RECOVER
    listener.ora
    SID_LIST_sqlserver =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = sqlserver)
    (ORACLE_HOME = /u01/app/oracle/product/11.1.0.6.0/gateway)
    (PROGRAM = dg4msql)
    sqlserver =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = Server_Machine )(PORT = 1522))
    (ADDRESS = (PROTOCOL = IPC)(KEY = PNPKEY))
    tnsnames.ora
    SQLSERVER =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = Server_Machine)(PORT = 1522))
    (CONNECT_DATA =
    (SID = sqlserver)
    (HS = OK)
    )

    Hi,
    The error you get is because your HS_FDS_CONNECT_STRING is not correct:
    Be sure you can ping the SQL SERVER name from the Oracle Server,or use TCP/IP address
    Check the port, it is not necessary 1433.
    You can use the instance name insted of port:
    HS_FDS_CONNECT_STRING=server_ip_address/instance_name/database_name
    Be careful, in the LISTENER.ORA, you must specify the Gateway machine and not the SQL SERVER machine:
    sqlserver =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = Gateway_Machine )(PORT = 1522)) <====you must specify Oracle Gateway machine
    (ADDRESS = (PROTOCOL = IPC)(KEY = PNPKEY))
    Idem for TNSNAMES.ORA:
    SQLSERVER =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = Gateway_Machine)(PORT = 1522))
    (CONNECT_DATA =
    (SID = sqlserver)
    (HS = OK)
    Regards
    Mireille

  • Reg:-10901: Database error: [Microsoft][ODBC SQL Server Driver][DBNETLIB]General network error. Check your network documentation.. Contact your Business Objects administrator or database supplier for more information. (Error: WIS 10901)

    Hi Friends,
    When i schedule the report in infoview ,i am getting this error, could you please let me know how to solve this error.
    10901: Database error: [Microsoft][ODBC SQL Server Driver][DBNETLIB]General network error. Check your network documentation.. Contact your Business Objects administrator or database supplier for more information. (Error: WIS 10901)
    Thanks
    sreedhar

    Hi,
    I am able to refresh the report in Infoview and data is dispalying , but when i schedule the report in infoview i am getting that error.
    I am not clear on below one could you please elaborate on this
    You need to create ODBC for SQL server.Check your BO server is able to connect SQL Server.
    Thanks
    sreedhar

  • HOW TO INSERT DATA INTO SQL SERVER FROM MS ACCESS TABLE??

    NEED TO INSERT DATA INTO SQL SERVER FROM MS ACCESS TABLE.

    this is another method
    http://www.mssqltips.com/sqlservertip/2484/import-data-from-microsoft-access-to-sql-server/
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • I want to query oracle database from sql server can anyone tell steps 2 fo

    i want to query oracle database from sql server can anyone tell steps 2 followed
    i tried with linked servers but it is throwing errors can anyone hepl in this regard
    The operation could not be performed because the OLE DB provider 'MSDAORA' was unable to begin a distributed transaction.
    OLE DB error trace [OLE/DB Provider 'MSDAORA' ITransactionJoin::JoinTransaction returned 0x8004d01b].

    First of all - you are in the wrong forum.
    Look either for the Database general or search for Transparant / Heterogenous Gateways.
    cu
    Andreas

  • I want to query oracle database from sql server can anyone tell steps 2 fol

    i want to query oracle database from sql server can anyone tell steps 2 followed
    i tried with linked servers but it is throwing errors can anyone hepl in this regard
    The operation could not be performed because the OLE DB provider 'MSDAORA' was unable to begin a distributed transaction.
    OLE DB error trace [OLE/DB Provider 'MSDAORA' ITransactionJoin::JoinTransaction returned 0x8004d01b].

    First of all - you are in the wrong forum.
    Look either for the Database general or search for Transparant / Heterogenous Gateways.
    cu
    Andreas

  • The computer install TMG can't access network

    Hello Everyone
    My computer has installed Winserver 2008 R2. It have 2 card network. 
    Lan network Card : 192.168.1.254/24
    Internet network Card: get IP automatic
    My computer can access network
    But when I installed TMG. My Inetrnet Card can't get IP automatic and I can't access network
    I created access rule : Protocal :Allow outbound traffic, From: Internal, To: External
    but It is not success
    Help me 

    Hi,
    You need to modify a system rule for this to work.
    Open TMG management console
    Go to Firewall Policy and on the tasks pane on the right hand side click "Edit System Policy".
    Under Network Services, selet DHCP and on the From tab add the network External. Click OK and apply the policy. When the configuration has synced, renew the IP configuration for the external adapter.
    Obvious risks with allowing this apply.
    Hth, Anders Janson Enfo Zipper

Maybe you are looking for

  • Trying to discard an app into TRASH and I receive a message that "app cannot be removed because it is locked."  How can I unlock an app???

    Trying to discard an app into TRASH and I receive a message that "app cannot be removed because it is locked."  How can I unlock an app???

  • Help if possible for smart editor

    Hello java gurus, Presently Iam building my own editor for a new language.I want to make this an efficient editor. By an efficient editor i mean that when a very big file is opened into it, the whole file should not be there in the memory.I want only

  • Dial up connection problem

    If i leave the internet cord pluged into the computer when i start up, or after i disconnect from the internet, it says the phone line is busy and wont connect. If I unhook the cord and reconnect it, then try connecting to the internet it connects ri

  • How to get the memory address of an array (pointer in C)?

    I am writing an application that exchanges data with a PXI device via DMA.  Basically I will provide it a memory address and a direction, and it transfers the data.  I would like to give it the memory location of an array in LabVIEW, but I do not kno

  • Document review in workflow

    Hi folks, is there a simple way to review the document sent via approval workflow to the user? In the default approval workflow only the location of the file is provided; since I want to check the document before approval I have to go to this locatio