Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to connect QTP to SQL Server 2005
#3
Solved: 11 Years, 4 Months ago
Code:
DBType="sqlserver" Then
  UID = GetLocalParameter("sqlserver.user")
  PWD = GetLocalParameter("sqlserver.password")
  SERVER= GetLocalParameter("sqlserver.servername")
  DATABASE= GetLocalParameter("sqlserver.servername")
  DATASOURCE=GetLocalParameter("sqlserver.host")
  PORTNUM=GetLocalParameter("sqlserver.port")
  set conn=Createobject("ADODB.Connection")
  Srvname= "PROVIDER=SQLOLEDB;DATA SOURCE="&DATASOURCE&","&PORTNUM&";UID="&UID & ";PWD="&PWD&";DATABASE="
  conn.open Srvname
Reply


Messages In This Thread
RE: How to connect QTP to SQL Server 2005 - by Jackomcnabb - 06-17-2009, 07:05 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to identify an error page occurring in server in between the qtp run. aswini 1 1,782 05-04-2017, 03:52 PM
Last Post: Ankur
  Connect to IBM MQ using UFT 12.5 soumen 2 4,557 03-17-2016, 11:16 AM
Last Post: vinod123
  DB2 Connect connection with IE 11 SRP 1 2,617 12-18-2015, 12:41 PM
Last Post: vinod123
  Exe invoked through UFT is unable to access IIS and SQL Server service bkdevise 0 2,146 08-25-2015, 05:49 PM
Last Post: bkdevise
  “Cannot connect to 8822 (connection timed out)" Ikbal 0 2,126 12-08-2014, 11:38 PM
Last Post: Ikbal

Forum Jump:


Users browsing this thread: 1 Guest(s)