473,388 Members | 1,213 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 software developers and data experts.

File Shares

JJ
Hi,

I have a need to read in a file share parameter from a config file to
supply a path to a database file. For ex. "\\fileserver1\database\db.mdb" I
can't just supply this to a connection string in c# to access the database.
The connetion would just throw an error, so what do I need to do in order for
the connection string accept path to database on remote machine. I wouldn't
have a mapped network drive to file server setup. So how would I go about
accepting just UNC paths and creating a legal path to database?

Thanks,

JJ
Nov 17 '05 #1
2 1183
JJ
Anyone ???

"JJ" wrote:
Hi,

I have a need to read in a file share parameter from a config file to
supply a path to a database file. For ex. "\\fileserver1\database\db.mdb" I
can't just supply this to a connection string in c# to access the database.
The connetion would just throw an error, so what do I need to do in order for
the connection string accept path to database on remote machine. I wouldn't
have a mapped network drive to file server setup. So how would I go about
accepting just UNC paths and creating a legal path to database?

Thanks,

JJ

Nov 17 '05 #2
Are you trying to connect to a db or do something with a db file?

"JJ" <JJ@discussions.microsoft.com> wrote in message
news:FE**********************************@microsof t.com...
Anyone ???

"JJ" wrote:
Hi,

I have a need to read in a file share parameter from a config file to
supply a path to a database file. For ex. "\\fileserver1\database\db.mdb" I can't just supply this to a connection string in c# to access the database. The connetion would just throw an error, so what do I need to do in order for the connection string accept path to database on remote machine. I wouldn't have a mapped network drive to file server setup. So how would I go about accepting just UNC paths and creating a legal path to database?

Thanks,

JJ

Nov 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: DCK | last post by:
Hello I've path to file, which look like this: \\COMPUTER\D$\C++\FILE_TO_DELETE.JPG This path was generated by os.path.walk() function. When i try to delete this file, os.remove() can't find...
5
by: Egor Bolonev | last post by:
import os print os.listdir("\\\\delta\\public") outputs and import os print os.listdir("\\\\delta")
1
by: Doran_Dermot | last post by:
Hi All, I'm currently using "os.listdir" to obtain the contents of some slow Windows shares. I think I've seen another way of doing this using the win32 library but I can't find the example...
7
by: Dan V. | last post by:
Situation: I have to connect with my Windows 2000 server using VS.NET 2003 and C# and connect to a remote Linux server at another company's office and query their XML file. Their file may be...
1
by: Danny | last post by:
Hello, I was hoping someone might be able to shed some light on this bizarre behaviour. I have observed some strange behaviour with System.IO.FIle.Move where it seems to be copying a file as...
8
by: luis molina Micasoft | last post by:
it seems that when i do file.copy the svchost.exe is hanged, i mean if i make 40 threads of file.copy , 40 copys of files at same time the system is going down and stop responding, this is when i'm...
0
by: Ram | last post by:
Hey, I want to get a list of all the file shares on a server in my ActiveDirectory domain, Is there a way of doing so with the DirectoryServices namespace or the ADSI COM object? Note: My server...
15
by: Sandra-24 | last post by:
Comparing file system paths as strings is very brittle. Is there a better way to test if two paths point to the same file or directory (and that will work across platforms?) Thanks, -Sandra
4
by: Lloydm | last post by:
I am able to map shares/network drives using a bat file but not able to map printers ADD SHARES net use : \\server\share ADD PRINTER net use \\server\printer The script shows command...
5
by: =?Utf-8?B?QWRyaWFuTW9ycmlz?= | last post by:
Hello! I'm trying to copy a file from another computer on the network that I do not have permission with my current logon details to access. If I open the folder using the Windows file manager...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.