来自多个数据库的登录检查 [英] Login check from multiple database

查看:129
本文介绍了来自多个数据库的登录检查的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我想用经典的ASP创建网站.
有多个数据库,如果用户已登录,那么我需要检查用户所在的数据库.

我可以这样做吗?
如果可以,请帮助我

在此先感谢

Hi everyone,

I want to create a site in classic asp.
There are multiple databases, and if user is logged in then I need to check which database the user is in.

Can I do this?
If yes then please help me

Thanks in advance

推荐答案

如果所有数据库都在同一服务器上,则可以为要用于连接数据库的用户分配权限.

如果使用的是SQL Server,则可以使用存储过程,该存储过程将查询不同的数据库并返回正确的数据库名称.

请检查以下内容以获取更多详细信息:

http://community.discountasp.net/showthread.php?t=11135
http://www.dbtechie.com/sql -server/如何在同一服务器上引用多个数据库/
If all the databases are on the same server, then you can assign rights to the user which you are using to connect to the database.

If you are using SQL server, then you can use stored procedure which will query different databases and return proper database name.

Please check the following for more details:

http://community.discountasp.net/showthread.php?t=11135
http://www.dbtechie.com/sql-server/how-to-reference-multiple-databases-on-the-same-server/


这篇关于来自多个数据库的登录检查的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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