I have a
VB 6.0 application which has commands to access a SQL Server 2000 database. Ex:
EZCONN.Open "Provider=SQLOLEDB.1;data source=" & GDBSource & ";Initial Catalog=" & GDBName, GDBUserName, GDBPassword
Where i am reading the parameters from INI file. and the server parameters are given correctly. This line returns the following error:
[DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied.
Actually I am updating some CSV files to the database. For that I am calling databaseupdate procedure and the files gets updated one by one in a loop. I am opening the connection before the loop and i am closing it on form_unload event. The code is written in commandbutton_click event and it gets called once in the form_load event and then I am ending the application. The application is a standalone exe that runs at startup. so there is no any possibility of calling the click event twice. However it is giving this error while updating some files not for all the files. some files are getting updated to the database.
Can anyone tell what is the reason for this error and what is the solution?
please reply ASAP
Thanks..