VB & SQL Problem

Hi,

   I'm running a program that loads data into an SQL Server DB.  It reads from a text file and chops up each line to the respective fields and then inserts it into the database.

  Recently, halfway through the loading, I hit a problem and I get the following errors from ODBC.  

ERROR NUMBER  ERROR DESCRIPTION
------------         -----------------
0            
5701          01000: [Microsoft][ODBC SQL Server Driver][SQL
                             Server]Changed database context to        
                             'dbDVSTemp'.
5703          01000: [Microsoft][ODBC SQL Server Driver][SQL
                            Server]Changed language setting to
                            'us_english'.
5701          01000: [Microsoft][ODBC SQL Server Driver][SQL
                            Server]Changed database context to
                            'dbDSSDevt'.


Can anybody help me cos' I'm stumped!! Thanks!

                         Puay Aun
palimAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Jon_RaymondCommented:
Are you using an ODBC DSN to make the connection?  If so does it point to the correct database, or has SQL Server been reinstalled since the ODBC connection was created?  I'm thinking that your connection doesn't see the database or server settings it expects.
0
palimAuthor Commented:
Yeas I'm using ODBC, and yes it points to the correct DB.  No it hasn't been reinstalled.  I've even removed the DSN and re-created it.  Same problem.
0
palimAuthor Commented:
Yeas I'm using ODBC, and yes it points to the correct DB.  No it hasn't been reinstalled.  I've even removed the DSN and re-created it.  Same problem.
0
simonsabinCommented:
This is an informative message provided by the SQL server driver. It should thus be treated as such i.e just carry on.

What happens is a user has a default database, when you try to connect to another database it will give you that message. Just to be sure when the message occurs check the current database is still the one it should be and then resume next.

I think it does not happen with the latest MDAC.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.