Jmeter jdbc Request--sqlserver JDBC driver configuration related

Source: Internet
Author: User
Tags postgresql

1, to do the JDBC request , first to understand what this JDBC object is, now has SQL Server as an example to illustrate

First download the corresponding database driver, I have uploaded to my network disk, please download directly, no longer in the CSDN with points downloaded.

address : Http://yunpan.cn/QaEjwXyXFrA5H (Extract code: 1F35)

Note : After the download is complete, change the sqljdbc4.zip to the jar suffix name directly. Then put it under the Apache-jmeter-2.6\lib.


2, as for the creation of JMeter project here no longer detailed, direct see ( add configuration element JDBC Connectionconfiguration)



Refer to the following table for the URL and JDBC drivers above (also available in Ps:jmeter's help)

< Span style= "margin:0px; padding:0px ">datebase

< Span style= "margin:0px; padding:0px ">driver class

< Span style= "margin:0px; padding:0px ">database URL

MySQL

com.mysql.jdbc.driver

jdbc:mysql://host: Port/{dbname}

PostgreSQL

org.postgresql.driver

jdbc:postgresql:{ dbname}

Oracle

oracle.jdbc.driver.oracledriver

jdbc:oracle:thin: User/[email protected]//host:port/service

Ingres (2006)

Ingres.jdbc.IngresDriver

Jdbc:ingres://host:port/db[;attr=value]

MSSQL

Com.microsoft.sqlserver.jdbc.SQLServerDriver

Or

Net.sourceforge.jtds.jdbc.Driver

Jdbc:sqlserver://ip:1433;databasename=dbname

Or

jdbc:jtds:sqlserver://localhost:1433/"+" library "


3. in the request, fill in the SQL statement you want (Note: Variable name is the name you wrote above)



4. Direct test to see if the call was successful. If there is a 1433 port connection failure problem, please locate whether SQL Server TCP/IP is a problem, I also have a method in another article.


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.