473,386 Members | 1,673 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,386 software developers and data experts.

Uploading Connection String?

I've got a Web App developed via VBNet. I'm using WebForms and a small Access database. It's easy enough to set the connection string when the database is on my local machine. However...I need to upload both the app and the database. Is there a way I can set the connection string similar to the old App.path routine?

Thanks
Nov 18 '05 #1
3 881
Hi Arne,

I suspect you are looking for server.mappath("accessdb.mdb") to use in
building the connection string.

Ken
"Arne Beruldsen" <Ar***********@discussions.microsoft.com> wrote in message
news:8F**********************************@microsof t.com...
I've got a Web App developed via VBNet. I'm using WebForms and a small
Access database. It's easy enough to set the connection string when the
database is on my local machine. However...I need to upload both the app
and the database. Is there a way I can set the connection string similar
to the old App.path routine?

Thanks


Nov 18 '05 #2
Thanks...
I think that's what I need...should the line in the connection string look like this?
....
"DataSource=server.mappath("MyDB.mdb"); " & _
....

It doesn't seem to accept it the way I have it written.

Thanks...
"Ken Cox [Microsoft MVP]" wrote:
Hi Arne,

I suspect you are looking for server.mappath("accessdb.mdb") to use in
building the connection string.

Ken
"Arne Beruldsen" <Ar***********@discussions.microsoft.com> wrote in message
news:8F**********************************@microsof t.com...
I've got a Web App developed via VBNet. I'm using WebForms and a small
Access database. It's easy enough to set the connection string when the
database is on my local machine. However...I need to upload both the app
and the database. Is there a way I can set the connection string similar
to the old App.path routine?

Thanks


Nov 18 '05 #3
Hi Arne,

More like:

"DataSource=" & server.mappath("MyDB.mdb") & "; " & _

"Arne Beruldsen" <Ar***********@discussions.microsoft.com> wrote in message
news:4F**********************************@microsof t.com...
Thanks...
I think that's what I need...should the line in the connection string look
like this?
...
"DataSource=server.mappath("MyDB.mdb"); " & _
...

It doesn't seem to accept it the way I have it written.

Thanks...


Nov 18 '05 #4

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

Similar topics

5
by: Kevin Ollivier | last post by:
Hi all, I've come across a problem that has me stumped, and I thought I'd send a message to the gurus to see if this makes sense to anyone else. =) Basically, I'm trying to upload a series of...
10
by: John Smith | last post by:
I know that uploading an image to a database has been covered, oh, about 3 trillion times. However, I haven't found anything covering uploading to a MySQL database with .net. Please don't...
0
by: Alex | last post by:
my app was working fine in VB.NET 2003 (and framework 1.1). Now with VB.NET 2005 (framework 2.0) the uploading to an http server (ie. www.sharebigfile.com) stops with the error "The request was...
4
by: XxLicherxX | last post by:
Hello everyone, I have created an application that generates some files. What I want the application to do now is to automatically FTP these files to a webserver. I have started implementing an...
0
by: Mika M | last post by:
Hi! I'm uploading file(s) over internet like... My.Computer.Network.UploadFile("C:\file1.txt", "ftp://some.domain.com/file1.txt", "MyUID", "MyPWD", False, 1000) ....and this is working...
1
by: WeCi2i | last post by:
Okay, I have a problem that has been stumping me for weeks. I have tried many different solutions and this is pretty much my last resort. I have seen a lot of good answers give here so I figured I...
221
Atli
by: Atli | last post by:
You may be wondering why you would want to put your files “into” the database, rather than just onto the file-system. Well, most of the time, you wouldn’t. In situations where your PHP application...
0
by: upadhyayanuj | last post by:
Hi I have an error while uploading file and then importing it into my sql table The process cannot access the file 'c:\inetpub\wwwroot\FlowLine\Excel File\Fan_Details.xls' because it is being...
10
by: =?Utf-8?B?RGFu?= | last post by:
I'm using a pure ASP upload script to handle file uploading. We run IIS6 and I'm aware of the AspMaxRequestEntityAllowed variable in the metabase. I upped this to allow the file size maximum and it...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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: 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?
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.