Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to connect QTP to SQL Server 2005
#1
Solved: 11 Years, 4 Months, 4 Weeks ago Smile 
How to connect QTP to SQL Server 2005Smile
Reply
#2
Solved: 11 Years, 4 Months, 4 Weeks ago
Hi

refer to this site

http://www.connectionstrings.com/
Reply
#3
Solved: 11 Years, 4 Months, 4 Weeks 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


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,809 05-04-2017, 03:52 PM
Last Post: Ankur
  Connect to IBM MQ using UFT 12.5 soumen 2 4,625 03-17-2016, 11:16 AM
Last Post: vinod123
  DB2 Connect connection with IE 11 SRP 1 2,655 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,193 08-25-2015, 05:49 PM
Last Post: bkdevise
  “Cannot connect to 8822 (connection timed out)" Ikbal 0 2,182 12-08-2014, 11:38 PM
Last Post: Ikbal

Forum Jump:


Users browsing this thread: 1 Guest(s)