• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 233
  • 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
Cloud Class® Course: CompTIA Healthcare IT Tech

This course will help prep you to earn the CompTIA Healthcare IT Technician certification showing that you have the knowledge and skills needed to succeed in installing, managing, and troubleshooting IT systems in medical and clinical settings.

 
É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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Ruby Fundamentals

This course will introduce you to Ruby, as well as teach you about classes, methods, variables, data structures, loops, enumerable methods, and finishing touches.

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