Home All Groups Group Topic Archive Search About

use sql mdf from application folder

Author
1 Jan 2006 1:30 AM
aamirghanchi
Hi,

I need to deploy my simple windows application to client's pc so that
the database it requires is packaged along with it in the application
folder. I have done it through the setup project but after installation
it throws exception of being unable to acess the database. Please note
that the client does not need to have SQL server installed. I have MS
SQL Server Express and Developer Edition both installed on my m/c. I am
using SQLEXPRESS for database connection strin in my project.

My question is, does the client need to have SQL server installed on
their system?

TIA.

Author
1 Jan 2006 5:29 PM
Earl
Yup. That would be SQLExpress.

<aamirghan***@yahoo.com> wrote in message
Show quote
news:1136079006.936820.25090@g14g2000cwa.googlegroups.com...
> Hi,
>
> I need to deploy my simple windows application to client's pc so that
> the database it requires is packaged along with it in the application
> folder. I have done it through the setup project but after installation
> it throws exception of being unable to acess the database. Please note
> that the client does not need to have SQL server installed. I have MS
> SQL Server Express and Developer Edition both installed on my m/c. I am
> using SQLEXPRESS for database connection strin in my project.
>
> My question is, does the client need to have SQL server installed on
> their system?
>
> TIA.
>
Author
2 Jan 2006 3:23 PM
Otis Mukinfus
On 31 Dec 2005 17:30:07 -0800, aamirghan***@yahoo.com wrote:

Show quote
>Hi,
>
>I need to deploy my simple windows application to client's pc so that
>the database it requires is packaged along with it in the application
>folder. I have done it through the setup project but after installation
>it throws exception of being unable to acess the database. Please note
>that the client does not need to have SQL server installed. I have MS
>SQL Server Express and Developer Edition both installed on my m/c. I am
>using SQLEXPRESS for database connection strin in my project.
>
>My question is, does the client need to have SQL server installed on
>their system?
>
>TIA.

You will need to install SQL server Express on the client's machine.

After doing this do the deploy as you did before.  When the user runs
your application the MDF file will be automatically attached to the
SQL Server 2005 instance on the user's machine.
Author
5 Jan 2006 6:46 PM
aamirghanchi
Thank you for all the posts. Installing MS SQLEXP on every client m/c
just sounded too radical to me.

The 2 data tables I was using were just for lookup pupose only (no
insert,update) therefore I created 2 XMLs and load them into dataset.

Other than MS SQL is there any database that does not need to have a
server or engine pre installed on client m/c and all their data could
still be accessed from my app. I have not checked MS Access. What is
MDAC?

thanks.
Author
9 Jan 2006 5:24 PM
Earl
You might want to look into creating .dbf freetables.

<aamirghan***@yahoo.com> wrote in message
Show quote
news:1136486809.135019.193640@g47g2000cwa.googlegroups.com...
> Thank you for all the posts. Installing MS SQLEXP on every client m/c
> just sounded too radical to me.
>
> The 2 data tables I was using were just for lookup pupose only (no
> insert,update) therefore I created 2 XMLs and load them into dataset.
>
> Other than MS SQL is there any database that does not need to have a
> server or engine pre installed on client m/c and all their data could
> still be accessed from my app. I have not checked MS Access. What is
> MDAC?
>
> thanks.
>
Author
9 Jan 2006 5:41 PM
William (Bill) Vaughn
JET is overkill for what you describe.
Perhaps SQL Mobile would be better suited.
Frankly, I would use neither. I would save to a delimited file.

--
____________________________________
William (Bill) Vaughn
Author, Mentor, Consultant
Microsoft MVP
INETA Speaker
www.betav.com/blog/billva
www.betav.com
Please reply only to the newsgroup so that others can benefit.
This posting is provided "AS IS" with no warranties, and confers no rights.
__________________________________

Show quote
"Earl" <brikshoe@newsgroups.nospam> wrote in message
news:Ox07%23FUFGHA.2704@TK2MSFTNGP15.phx.gbl...
> You might want to look into creating .dbf freetables.
>
> <aamirghan***@yahoo.com> wrote in message
> news:1136486809.135019.193640@g47g2000cwa.googlegroups.com...
>> Thank you for all the posts. Installing MS SQLEXP on every client m/c
>> just sounded too radical to me.
>>
>> The 2 data tables I was using were just for lookup pupose only (no
>> insert,update) therefore I created 2 XMLs and load them into dataset.
>>
>> Other than MS SQL is there any database that does not need to have a
>> server or engine pre installed on client m/c and all their data could
>> still be accessed from my app. I have not checked MS Access. What is
>> MDAC?
>>
>> thanks.
>>
>
>

AddThis Social Bookmark Button