sql on standalone CD

hi experts.
examin that i have M.S. SQL database.

how can i create an application with VB that use SQL database and
this application will distribute on standalone CD.

some user had not sqlserver on its machine,
and my cd must be STANDALONE.

plz help me .
mahrayanAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Guy Hengel [angelIII / a3]Billing EngineerCommented:
you CANNOT run sql server from CD, it MUST be installed.

to have a database on a removable device:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/createdb/cm_8_des_03_92hx.asp
mahrayanAuthor Commented:
i think M.S. Access databade can used in standalone cd without installing it on user's machine.
and in Vb u can get data from it.

can i use sql database by programming in vb. and not install sql server on user's machine?

Hit_MNCommented:
Do you mean opening the DB _directly_ from the CD ??

Access can't do this, since he would try to open the .ldb file on the CD (that is impossible).
I use SQLite (http://www.sqlite.org/) that can be read directly from a CD, if needed.

HTH
Marco
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

Éric MoreauSenior .Net ConsultantCommented:
Hi mahrayan,

> can i use sql database by programming in vb. and not install sql server
> on user's machine?

No simply because VB cannot talk directly to .mdf files (SQL Server files). It has to go through the server which requires to be installed.

If you don't have to much data, you may consider alternatives like XML files.

Cheers!

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Carl TawnSystems and Integration DeveloperCommented:
Bear in mind of course that any datastore that you have on CD will be Read-only (i.e you won't be able to add/edit/delete records)
mahrayanAuthor Commented:
i want that it be readonly.
my database have some data and programme must search some data from it and show result to user.
consider some PAPER,
database has some feilds like Author,text,date and ...
and user can search some word of text and find PAPER.




mahrayanAuthor Commented:
>No simply because VB cannot talk directly to .mdf files

what about *.mdb?

and installing minimum files like "Microsoft Jet Database Engine " or ...

Éric MoreauSenior .Net ConsultantCommented:
>>what about *.mdb?

The PC that will run your application will need to be ready for VB, MDAC (data access), Jet pack, any 3rd party you could use. Nothing else would be required.
mahrayanAuthor Commented:
>The PC that will run your application will need to be ready for VB, MDAC (data access), Jet pack, any 3rd party you could use. Nothing else would be required.

yes for *.mdb
but for *mdf ???
Éric MoreauSenior .Net ConsultantCommented:
>>but for *mdf ???

You need to install SQL Server first (in addition to all other setup applications)

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.