Exforsys

Online Training

Loadrunnner scripting query

This is a discussion on Loadrunnner scripting query within the Testing Tutorials forums, part of the Articles and Tutorials category; scenario 1. i want to make a connection to SQL Server 2005 database 2. after connecting to the database i ...


Go Back   Exforsys > Articles and Tutorials > Testing Tutorials

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-27-2007, 12:17 AM
Junior Member
 
Join Date: Nov 2007
Posts: 1
amaithani is on a distinguished road
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new questions
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


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 03:08 AM
scripting rajendra1032 Software Testing 0 08-17-2007 09:20 AM
Query with Querying Database rachelle MySQL 1 05-11-2007 03:41 PM
Performance of Query Ralph MySQL 2 05-08-2007 04:44 PM
SQL QUERY IN REPORTS 6i:Pls help nitinkoshymech Oracle Database 1 11-27-2006 09:34 AM


All times are GMT -4. The time now is 05:26 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2004 - 2007 Exforsys Inc. All rights reserved.