473,465 Members | 1,964 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

In too deep

Recently, I was charged with developing an ODBC driver for a proprietary
database.

I have no experience in developing ODBC drivers. Looking to see if there
are any resources for this other than th 3,000 - 25,000 dollar SDK's.

-CJ
Nov 20 '05 #1
10 953
hum, why a proprietary database
a sql server costs peanuts...
there must be a damn good reason :-)

"CJ Taylor" <no****@blowgoats.com> wrote in message
news:10*************@corp.supernews.com...
Recently, I was charged with developing an ODBC driver for a proprietary
database.

I have no experience in developing ODBC drivers. Looking to see if there
are any resources for this other than th 3,000 - 25,000 dollar SDK's.

-CJ

Nov 20 '05 #2
The system is a legacy system written back in the 80's in thie f#$@ed up
language called Guru. It's a DBMS, expert system, and development
environement all in one. They developed an ODBC driver but it doesn't work
(well sorta, if you don't ever want to extract anything above 255
characters).

The goal of what I'm developing is to create a "Gateway" between this stupid
system and SQL Server, so I can do real reporting and data manipulation.
The system was never intended to go above 10 users (we are sitting well
above 200) but no one has been able to replace it because of current
infrastructure.

Soooooo...

We are devising a solution to do a slow transition to a new MRP by creating
gateways to duplicate data between different DBMS's. We would use the ODBC
one that came with it, but the leakiness causes machines to crash constantly
and even if you do send the username and password via connection string, its
still opens up a modal window asking for username and password.

Now, my solution (as delightfully ghetto as it may sound) was to use spy++
to get a fix on the window when it opens up, then install a message filter
in a windows service to monitor for this (I don't think VB.NET can do this
for me, so I have to write the Filter in VB6 to do a global hook, maybe I'm
wrong) and then, tell the mouse to go to a relative position and click the
OK button when it pops up.

Problem sitll exists that the ODBC driver leaks and no garbage collection to
clean it up (I'm so spoiled from .NET). So its kinda like 6 in one half a
dozen in the other. Not a solution.

So there we are. =) That a good enough reason? =)

-CJ

"Dominique Vandensteen" <domi.vds_insert@tralala_tenforce.com> wrote in
message news:uT**************@tk2msftngp13.phx.gbl...
hum, why a proprietary database
a sql server costs peanuts...
there must be a damn good reason :-)

"CJ Taylor" <no****@blowgoats.com> wrote in message
news:10*************@corp.supernews.com...
Recently, I was charged with developing an ODBC driver for a proprietary
database.

I have no experience in developing ODBC drivers. Looking to see if there are any resources for this other than th 3,000 - 25,000 dollar SDK's.

-CJ


Nov 20 '05 #3
<soapbox>
FWIW, most of the information is in the MSDN library. (that's probably the
SDK you speak of) IMHO any company that is willing spend the money on
someone developing a proprietary DB and ODBC drivers, should be willing to
fork over the cash for the MSDN library.
</soapbox>

That being said, have you had a look at this? (watch for wrapping)
http://msdn.microsoft.com/library/en...asp?frame=true

You can download the source for the ODBC drivers for MySQL
(http://www.mysql.org). That my give you another place to learn from.

Writing an ODBC driver is not going to be an easy task and not for the faint
of heart, so, best of luck

Regards
Brian W

"CJ Taylor" <no****@blowgoats.com> wrote in message
news:10*************@corp.supernews.com...
Recently, I was charged with developing an ODBC driver for a proprietary
database.

I have no experience in developing ODBC drivers. Looking to see if there
are any resources for this other than th 3,000 - 25,000 dollar SDK's.

-CJ

Nov 20 '05 #4
Brian,

Have a MSDN Universal Subscription... so you can step off your xml compliant
soapbox. =)

I don't disagree that its a diffucult an arduous task. The biggest issue
is, we didn't define the file formats, we didn't design the database, it was
all here before any of the IT department was here (in fact, in some ways I
think it was invented before some of us were even born...)

Just wanted to clear up that we didnt' develop the DB, just making do with
what we have.

Thanks for contributing to the community,
CJ

"Brian W" <brianw@gold_death_2_spam_rush.com> wrote in message
news:Ok**************@tk2msftngp13.phx.gbl...
<soapbox>
FWIW, most of the information is in the MSDN library. (that's probably the
SDK you speak of) IMHO any company that is willing spend the money on
someone developing a proprietary DB and ODBC drivers, should be willing to
fork over the cash for the MSDN library.
</soapbox>

That being said, have you had a look at this? (watch for wrapping)
http://msdn.microsoft.com/library/en...asp?frame=true
You can download the source for the ODBC drivers for MySQL
(http://www.mysql.org). That my give you another place to learn from.

Writing an ODBC driver is not going to be an easy task and not for the faint of heart, so, best of luck

Regards
Brian W

"CJ Taylor" <no****@blowgoats.com> wrote in message
news:10*************@corp.supernews.com...
Recently, I was charged with developing an ODBC driver for a proprietary
database.

I have no experience in developing ODBC drivers. Looking to see if there are any resources for this other than th 3,000 - 25,000 dollar SDK's.

-CJ


Nov 20 '05 #5
Sorry to jump in on this part of the thread...

I feel you pain, brother!

Maybe a "slow transition" isn't the way to go here.

IMHO it would be more feasible to get new system up and running, i.e..
tested-debugged-tested again etc. Then do a swap over-night (or the weekend)
by exporting the data from the old DB and importing the data into the new
DB.

Just my $.02. (I know, you probably don't have any control.) :)

Regards
Brian W
"CJ Taylor" <no****@blowgoats.com> wrote in message
news:10*************@corp.supernews.com...
The system is a legacy system written back in the 80's in thie f#$@ed up
language called Guru. It's a DBMS, expert system, and development
environement all in one. They developed an ODBC driver but it doesn't work (well sorta, if you don't ever want to extract anything above 255
characters).

The goal of what I'm developing is to create a "Gateway" between this stupid system and SQL Server, so I can do real reporting and data manipulation.
The system was never intended to go above 10 users (we are sitting well
above 200) but no one has been able to replace it because of current
infrastructure.

Soooooo...

We are devising a solution to do a slow transition to a new MRP by creating gateways to duplicate data between different DBMS's. We would use the ODBC one that came with it, but the leakiness causes machines to crash constantly and even if you do send the username and password via connection string, its still opens up a modal window asking for username and password.

Now, my solution (as delightfully ghetto as it may sound) was to use spy++
to get a fix on the window when it opens up, then install a message filter
in a windows service to monitor for this (I don't think VB.NET can do this
for me, so I have to write the Filter in VB6 to do a global hook, maybe I'm wrong) and then, tell the mouse to go to a relative position and click the OK button when it pops up.

Problem sitll exists that the ODBC driver leaks and no garbage collection to clean it up (I'm so spoiled from .NET). So its kinda like 6 in one half a dozen in the other. Not a solution.

So there we are. =) That a good enough reason? =)

-CJ

"Dominique Vandensteen" <domi.vds_insert@tralala_tenforce.com> wrote in
message news:uT**************@tk2msftngp13.phx.gbl...
hum, why a proprietary database
a sql server costs peanuts...
there must be a damn good reason :-)

"CJ Taylor" <no****@blowgoats.com> wrote in message
news:10*************@corp.supernews.com...
Recently, I was charged with developing an ODBC driver for a proprietary database.

I have no experience in developing ODBC drivers. Looking to see if there are any resources for this other than th 3,000 - 25,000 dollar SDK's.

-CJ



Nov 20 '05 #6
agee
go for the heavy but short pain ;-)
"Brian W" <brianw@gold_death_2_spam_rush.com> wrote in message
news:O%****************@tk2msftngp13.phx.gbl...
Sorry to jump in on this part of the thread...

I feel you pain, brother!

Maybe a "slow transition" isn't the way to go here.

IMHO it would be more feasible to get new system up and running, i.e..
tested-debugged-tested again etc. Then do a swap over-night (or the weekend) by exporting the data from the old DB and importing the data into the new
DB.

Just my $.02. (I know, you probably don't have any control.) :)

Regards
Brian W
"CJ Taylor" <no****@blowgoats.com> wrote in message
news:10*************@corp.supernews.com...
The system is a legacy system written back in the 80's in thie f#$@ed up
language called Guru. It's a DBMS, expert system, and development
environement all in one. They developed an ODBC driver but it doesn't work
(well sorta, if you don't ever want to extract anything above 255
characters).

The goal of what I'm developing is to create a "Gateway" between this

stupid
system and SQL Server, so I can do real reporting and data manipulation.
The system was never intended to go above 10 users (we are sitting well
above 200) but no one has been able to replace it because of current
infrastructure.

Soooooo...

We are devising a solution to do a slow transition to a new MRP by

creating
gateways to duplicate data between different DBMS's. We would use the

ODBC
one that came with it, but the leakiness causes machines to crash

constantly
and even if you do send the username and password via connection string,

its
still opens up a modal window asking for username and password.

Now, my solution (as delightfully ghetto as it may sound) was to use spy++
to get a fix on the window when it opens up, then install a message filter in a windows service to monitor for this (I don't think VB.NET can do this for me, so I have to write the Filter in VB6 to do a global hook, maybe

I'm
wrong) and then, tell the mouse to go to a relative position and click

the
OK button when it pops up.

Problem sitll exists that the ODBC driver leaks and no garbage

collection to
clean it up (I'm so spoiled from .NET). So its kinda like 6 in one
half a
dozen in the other. Not a solution.

So there we are. =) That a good enough reason? =)

-CJ

"Dominique Vandensteen" <domi.vds_insert@tralala_tenforce.com> wrote in
message news:uT**************@tk2msftngp13.phx.gbl...
hum, why a proprietary database
a sql server costs peanuts...
there must be a damn good reason :-)

"CJ Taylor" <no****@blowgoats.com> wrote in message
news:10*************@corp.supernews.com...
> Recently, I was charged with developing an ODBC driver for a

proprietary > database.
>
> I have no experience in developing ODBC drivers. Looking to see if

there
> are any resources for this other than th 3,000 - 25,000 dollar SDK's. >
> -CJ
>
>



Nov 20 '05 #7

"Brian W" <brianw@gold_death_2_spam_rush.com> wrote in message
news:O%****************@tk2msftngp13.phx.gbl...
Sorry to jump in on this part of the thread...

Not a problem at all, =)
I feel you pain, brother!

Maybe a "slow transition" isn't the way to go here.

IMHO it would be more feasible to get new system up and running, i.e..
tested-debugged-tested again etc. Then do a swap over-night (or the weekend) by exporting the data from the old DB and importing the data into the new
DB.

The issue is on the swap over is still exporting the data. Plus being in an
environment that runs 24/7 doesn't help =( *manufacturing firm*

One of our primary issues is bad programming, not necessarily on our part,
but the part of a) the people that designed the system, b) our predecessors.
The amount of business logic embedded in this thing is 15 years of work, a
lot of repeat stuff with little differences in it. (A nightmare to an OO
style programmer like myself, in fact, the whole language is procedure
oriented, events are non existant, messaging doesn't exist either, the most
functionalyt it has is that you can write external c libraries that it can
read, but thats about it.

So. we have so much embedded stuff we have to start doing it slowly to weed
it all out. Check this out, you can only have one procedure per file.
Yeah... I said it, one procedure per file. The idea of a class, WHOO! Nope.
not here. 8.3 character file limits (not real suprised with an old system
like this, I just got used to joliet conventions), and a plethera of other
hindereances that stop us from doing a "quick switch"

Now, the other issue involved is picking out a new system for us. We get a
lot of resistance because source code is desired by some. I have my
feelings on that and my defenses agasint open source models (cost, microsoft
axtapa is roughly 1.2 mil w/source) but they tend to be ignored.

So I'm workign with everything I got, and yes, I know there are many many
better ways to accomplish this, but there are all these "exceptions" to my
situation..

*sigh*

But none the less, your help / suggestions are greatly appreciated. I
wouldn't be asking if I didn't want them. I just want to get the job done
right. =)

Peace,
CJ

Just my $.02. (I know, you probably don't have any control.) :)

True.
Regards
Brian W
"CJ Taylor" <no****@blowgoats.com> wrote in message
news:10*************@corp.supernews.com...
The system is a legacy system written back in the 80's in thie f#$@ed up
language called Guru. It's a DBMS, expert system, and development
environement all in one. They developed an ODBC driver but it doesn't work
(well sorta, if you don't ever want to extract anything above 255
characters).

The goal of what I'm developing is to create a "Gateway" between this

stupid
system and SQL Server, so I can do real reporting and data manipulation.
The system was never intended to go above 10 users (we are sitting well
above 200) but no one has been able to replace it because of current
infrastructure.

Soooooo...

We are devising a solution to do a slow transition to a new MRP by

creating
gateways to duplicate data between different DBMS's. We would use the

ODBC
one that came with it, but the leakiness causes machines to crash

constantly
and even if you do send the username and password via connection string,

its
still opens up a modal window asking for username and password.

Now, my solution (as delightfully ghetto as it may sound) was to use spy++
to get a fix on the window when it opens up, then install a message filter in a windows service to monitor for this (I don't think VB.NET can do this for me, so I have to write the Filter in VB6 to do a global hook, maybe

I'm
wrong) and then, tell the mouse to go to a relative position and click

the
OK button when it pops up.

Problem sitll exists that the ODBC driver leaks and no garbage

collection to
clean it up (I'm so spoiled from .NET). So its kinda like 6 in one
half a
dozen in the other. Not a solution.

So there we are. =) That a good enough reason? =)

-CJ

"Dominique Vandensteen" <domi.vds_insert@tralala_tenforce.com> wrote in
message news:uT**************@tk2msftngp13.phx.gbl...
hum, why a proprietary database
a sql server costs peanuts...
there must be a damn good reason :-)

"CJ Taylor" <no****@blowgoats.com> wrote in message
news:10*************@corp.supernews.com...
> Recently, I was charged with developing an ODBC driver for a

proprietary > database.
>
> I have no experience in developing ODBC drivers. Looking to see if

there
> are any resources for this other than th 3,000 - 25,000 dollar SDK's. >
> -CJ
>
>



Nov 20 '05 #8
* "CJ Taylor" <no****@blowgoats.com> scripsit:
Recently, I was charged with developing an ODBC driver for a proprietary
database.


Did you ask that question in the database group too
(news:microsoft.public.dotnet.framework.adonet)?

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #9
CJ,
As you know, this is a .NET newsgroup! ;-)

Do you really want an ODBC :-( driver?

I would consider creating an ADO.NET Data Provider :-) instead!

http://msdn.microsoft.com/library/de...derlibrary.asp

http://msdn.microsoft.com/library/de...taprovider.asp

Then you can use familiar ADO.NET commands with your custom provider...

Hope this helps
Jay

"CJ Taylor" <no****@blowgoats.com> wrote in message
news:10*************@corp.supernews.com...
Recently, I was charged with developing an ODBC driver for a proprietary
database.

I have no experience in developing ODBC drivers. Looking to see if there
are any resources for this other than th 3,000 - 25,000 dollar SDK's.

-CJ

Nov 20 '05 #10
Cor
Hi CJ,

But you are lucky I did not hear that it is EBCDIC so it is probably ASCII.

:-))

No flame just fun,

Cor


Nov 20 '05 #11

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Tony Johansson | last post by:
Hello! I'm reading in a book about C++ and that is something that sound strange. It says "Pointers have reference-assignment semantics similar to those in Java. For example, after the...
4
by: fperfect13 | last post by:
Hi, I wanted to perform a deep copy of an array. Searching on google I ran into different opinions : C# Interview Questions (http://blogs.wwwcoder.com/tsvmadhav/archive/2005/04/08/2882.aspx)...
1
by: oDDskOOL | last post by:
I realized today that the Hashtable.Clone only produces a shallow copy... that makes me go mad that M$ doesn't even provide a deep copy ctor for the Hashtable class ! mighty tech ducks might...
4
by: Dennis | last post by:
I have several Data Structures, say "mystruct" which contain arrays of bytes, other structures, etc. I then dimension a variable (var1) as "mystruct" and set the various elements var1 to data. I...
6
by: Desmond Cassidy | last post by:
Hi, I'm sure this has been asked several times before but I'll risk it ;-) If I wish to save an Arraylist to another Arraylist and work on te original without affecting the contents of the new...
5
by: BenW | last post by:
Hello, What is the easiest way to make "deep copy" of my Hashtable? How about with other Collection classes in C#, any documents available? I don'r actually understand why Framework's...
2
by: bonk | last post by:
I have come across the need to distinguish between the creation of a deep and a shallow copy and with great interest I have read this article: ...
13
by: blangela | last post by:
I have decided (see earlier post) to paste my Word doc here so that it will be simpler for people to provide feedback (by directly inserting their comments in the post). I will post it in 3 parts...
4
by: shuisheng | last post by:
Dear All, Is there any easy way to make sure all my object copies are deep copy or shallow copy? I do not like to implement it in each class one by one. Thanks, Shuisheng
3
by: raylopez99 | last post by:
The "C# Cookbook" (O'Reilly / Jay Hilyard), section 3.26, is on deep cloning versus shallow cloning. The scanned pages of this book are found here: http://www.sendspace.com/file/mjyocg (Word...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.