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

Application.StartupPath

OuTCasT
374 256MB
Hi Guys.

Can anyone help me with a problem im having.

I knw in access u can save your db into the application/bin folder and read and write straight to it in ur application

I want to publish my application with the SQL database, right now i need to install sql express on the machine that i am installing the application because i cannot get the app to read the database that i have saved in the application/bin folder.

can anyone help me out with how the connectionstring is surposed to look, ive been to www.connectionstring.com but i dont find anyuthing there.
Mar 31 '08 #1
3 2429
ck9663
2,878 Expert 2GB
What's your apps? VB? Access? ASP?

-- CK
Mar 31 '08 #2
OuTCasT
374 256MB
What's your apps? VB? Access? ASP?

-- CK
Windows app using sql database.

Expand|Select|Wrap|Line Numbers
  1. Provider=Microsoft.Jet.OLEDB.4.0; Data Source = c:\projects\vb1\books.mdb"
this is how i undestand how to connect using an access db and finding the location.
how would i do this with sql ?

i want to be able to publish the db with the application....right now i have to install sql express on the clients machine for it to read and write to the db

Expand|Select|Wrap|Line Numbers
  1. Data Source=[COMPUTER NAME]\SQLEXPRESS;Initial Catalog=ca2000;Integrated Security=True;Pooling=False
how does one get it to point to the db in the application/bin folder so when we publish it we can write/read to the db.
Apr 1 '08 #3
OuTCasT
374 256MB
wouldnt it be something like this

Expand|Select|Wrap|Line Numbers
  1. Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=ca2000;Data Source=C:\Users\user\Documents\Visual Studio 2008\Projects\Ca2000WINversion\Ca2000WINversion\bin\Debug\ca2000.mdf
Apr 1 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Robert Magnusson | last post by:
Hi All, This is sure to be an easy question. I am wondering what the accepted standard is for referencing a sub-folder below the application.exe folder? In VB6 you simply used App.Path and...
5
by: Eranga | last post by:
In c# windows applicatiopns the Application.StartupPath can be used to find the path for the executable file. How can the same be found for a console application?(we can't use application because...
8
by: jcrouse | last post by:
I am trying to run a command from a command prompt using the shell command. Here is the syntax I want to execute: Shell(lblMameExePath.Text & " -listinfo >" & Application.StartupPath &...
2
by: Ron | last post by:
Hello, I would like to retrieve the startupPath from a console application. It appears that a console application does not recognize Application, so I can't access StartupPath. Is there a way...
1
by: Sean | last post by:
Hi I created a VB.NET console app. I try to use the Application.StartupPath() but got an error: Name 'Application' is not declared. Any idea? Thanks. Sean
3
by: hayworth | last post by:
I had some code to build the name of a file: ' Build the name of the XML config file. g_strFiles.strConfig = My.Computer.FileSystem.CombinePath(Application.StartupPath, "\Settings\Config...
2
by: al jones | last post by:
There is no installation for the program I wrote, one just copies the files to some directory and runs it from there, I have both a working program and help file (.chm). From within the IDE...
0
by: =?Utf-8?B?Sm9iIExvdA==?= | last post by:
I am using BulkLoad from .NET application as follows SQLXMLBULKLOADLib.SQLXMLBulkLoad4Class obj = new SQLXMLBULKLOADLib.SQLXMLBulkLoad4Class(); obj.ConnectionString =...
5
getgagan
by: getgagan | last post by:
how to find Main folder where bin folder exists using application.startuppath in c# IF application.startuppath=D:\Test\ThreadExample\DnsLookup\DnsLookup\bin\Debug Then i need to find the...
0
by: =?Utf-8?B?U2hlbGRvbg==?= | last post by:
Hello - I am trying to access a Crystal Report. VS 2008 automatically creates the report in the same directory as the forms. When attempting to use Application.StartupPath, it takes me to the...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.