• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 228
  • Last Modified:

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 .
0
mahrayan
Asked:
mahrayan
1 Solution
 
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
0
 
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?

0
 
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
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
É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!
0
 
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)
0
 
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.




0
 
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 ...

0
 
É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.
0
 
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 ???
0
 
Éric MoreauSenior .Net ConsultantCommented:
>>but for *mdf ???

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

0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now