QTP Database conenction and parameterization of the values - Printable Version +- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums) +-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP) +--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners) +--- Thread: QTP Database conenction and parameterization of the values (/Thread-QTP-Database-conenction-and-parameterization-of-the-values) |
RE: QTP Database conenction and parameterization of the values - siri - 07-24-2008 Hi the above one is the script where i specified the connection string but it is not working properly .An error is populating like "[Microsoft][ODBC driver for Oracle][Oracle]ORA-12514: TNS:listener could not resolve SERVICE_NAME given in connect descriptor" RE: QTP Database conenction and parameterization of the values - somisays - 07-24-2008 Hi, Create a DSN and use that is the script. Create a Data Source name by following these steps. Control Panel...>Administrative Tools...>Data Sources(ODBC) Click on Add...>Select Driver For oracle RE: QTP Database conenction and parameterization of the values - siri - 07-24-2008 I have created a DSN as you said . Code: Conn.Open("DSN=devmitg,username=xxx,password=yyy") RE: QTP Database conenction and parameterization of the values - somisays - 07-24-2008 Dear Siri, I corrected your code.Try this. Code: Conn.Open("DSN=devmitg;username=xxx;password=yyy;") RE: QTP Database conenction and parameterization of the values - siri - 07-24-2008 Hi Sridhar , Can i get ur contact nubmer so that i can briefly explain my problem See this is the code modified one : Code: Set Conn = CreateObject("ADODB.Connection") ' RE: QTP Database conenction and parameterization of the values - somisays - 07-24-2008 Hi, That code looks perfectly fine for me. If you srill having a problem that means check whether oracle client installed on your machine or not. I live in London,UK. or try the following connection string... Code: strCon = "Driver={Microsoft ODBC for Oracle}; " & _ RE: QTP Database conenction and parameterization of the values - siri - 07-24-2008 Hi Sridhar, I am not getting problem with the Oracle conenction getting problem with the execution of the query where you have specified like 'Rs.Open sql,Conn I am not able to catch the values fro mthe query i will send you the ppt to ur mail id so that u can understand much better RE: QTP Database conenction and parameterization of the values - siri - 07-24-2008 Hi sridhar , I have sent you mail regarding the connection and my requirement . The word doc con tains all the neccessary things . Waiting for your reply RE: QTP Database conenction and parameterization of the values - somisays - 07-25-2008 Hi Siri , Modified Code... Code: Set Conn = CreateObject("ADODB.Connection") Please use the above code and i tried this on my computer it is working so please let me know any problem. RE: QTP Database conenction and parameterization of the values - siri - 07-25-2008 Hi Sridhar , When i am executing the script i am getting error at Rs.Open sql,Conn please check this . |