|
-
Sep 11th, 2002, 03:47 AM
#1
Thread Starter
Junior Member
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
-
Sep 11th, 2002, 03:51 AM
#2
Hyperactive Member
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."
-
Sep 11th, 2002, 03:53 AM
#3
Frenzied Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|