PC Review


Reply
Thread Tools Rate Thread

DB Connect with App

 
 
MadCrazyNewbie
Guest
Posts: n/a
 
      24th May 2004
Hey Again Group,

Sorry to be a pain

On my App I have serveral forms All with a Database Connection, and then
Several Data Adapters.

Is this the best way to do it? i.e have a seperate DataBase Connection on
each form, or should I have one Public one?

Thanks
MCN


 
Reply With Quote
 
 
 
 
Cor Ligthert
Guest
Posts: n/a
 
      24th May 2004
Hi Simon,

In my opinion public one, however for that you have to rearrange a big part
of your current program, I would do it when I was you with your next
application.

Cor


 
Reply With Quote
 
MadCrazyNewbie
Guest
Posts: n/a
 
      24th May 2004
Cor,

Going on my DB load where I would like it to have 3 Databases I could choose
from (Development, Live Network, and Local Network), I was thinking it might
be better for me to have 3 Database connections that are public to use, or
am i confusing the matter now?

Thanks
Si

"Cor Ligthert" <(E-Mail Removed)> wrote in message
news:uMC3%(E-Mail Removed)...
> Hi Simon,
>
> In my opinion public one, however for that you have to rearrange a big

part
> of your current program, I would do it when I was you with your next
> application.
>
> Cor
>
>



 
Reply With Quote
 
Cor Ligthert
Guest
Posts: n/a
 
      24th May 2004
Hi Simon,

Using the designer to make your database handling on your form, give you, a
great help in making all things like dataadapter and strong typed datasets.
You have seen that in your code where you changed the parameters, however
there is also a "dataset.vb" class, which is created when you generate the
dataset.

You can also make a shared class, where you do your entire database handling
that will make things easier when filling the database.

The point is how you do it; there is not one solution, at this moment I have
chosen to give the commands to that class because it is than easier to fill
the parameters, maybe I change that tomorrow again.

When you start using your shared class, you should have to make all your
update, delete, and insert, SQL strings that are difficult to make, or let
the command builder do that for you, for which is often said they are buggy
(however I think not for the way you are using the commands at this moment).

When you use your database class does it means that it makes you very free
from the (minor) problems that there are also using the designer.

My biggest problem with the designer created database handling was that I
could not make a dynamically connection string, however I showed you that
that is easy to overcome and you use it now even generic I see.

That is why my advice is not to rearrange your project yet. Wait until you
have overcome other problems, this problem is a design problem, and slightly
a performance question however very interesting when you want to save SQL
server connections in my opinion.

(I thought let me make a message William Ryan style)

:-)

Cor

>
> Going on my DB load where I would like it to have 3 Databases I could

choose
> from (Development, Live Network, and Local Network), I was thinking it

might
> be better for me to have 3 Database connections that are public to use, or
> am i confusing the matter now?
>
> Thanks
> Si
>
> "Cor Ligthert" <(E-Mail Removed)> wrote in message
> news:uMC3%(E-Mail Removed)...
> > Hi Simon,
> >
> > In my opinion public one, however for that you have to rearrange a big

> part
> > of your current program, I would do it when I was you with your next
> > application.
> >
> > Cor
> >
> >

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Media Connect won't start....UPnP doesnt exist, can't connect Xbox =?Utf-8?B?Q2hhcmxlcyBD?= Windows XP Help 0 26th Jan 2006 09:10 PM
This code hangs on connect() if connect hangs. how to make this so that if connect hangs i time out after 10 seconds. perhaps there is someway to do this with ioctlsocket and select? can anyone show how to do this? Daniel Microsoft Windows 2000 Networking 0 15th Feb 2005 01:37 AM
Win2k stand alone: WIreless will only connect AFTER Admin logs in, user can't connect Rudy Microsoft Windows 2000 0 29th Aug 2004 07:02 AM
'Connect to' item disappeared from Start Menu and Internet doesn't connect Thumper Windows XP Networking 0 30th Jan 2004 08:06 PM
Help! Fail to connect a windows XP laptop via a wireless connect to Dlink router! Stan Windows XP Networking 2 30th Nov 2003 05:14 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:58 AM.