DLL -> Database

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jim Johnson

    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

    connectSQLServe r(){
    SQLConnection sql = new SQLConnection() ;
    }

    getProgramForTV Channel ( 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
Working...