Js|odbc|server| stored Procedure | data | database <%--
Author: He Zhiqiang [hhzqq@21cn.com]
Date: 2000-08-04
2000-08-16
Version: 1.1
Functions: JSP database Operations routines-stored procedures-Jdbc-odbc-sql Server
The stored procedures for SQL Server are as follows:
CREATE PROCEDURE Sp_jsptest
@yourname varchar (50),
@myname varchar (m) output
As
Select "Hello," + @yourname + ", very pleased to meet you, ^_^"
Set @myname = "He Zhiqiang"
Return 1
Go
--%>
<%
}
else{
Make the necessary character encoding conversion for the data entered by the user
StrName = new Java.lang.String (strname.getbytes ("iso-8859-1"));
Variable declaration
Java.sql.Connection Sqlcon; Database Connection objects
Java.sql.CallableStatement sqlstmt; Callable Statement Object
Java.sql.ResultSet Sqlrst; Result set Object
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.