Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
DB2 Database testing
#4
Solved: 11 Years, 4 Months, 2 Weeks ago
Below function will help to connect oracle data base.for SQL data base we have to provide required provider name.correct me if am wrong.


Public function openDatabase( byval userID, byval passwd, byval dataBase, byval sql, byref conn,byref rs)

Code:
set conn=createobject("adodb. connection")
        set rs=createobject("adodb.recordset")
        conn.open= "Provider=OraOLEDB.Oracle.1;Password=" & passwd & ";Persist Security Info=True;User ID=" &_
                                                        userID & ";Data Source=" & dataBase & ";"
    rs.open sql,conn
    
End Function
Reply


Messages In This Thread
DB2 Database testing - by QTP5659 - 02-24-2009, 04:55 AM
RE: DB2 Database testing - by Jackomcnabb - 02-25-2009, 12:40 AM
RE: DB2 Database testing - by Ankur - 02-26-2009, 02:47 PM
RE: DB2 Database testing - by papu - 02-26-2009, 03:45 PM
RE: DB2 Database testing - by swatid - 03-30-2009, 02:09 PM
RE: DB2 Database testing - by niranjan - 04-11-2009, 12:17 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  QTP for Cobol DB2 tjahe 1 2,827 04-07-2011, 01:43 PM
Last Post: basanth27

Forum Jump:


Users browsing this thread: 1 Guest(s)