Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Development Tools
 Other Development Tools
 client-server problem

Author  Topic 

cyberpd
Yak Posting Veteran

60 Posts

Posted - 2007-03-08 : 09:02:16
My client wants a search program. I am to use VB6 and SQL Server 2000.
The number of records will be not less than 500,000.

Client's requirement is the program is going to run from a compact disc and not to be installed.

That means I have to give the mdf file along with the program in the disc.

My question : How am i going to connect with the mdf file as the user is not going to download anything, and maybe, in most of the cases, he will not have SQL server installed in his machine. What about the log file? As we can not write anything on the cd..


SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2007-03-08 : 09:17:46
Include SQL Server Express. Install it.
Attach the database.


Peter Larsson
Helsingborg, Sweden
Go to Top of Page

harsh_athalye
Master Smack Fu Yak Hacker

5581 Posts

Posted - 2007-03-08 : 09:19:37
Your requirement doesn't make sense. An .mdf file is useless without SQL server engine. You need at least MSDE (for SQL 2000) or SQL Express (for SQL 2005) and it has to be installed on the client machine.

Harsh Athalye
India.
"The IMPOSSIBLE is often UNTRIED"
Go to Top of Page

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2007-03-08 : 09:22:55
The user is "not going to download anything", so installing from pre-downloaded sql server express would be fine?


Peter Larsson
Helsingborg, Sweden
Go to Top of Page

cyberpd
Yak Posting Veteran

60 Posts

Posted - 2007-03-08 : 15:05:36
Thanks so much for the fast response.
From your suggestions what i gather are :-

1. The user, in most of the cases, will not have sql server in his machine. So, I will have to distribute the MSDE/sql server express.. along with my program.

2. when the program runs it will first install the MSDE/sql server express in the users' machine, attach the database, and will fetch record.

I want to make one thing clear that the user will not make any entry/update/delete. He will run reports and see them in grid etc and take print.

I have never installed only the DB engine. Is it possible that I can install only the DB engine in the users' machine, and that too remotely?

Then I will have to do the following things..
a) The user puts the Cd in the tray. Auto-play starts.
b) My program installs the DB engine.
c) I programmatically attach the Mdf file
d) The program then is ready to run the reports.

Is that right?

Go to Top of Page

harsh_athalye
Master Smack Fu Yak Hacker

5581 Posts

Posted - 2007-03-08 : 22:01:47
Yes. BTW, MSDE/SQL Express has it's own installation program which you can run. Also, there are certain limitation on database size etc. which you need to consider.

Harsh Athalye
India.
"The IMPOSSIBLE is often UNTRIED"
Go to Top of Page

cyberpd
Yak Posting Veteran

60 Posts

Posted - 2007-03-09 : 01:29:10
Harsh

In my case , as I said the number of records will be approximately 500,000. If I install the DB engine will it be able to handle this database? Will I need any other components to run my application?

thanks and regards.
Go to Top of Page

harsh_athalye
Master Smack Fu Yak Hacker

5581 Posts

Posted - 2007-03-09 : 01:35:00
Check this and this link for understanding limitations of MSDE/SQL Express.

Harsh Athalye
India.
"The IMPOSSIBLE is often UNTRIED"
Go to Top of Page

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2007-03-09 : 01:35:16
The client that you are referring to are all stand alone ? Not in a network ?

Why not have a dedicated server for running SQL Server 2000 and your VB program connects to the server.



KH

Go to Top of Page

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2007-03-09 : 01:48:44
or use the SQL Server 2005 compact edition
http://www.microsoft.com/sql/editions/compact/default.mspx


KH

Go to Top of Page
   

- Advertisement -