PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Hébergement serveur > comp.db.ms-sqlserver > DLL -> Database
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
DLL -> Database

Réponse
 
LinkBack Outils de la discussion
Vieux 27/03/2008, 02h49   #1
Tom van Stiphout
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: DLL -> Database

On Wed, 26 Mar 2008 17:52:52 -0800, Jim Johnson <aopiyy001@yahoo.com>
wrote:

This sounds a lot like a middle-tier object. In Micrsoft examples you
often see the term "DAL" = Data Access Layer.
In my opinion, if this DLL is *ONLY* a passthrough between your
front-end app and your database, the benefits are slim to none. If
this DLL actually does some work, it may be a GREAT solution.

I may like to see a more object-oriented solution, not just a long
list of API calls. Perhaps a Program object, and a Programs list
object.

Read up on 3-tier applications, multi-tier applications, and see if
the concepts apply to your situation.

-Tom.




>Is it a good idea to create a DLL API for DB connection + DB query
>calls?
>
>I guess it's the same for creating it in VC++ static library?
>
>so my DLL will have API in header file like
>
>connectSQLServer(){
> SQLConnection sql = new SQLConnection();
>}
>
>getProgramForTVChannel ( String Channel, Time TimePeriod ){
> // do the query for DB
>}
>
>searchProgram ( String Keyword ){
> // do some DB query and return result
>}
>
>... and other DLL API function for DB query

  Réponse avec citation
Vieux 27/03/2008, 02h52   #2
Jim Johnson
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut DLL -> Database

Is it a good idea to create a DLL API for DB connection + DB query
calls?

I guess it's the same for creating it in VC++ static library?

so my DLL will have API in header file like

connectSQLServer(){
SQLConnection sql = new SQLConnection();
}

getProgramForTVChannel ( String Channel, Time TimePeriod ){
// do the query for DB
}

searchProgram ( String Keyword ){
// do some DB query and return result
}

.... and other DLL API function for DB query
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 22h42.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,08290 seconds with 10 queries