在经典的asp项目中使用存储过程时出现问题。 [英] Problem when using stored procedure in classic asp project.

查看:103
本文介绍了在经典的asp项目中使用存储过程时出现问题。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨朋友们!



我是使用vbscript的经典asp的新手。我有一个使用经典asp的项目,在该项目中所有页面都使用sql查询。



我要求使用存储过程而不是查询,并根据此进行更改。所有页面都有很多查询和部分查询。



假设根据名称搜索任何记录然后在变量中使用查询的一半部分(和name = $ session(name))并将其附加到主查询。



那么如何开始使用所有输入和输出参数。



请给我适当的解决方案。



做必要的事情。



是否可以更改现有页面或制作一个包含现有东西的新页面?



页面存在2000行代码和20-30次查询仅在该页面上使用?





谢谢

Hi Friends !

I am new on classic asp using vbscript. I have a project with classic asp and in that project all pages use sql queries.

I have a requirement that instead of query, use the stored procedure and make the changes according to this. All pages have lots of queries and part of queries also.

Suppose search any records according to name then in a variable use half part of query(and name=$session("name")) and append it to main query.

So how to start to working this with all input and output parameters.

Please give me the appropriate solution.

Do the needful.

Is it possible to change that existing page or make a new page with existing things?

The page exists 2000 line of code and 20-30 times queries are used on that page only?


Thanks

推荐答案

session(name))并将其附加到主查询。



那么如何开始使用所有输入和输出参数。



请给我相应的解决方案。



做必要的事情。



是否可以更改现有页面或创建新页面页与现有的东西?



页面存在2000行代码和20-30次查询仅在该页面上使用?





谢谢
session("name")) and append it to main query.

So how to start to working this with all input and output parameters.

Please give me the appropriate solution.

Do the needful.

Is it possible to change that existing page or make a new page with existing things?

The page exists 2000 line of code and 20-30 times queries are used on that page only?


Thanks


检查这些

如何从ASP调用SQL Server存储过程 [ ^ ]

在ASP中执行存储过程(SP) [ ^ ]

Check these
How to call SQL Server stored procedures from ASP[^]
Executing Store Procedure (SP) in ASP[^]
Gr8AmitTiwari写道:
Gr8AmitTiwari wrote:

是吗?是否可以更改现有页面或使用现有页面创建新页面?

Is it possible to change that existing page or make a new page with existing things?

请勿打扰现有页面。创建现有页面的另一个副本,在新文件和更新中进行更改。执行事情。通过这种方式,如果您以新的方式遇到任何问题(存储过程),您可以返回现有版本。

Don't disturb existing pages. Create an another copy of existing page, do changes in new file & execute things. By this way, you could go back through existing version if you face any problems in new way(stored procedure).


这篇关于在经典的asp项目中使用存储过程时出现问题。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆