Dear All,
I have a number of text log files sitting on a server. As this server is on another domain it requires a username and password to be entered before the user can access the drive (mapped on each user's pc).
I am using an OLEDB connection to display the contents of a log file. This works fine, but only if I have manually supplied the username and password for the server before running the code.
Connection String:
I am looking for either a way of automatically supplying the username\password
or
A method of prompting the user for the login credentials and somehow passing these to the server, so a connection can be opened.
I've hit somewhat of a wall on this, so any advice would be greatly appreciated.
Thanks in advance
Ben Cooper
I have a number of text log files sitting on a server. As this server is on another domain it requires a username and password to be entered before the user can access the drive (mapped on each user's pc).
I am using an OLEDB connection to display the contents of a log file. This works fine, but only if I have manually supplied the username and password for the server before running the code.
Connection String:
Code:
Provider=Microsoft.Jet.OLEDB.4.0;Data Source=\\FtpSrv01\FTP\;Extended Properties='text;HDR=No;FMT=Delimited'
I am looking for either a way of automatically supplying the username\password
or
A method of prompting the user for the login credentials and somehow passing these to the server, so a connection can be opened.
I've hit somewhat of a wall on this, so any advice would be greatly appreciated.
Thanks in advance
Ben Cooper