| Testing Tutorials Testing Tutorials and Articles Discussions |
![]() |
| LinkBack | Thread Tools | Search this Thread |
|
|||
|
Loadrunnner scripting query
scenario
1. i want to make a connection to SQL Server 2005 database 2. after connecting to the database i want to execute an SQL query and retrieve the data i have written code in MS SQL protocol which is as follows. i am still not able to connect to the database. can somebody help me out in this. i'll be greatful #include "lrd.h" static LRD_INIT_INFO InitInfo = { LRD_INIT_INFO_EYECAT}; static LRD_DEFAULT_DB_VERSION DBTypeVersion[] = { { LRD_DBTYPE_ODBC, LRD_DBVERSION_NONE} }; static void FAR * SQLServerEnv1; static void FAR * SQLServer; static LRD_CONNECTION * Con1; static LRD_CURSOR * Csr1; vuser_init() { lrd_init(&InitInfo, DBTypeVersion); /* lrd_initialize_db(LRD_DBTYPE_ODBC, 3, 2); lrd_env_init(LRD_DBTYPE_ODBC, &SQLServerEnv1, 0, 0); lrd_server_attach(SQLServer, "database_name", -1, 0, 0); */ lrd_open_connection(&Con1, LRD_DBTYPE_ODBC, "userID", "password", "SFCVMQASQ21", "", 3, 0, 0); } thanks in advance. Regards, Anoop |
| Sponsored Links |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to find second max sal of employee with the co | chandraismoon | Oracle Tutorials | 7 | 05-16-2008 04:08 AM |
| scripting | rajendra1032 | Software Testing | 0 | 08-17-2007 10:20 AM |
| Query with Querying Database | rachelle | MySQL | 1 | 05-11-2007 04:41 PM |
| Performance of Query | Ralph | MySQL | 2 | 05-08-2007 05:44 PM |
| SQL QUERY IN REPORTS 6i:Pls help | nitinkoshymech | Oracle Database | 1 | 11-27-2006 10:34 AM |