Results 1 to 3 of 3

Thread: Reusable Class

  1. #1

    Thread Starter
    Junior Member
    Join Date
    May 2002
    Location
    India
    Posts
    16

    Reusable Class

    How can one create a class (.dll) that can be used for connecting to different databases like SQL Server and Oracle so that it can be used with any application for dtabase connection. Plz help me come out of this.
    Venkata Ramana,
    SoftPro Systems

  2. #2
    Hyperactive Member
    Join Date
    Jan 2002
    Location
    The Netherlands
    Posts
    425
    I know there are ways to create a DNS so that your application can connect to the Database via this DNS, but how, I don't know. Maybe this could solve your problem... It is not the solution to your question though.
    "Experience is something you don't get until just after you need it."

  3. #3
    Frenzied Member swatty's Avatar
    Join Date
    Aug 2002
    Location
    somewhere on earth
    Posts
    1,478
    Don't know if syntax is same on both db's.

    To make your dll usable for both , don't hard code anything.
    Add a form for the connection parameters to be entered by the user.

    Like server, database, user, pwd.
    Code:
    If Question = Incomplete Then
       AnswerNextOne
    Else
       ReplyIfKnown
    End If
    cu Swatty

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width