当前位置:首页 » 操作系统 » qtp数据库连接

qtp数据库连接

发布时间: 2022-10-01 17:33:59

㈠ qtp连oracle数据库,提示“[Microsoft][ODBC 驱动程序管理器] 未发现数据源名称并且未指定默认驱动程序”

第一,QTP本身自带有个连接数据库的小工具,你用小工具确保连接字符串正确。PS:网上有些文件可能给的连接字符串不正确。
第二,在第一步的基础上连接数据库成功后,第二步请用Command对象查询数据。
如果使用Record或者Connection去查询可能会导致多次查询后,Session达到最大没有释放,或者受到数据库Server限制短时间内多次访问阻止的配置。

㈡ QTP连接oracle数据库进行查询时报错:在执行命令过程中,发生了一个或多个错误。

// Rs.Open strsql,Cnn,1,3 '(执行到此处报错)
Cnn,1,3 有问题。因为第一个数字(1)是代表游标在数据集内游动的方式;第二个数字代表以什么方式进行数据库访问。
综上所述:你应给把Cnn,1,3 换成:Cnn,3,1;3代表是动态游标;1代表对数据库是只读方式;
你再试试,应该可以的;不行咱们再交流。

㈢ qtp 怎样连接mysql数据库操作

网络链接数据库的方法啊,网络一大推,在自己吧库名,链接IP,用户名密码,SQL语句改改就行了啊

㈣ 如何连接Oracle数据库6:QTP脚本示例

--1 右键表所在的数据库名--2 选择任务--3 选择生成脚本--4 选择设置脚本编写选项--5 保存到文件--高级--倒数第二行要编写脚本的数据的类型--选择架构和数据--6 保存

㈤ QTP如何连接数据库SQL

如果数据库链接正确,那么就是你的sql语句有问题,或者数据库里没数据。没获取到结果集,也就是说你的结果集是个空的!

㈥ QTP连接DB2出现的58004错误提示问题怎么解决

提示错误:
[IBM][CLI Driver] SQL1042C 发生意外的系统错误。 SQLSTATE=58004

I have a problem in connecing QTP to DB2 and fetch query results.

My script goes like this: (sample POC)

connection_string = "Driver={IBM DB2 ODBC DRIVER};Database=ecomdb;Hostname=pyro.ecom.com;Port=50000;Protocol=TCPIP;Uid=admin;Pwd=adminqa;"

msgbox db_connect (curSession, connection_string)

Function db_connect( byRef curSession ,connection_string)
dim connection
on error Resume next
' Opening connection
set connection = CreateObject("ADODB.Connection")
If Err.Number <> 0 then
db_connect= "Error # " & CStr(Err.Number) & " " & Err.Description
err.clear
Exit Function
End If

connection.Open connection_string
If Err.Number <> 0 then
db_connect= "Error # " & CStr(Err.Number) & " " & Err.Description
err.clear
Exit Function
End If

set curSession=connection
db_connect=0

End Function

This script is popping up this error msg:

[IBM][CLI Driver] SQL1042C An unexpected system error occurred. SQLSTATE=58004

For the other connection string type,

data_DSN = "QAProd" 'dsn created in control panel
data_usr = "admin"
data_pwd = "adminqa"
data_alias = "ecomdb" 'name of the database
connection_string = "DSN="&data_DSN&";""UID="&data_usr&";""PWD="&data_pwd&";""DBALIAS="&data_alias&";"

i am getting same error or another error saying

password error - not able to reproce when posting this thread

I checked connectionstrings.com and other threads in this forum discussing about QTP-DB2 connection, but couldn't find out the answer for my problem.

help me to untie this problem.

--------------------------------------------------------------------------------
Problem Description: Error: "[IBM][CLI Driver] SQL 1042C An unexpected system error occured. SQLSTATE=58004"

The user receives a "[IBM][CLI Driver] SQL 1042C An unexpected system error occured. SQLSTATE=58004" error message when trying to connect to an IBM DB2 client using a Database Checkpoint or ADODB statements within the script.

Diagnosis: The existence of the <Quicktest Professional>/bin/QTPro.exe.Local file conflicts with the ability of ADODB to open the DB2 client.

--------------------------------------------------------------------------------

Solution: Rename the QTPro.exe.Local file in the bin directory

The QTPro.exe.Local file is used for redirection of DLLs that QuickTest Professional loads. In the case of coexistence problems with other Mercury procts, the file instructs Windows API to load DLLs from the <QuickTest Professional>\bin directory instead
of other directories. This is important for the coexistence between QuickTest Professional, LoadRunner, and old versions of Astra LoadTest.

Renaming this file should solve the problem. QuickTest Professional will work fine without QTPro.exe.Local, unless LoadRunner or Astra LoadTest are installed on the machine.

1. Close QuickTest Professional.
2. Open Windows Explorer, and navigate to the QuickTest Professional installation directory.
3. In the bin directory, locate the QTPro.exe.Local file, and rename it (for example, QTPro.exe.Local.old).
4. Restart QuickTest Professional.

After renaming the file, QuickTest Professional should be able to connect to the database and work with it as expected. If the error continues, try removing unneeded parameters in the connection string.

㈦ 请问QTP11在win7(64位)系统下能不能连接数据库一直被告知只有32位系统装QTP才可以连接数据库

第一步:输入用户名和密码第二步:输入数据库”ip:152/实例“如”192.168.8.58:1521/orcl“,解释前面的ip是oracle服务端安装位置,1521是oracle默认端口,orcl是创建数据库的实例(默认为orcl)第三步:选择连接方式为”Normal“,之后点击确定,即可完成连接操作。

㈧ qtp连接oracle数据库报错:由于系统错误 1114: 动态链接库(DLL)初始化例程失败

问题解决了吗?

㈨ qtp连oracle数据库,提示“[Microsoft][ODBC 驱动程序管理器] 未发现数据源名称并且未指定默认驱动程序”

qtp连oracle数据库,提示“[Microsoft][ODBC 驱动程序管理器] 未发现数据源名称并且未指定默认驱动程序”
第一,QTP本身自带有个连接数据库的小工具,你用小工具确保连接字符串正确。PS:网上有些文件可能给的连接字符串不正确。
第二,在第一步的基础上连接数据库成功后,第二步请用Command对象查询数据。
如果使用Record或者Connection去查询可能会导致多次查询后,Session达到最大没有释放,或者受到数据库Server限制短时间内多次访问阻止的配置。

热点内容
服务器404代表什么 发布:2025-05-17 06:39:51 浏览:559
我的世界龙蛋服务器 发布:2025-05-17 06:20:06 浏览:912
安卓系统软件怎么不更新 发布:2025-05-17 06:19:15 浏览:817
安卓夏日传说存档放哪个文件 发布:2025-05-17 06:12:44 浏览:606
如何通过服务器id找到主人 发布:2025-05-17 06:12:11 浏览:37
ug编程吧 发布:2025-05-17 06:07:45 浏览:72
sql临时表和表变量 发布:2025-05-17 06:02:38 浏览:724
苹果如何用安卓无线耳机 发布:2025-05-17 06:01:53 浏览:822
sqlserver表关系 发布:2025-05-17 06:01:02 浏览:997
2017途观配置什么音响 发布:2025-05-17 05:53:50 浏览:844