亲爱的大家, [英] Dear All,

查看:78
本文介绍了亲爱的大家,的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的所有人,


我试图从ASP /或ASP.Net上访问网络A上的SQL服务器数据库

应用程序
哪个托管在另一个网络域上,

它们都在firwall后面(所有考虑都是固定的,..),

IIS服务器可以连接到SQL-Servers,使用:

SQL-Analyzer或
Enterprize manager或
使用ADODB托管在(IIS)服务器上的VB6桌面应用程序或

VC#桌面应用程序,...

但是当故事来自ISS使用ASP来支持SQL-Server时

或ASP.Net以下错误:

SQL Server不存在或访问被拒绝


这是否合乎逻辑,是否有办法克服,这个问题。

我试过看了很多链接和以前的实验,并且在MSISDN上列出了所有

工作流程,但仍然是同样的问题。

-

MCSD还不.Net尚未:(

Dear All,

I have tried to access a SQL server DB on on network A from ASP/Or ASP.Net
Application
Which is hosted on another network domain,
Both of them are behind the firwall (all consideraation are fixed,..),
IIS server can connect to SQL-Servers, using:
SQL-Analyzer or
Enterprize manager or
VB6 desktop application hosted on (IIS) server using ADODB or
VC# Desktop application,...

But when the story comes to Acccesing SQL-Server from ISS using either ASP
or ASP.Net The following error:
"SQL Server does not exist or access denied"

Is this logical, is there a way to overcome, this problem.
I have tried a looked into many links and previous experments and did all
workarouunds listed on MSISDN, but still the same problem.
--
MCSD not .Net yet :(

推荐答案

你是如何尝试连接的?什么是连接字符串?你在使用

集成安全性还是SQL Server Secuirity?你可以使用查询分析器使用相同的

连接参数进行连接吗?

" Shaker"写道:
How are you trying to connect? What''s the conenction string? Are you using
Integrated Security or SQL Server Secuirity? Can you connect using teh same
conenction parameters using Query Analyzer ?
"Shaker" wrote:
亲爱的所有,

我试图从ASP /或ASP.Net上访问网络A上的SQL服务器数据库
应用程序
哪个托管在另一个网络域上,
它们都在firwall后面(所有考虑都是固定的,...),
IIS服务器可以连接到SQL-Servers,使用: VC#Desktop应用程序,在(IIS)服务器上托管的SQL-Analyzer或
Enterprize管理器或
VB6桌面应用程序......

但是当故事来自使用ASP
或ASP.Net从ISS使用SQL-Server时出现以下错误:
SQL Server不存在或访问被拒绝

是这个逻辑,有没有办法克服,这个问题。
我已经尝试过查看许多链接和以前的实验,并在MSISDN上列出了所有的工作结果,但仍然是同样的问题。

-
MCSD还没有.Net呢:(
Dear All,

I have tried to access a SQL server DB on on network A from ASP/Or ASP.Net
Application
Which is hosted on another network domain,
Both of them are behind the firwall (all consideraation are fixed,..),
IIS server can connect to SQL-Servers, using:
SQL-Analyzer or
Enterprize manager or
VB6 desktop application hosted on (IIS) server using ADODB or
VC# Desktop application,...

But when the story comes to Acccesing SQL-Server from ISS using either ASP
or ASP.Net The following error:
"SQL Server does not exist or access denied"

Is this logical, is there a way to overcome, this problem.
I have tried a looked into many links and previous experments and did all
workarouunds listed on MSISDN, but still the same problem.
--
MCSD not .Net yet :(



我试过所有在世界上列出的连接字符串上键入。

包括ASP.Net上数据库项目使用的连接字符串,以及VB6上的数据环境,以及ODBC和UDL。 ...


" CBretana"写道:
I have tried all type on connection string listed in the world.
Including the Connection string used by Database projects on ASP.Net, and
Data envirmennts on VB6, and ODBC and UDL,....

"CBretana" wrote:
你是如何尝试连接的?什么是连接字符串?您使用的是集成安全性还是SQL Server Secuirity?您可以使用查询分析器使用相同的
连接参数进行连接吗?

" Shaker"写道:
How are you trying to connect? What''s the conenction string? Are you using
Integrated Security or SQL Server Secuirity? Can you connect using teh same
conenction parameters using Query Analyzer ?
"Shaker" wrote:
亲爱的所有,

我试图从ASP /或ASP.Net上访问网络A上的SQL服务器数据库
应用程序
哪个托管在另一个网络域上,
它们都在firwall后面(所有考虑都是固定的,...),
IIS服务器可以连接到SQL-Servers,使用: VC#Desktop应用程序,在(IIS)服务器上托管的SQL-Analyzer或
Enterprize管理器或
VB6桌面应用程序......

但是当故事来自使用ASP
或ASP.Net从ISS使用SQL-Server时出现以下错误:
SQL Server不存在或访问被拒绝

是这个逻辑,有没有办法克服,这个问题。
我已经尝试过查看许多链接和以前的实验,并在MSISDN上列出了所有的工作结果,但仍然是同样的问题。

-
MCSD还没有.Net呢:(
Dear All,

I have tried to access a SQL server DB on on network A from ASP/Or ASP.Net
Application
Which is hosted on another network domain,
Both of them are behind the firwall (all consideraation are fixed,..),
IIS server can connect to SQL-Servers, using:
SQL-Analyzer or
Enterprize manager or
VB6 desktop application hosted on (IIS) server using ADODB or
VC# Desktop application,...

But when the story comes to Acccesing SQL-Server from ISS using either ASP
or ASP.Net The following error:
"SQL Server does not exist or access denied"

Is this logical, is there a way to overcome, this problem.
I have tried a looked into many links and previous experments and did all
workarouunds listed on MSISDN, but still the same problem.
--
MCSD not .Net yet :(



好的,让我们从术语开始吧。 IIS服务器没有连接到除网络之外的其他任何东西。这是一个操作系统。现在,连接的是



查询分析器

企业管理器

VB6桌面应用程序


提到的所有三个应用程序都是可执行文件,这意味着它们在机器的系统帐户下运行。

>
另一方面,您的ASP.Net应用程序在不同的帐户下运行。机会

它是在默认的ASP.Net帐户下运行的,这是非常好的b / b



好​​的,现在,SQL服务器可以通过以下两种方式之一连接:


Windows身份验证

混合Windows和SQL Server身份验证


仅在使用Windows身份验证时,只有已获得必要数据库权限的Windows帐户才能访问数据库。当使用混合模式

时,SQL Server帐户也可以根据它们在SQL Server中被授予的权限来访问SQL Server,




因此,如果您仅使用Windows Auth,您的连接字符串应该反映

,并且ASP.Net用户帐户必须被授予必要的

权限。


如果您使用混合模式,连接字符串应包含名称

和SQL Server帐户的密码被授予

权限。


-

HTH,


Kevin Spencer

Microsoft MVP

..Net开发人员

你所寻求的是你得到的。


振荡器 <嘘**** @ discussions.microsoft.com>在消息中写道

news:95 ********************************** @ microsof t.com ...
Okay, let''s start with terminology. The IIS Server doesn''t connect to
anything other than a network. It''s an Operating System. Now, what IS
connecting is:

Query Analyzer
Enterprise Manager
VB6 Desktop app

All three of the applications mentioned are executables, which means that
they run under the machine''s System account.

On the other hand, your ASP.Net app runs under a different account. Chances
are it runs under the default ASP.Net account, which is extremely
underpriveleged.

Okay, now, SQL Server can be connected to in one of 2 different ways:

Windows Authentication
Mixed Windows and SQL Server Authentication

When using Windows Authentication only, only Windows accounts that have been
granted the necessary database permissions can access the database. When
using Mixed mode, SQL Server accounts can also access the SQL Server,
according to the priveleges that they have been granted IN SQL Server.

So, if you''re using Windows Auth only, your connection string should reflect
that, and the ASP.Net user account must be granted the necessary
permissions.

If you''re using Mixed mode, the connection string should contain the name
and password of the SQL Server account that has been granted the
permissions.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
What You Seek Is What You Get.

"Shaker" <Sh****@discussions.microsoft.com> wrote in message
news:95**********************************@microsof t.com...
亲爱的所有人,

我试图从ASP /或ASP.Net上访问网络A上的SQL服务器数据库
应用程序
哪个托管在另一个网络域上,
它们都在firwall后面(所有考虑都是固定的,...),
IIS服务器可以连接到SQL-Servers,使用: VC#Desktop应用程序,在(IIS)服务器上托管的SQL-Analyzer或
Enterprize管理器或
VB6桌面应用程序......

但是当故事来自使用ASP
或ASP.Net从ISS使用SQL-Server时出现以下错误:
SQL Server不存在或访问被拒绝

是这个逻辑,有没有办法克服,这个问题。
我已经尝试过查看许多链接和以前的实验,并在MSISDN上列出了所有的工作结果,但仍然是同样的问题。

-
MCSD不是.N尚未:(
Dear All,

I have tried to access a SQL server DB on on network A from ASP/Or ASP.Net
Application
Which is hosted on another network domain,
Both of them are behind the firwall (all consideraation are fixed,..),
IIS server can connect to SQL-Servers, using:
SQL-Analyzer or
Enterprize manager or
VB6 desktop application hosted on (IIS) server using ADODB or
VC# Desktop application,...

But when the story comes to Acccesing SQL-Server from ISS using either ASP
or ASP.Net The following error:
"SQL Server does not exist or access denied"

Is this logical, is there a way to overcome, this problem.
I have tried a looked into many links and previous experments and did all
workarouunds listed on MSISDN, but still the same problem.
--
MCSD not .Net yet :(



这篇关于亲爱的大家,的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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