Hai Peter.. Very much thanks for your reply...
I need a clarification from you..
Actually Why we are using this type of connection (DRIVER=Microsoft Excel Driver (*.xls);) is the point that we have in our project.. We have many systems operating with diff OS and we are not going to install MSOffice package in all the systems.. We
are going to give the datas in an excel sheet in an system and we just copy that into other systems( where the .xls file cant be opened as it is not installed in that machine).. So we have drive our project using the datas in excel in all the machines..
So we are going for ADO connection.. And ODBC connection(without DSN)
So when we are usinf this connection, it can read the datas in an excel file even if it is not installed in a machine.. That makes the sense here..
And For your information, we are not going to give datas in MSAccess(if we are going to use that, then we have to install MSOffice package) and since we are not givong datas through MSAccess, we cant use Provider=Microsoft.ACE.OLEDB.12.0;
And if we are going to use like Provider=Microsoft.Jet.OLEDB.4.0 , then we have to install MSoffice package in all systems and also ISAM i suppose..
I think that now you got some idea on what point am trying to convey..
We have to create an excel file in an system where MSOffice is installed.. Then we have to test some of the systems according to the datas specified in the excel file.. So we are going to copy the excel file in all othe systems where MSoffice package is
not installed.. And now we are going to drive the testing process by reading the datas in excel file in systems where MSOffice package is not installed.. So we are going for 'DRIVER=Microsoft Excel Driver (*.xls);DBQ=filePath\ fileName.xls'
The problem we are facing is not regarding the connection.. It is connecting well and doing well.. But after sometimes . when we are opening a connection to an excel file and driving a test and closing the connection, and after sometime we will open the
same/other connection to open the same/other excel file and driving a test and will close the connection.. when we are doing it again and again, at some point, it throws an error [Microsoft][ODBC Excel Driver]System Resource Exceeded"..To avoid
this, I changed virtual memory of paging file size for the particular drive from 256MB to 4096MB ( which was system managed earlier).. Then I continued executing, It worked fine..
But Still now, am facing the same error once for atleast 20 times if execution happens.. Means that error occuring frequency is reduced but not the error occurance..