當前位置:首頁 » 操作系統 » 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限制短時間內多次訪問阻止的配置。

熱點內容
安卓如何修改cpu 發布:2025-05-16 21:58:20 瀏覽:364
pythonainb 發布:2025-05-16 21:45:56 瀏覽:855
淘汰伺服器可以做家用電腦嗎 發布:2025-05-16 21:41:31 瀏覽:842
遊程編碼c語言 發布:2025-05-16 21:26:51 瀏覽:586
帝來哪個配置值得購買 發布:2025-05-16 21:12:29 瀏覽:462
什麼是nodejs前端伺服器 發布:2025-05-16 21:12:17 瀏覽:405
編譯選項立即綁定未定義符號 發布:2025-05-16 20:55:13 瀏覽:907
linuxmysql慢日誌 發布:2025-05-16 20:47:58 瀏覽:272
村兩委有哪些配置 發布:2025-05-16 20:34:47 瀏覽:294
我的世界有什麼伺服器好玩的 發布:2025-05-16 20:28:57 瀏覽:484