Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Unspecified error while connecting database
#1
Not Solved
Hi,

I'm getting unspecified error while opening a recordset and it is not happening for all the tables. The datatype used for tables are only INT, CHAR and VARCHAR. the only possibility i see is huge volume of data, but the error is thrown even for table with 4000 records. FYI .. password is not encrypted

Code:
Dim strConn      
strConn = "Driver= {Microsoft ODBC for Oracle}; " &_        
                  "ConnectString=(DESCRIPTION=" &_    
                  "(ADDRESS=(PROTOCOL=TCP)" &_    
                  "(HOST=) (PORT=1521))" &_        
                  "(CONNECT_DATA=(SERVICE_NAME=)));uid=; pwd=;"  
            
Dim obConnect  
Dim obRecset    
            
Set obConnect =CreateObject("ADODB.Connection")          
Set obRecset = CreateObject("ADODB.Recordset")  
            
obConnect.Open strConn


Dim queryStr      
queryStr = "select * from mv_product"        
            
Set obRecset = obConnect.Execute(queryStr)        


obRecset.MoveFirst        
            
GetDBField = obRecset.Fields(0).Value    
msgbox GetDBField
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Connecting to Cognos TM1 Cube using UFT/QTP anujkabra1985 0 1,728 10-09-2015, 01:51 AM
Last Post: anujkabra1985
  Getting error while connecting from qtp to oracle sql developer. Ritanjali Pradhan 1 3,259 09-26-2014, 02:06 PM
Last Post: vinod123
  UFT 11.5 throwing unspecified error while running for Delphi object rakeshsahay 0 3,852 12-25-2013, 10:43 AM
Last Post: rakeshsahay
  Unspecified error displayed rmarkil 4 10,460 09-16-2013, 07:41 PM
Last Post: sunny89
  Connecting to oracle praveendasika 1 2,724 08-24-2012, 07:56 PM
Last Post: ravi.gajul

Forum Jump:


Users browsing this thread: 1 Guest(s)