Showing posts with label iis. Show all posts
Showing posts with label iis. Show all posts

Thursday, March 29, 2012

Access Denied

The issue i have is:

3 Servers: DC1, SQL1 and Web1

All have IIS and an replicated intranet site http:/server/intranet
All have 2 DSN connections set exactly the same except one using TCP one using named pipes)

DC1's web app will access a search on SQL1 using named pipes but not TCP
SQL1 as above
WEB1's web app will not access a search on SQL1 using any of the DSN connections.

Errors recieved

Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC SQL Server Driver][Named Pipes]Access denied.

SQL is in mixed secuirty mode.

I am unable to work out the above no matter how much I play with teh permissions.

IIS on all Servers use Windows Authentication.
The SQL database is set to allow all Domain Users access.

Please Help

Did you allow WEB1\IUSR_WEB1 in your SQL Server?|||

I have tried this but when trying to add WEB1\IUSR_WEB1 it says "Error 15401: WIndows NT user or group 'WEB1\IUSR_WEB1' not found. Check the name again.

I would assume this is due to WEB1\IUSR_WEB1 being an local account on WEB1.

I know this al seems basic but this is the first time I have had this issue.

Would this be that I need to add WEB1\IUSR_WEB1 to a group account in the domain and then allow this account access.

I have also tried a DSNLESS connection with the SQL system account but still get access denied.

|||You cannot add local users of other computer to principals in SQL Server as SQL Server cannot trust the identity of the user crendetials. I assume that you are currently using anonymous authentication with the mentioned user above. If you want to use the actual connecting users to gain access to the database with their individual rights on the database, you will have to turn of anynomous authentication and enable Windows Integrated authentication on the Web server. (If the web server and the SQL Server are on different machines, you will additionallY have to setup delegation) If you just want to have the Web Server connect with its Service account to SQL Server you will have to let it run under a domain account which is trusted by SQL Server. All users accessing the database will then use this credentials to auithenitcate at the database. If you don′t want both of the solutions and don′t want to use WIndows authentication per se, you will have to change your query string to let the application on the Web Server connect with a common SQL Server user which is the used by every web application consuming user.

HTH, Jens K. Suessmeyer.

http://www.sqlserver2005.de|||

Thanks for the advice.

I have managed to get the database to connect using Jens K. Suessmeyer advice.

What has worked is:

DSN Connection
SQL_Database with TCP Connection
USER: sql_system_account, PASSWORD: xxxxxxxx

ASP page Connection string.
<%
'if request("submit") = "true" then
Dim objConn
Set objConn = Server.CreateObject("ADODB.Connection")
objConn.ConnectionString = "dsn=SQL_Database; uid=sql_system_account; pwd=xxxxxxxx"
objConn.Open
'end if
%>

Note: Both must be in place otherwise errors still occour.

I will still have to look into the actaul web connection users and delegation in sql for the databases.

I would assume the problem was due to the Web server being originally setup on the Domain Controller and the sql databases being moved to a new server (Server 2003) and differant pernissions being lost.
Active directory was on the same server as the web server so authentication was handled differantly once the intranet and sql were moved to application servers.

Sunday, March 25, 2012

access data in remote SQL server with trusted authority

I have two win2003 servers. One is IIS and the another is SQL server. I
can use MyConnection=new
SqlConnection("server=SQLServerName;database=myDBName;UID=sa;PWD= mypwd")
to access my data. But I can not use MyConnection=new
SqlConnection("server=SQLServerName;database=myDBName;Integrated
Security=SSPI") to access it. If I put both IIS and SQL Server in one
machine, I can do anything. How can I do something to allow trusted
authority work ?

ThanksYou might find these KB articles (or one of the ones they link to)
useful:

http://support.microsoft.com/defaul...kb;en-us;316989
http://support.microsoft.com/defaul...kb;en-us;247931

If these don't help, I suggest you clarify what you mean by "can not
use" - do you get a specific error message?

Simonsql

Access Control List (structure) invalid - updating Virtual directory information

Hi,

I've just installed SQL server and then IIS and SQLCE tools.
I created a virtual directory and was trying to update the NTFS
permissions from SQLServer Connectivity management when i got the
following error - Access Control List (structure) invalid.

Has anyone come across this and if so, what did u do to fix it.

Thanks
LynThis seems to be an OS error, rather than something specific to MSSQL,
so you might get a better response in a Windows
admin/security/filesystem newsgroup. The error message is documented,
but the explanation is very minimal:

http://msdn.microsoft.com/library/d...w2kmsgs/393.asp

The replies to a previous (old) post about this error suggested using
CHKDSK to look for any NTFS corruption issues, so that might be worth a
go:

http://groups.google.ch/group/micro...43a9a59d?hl=en&

Simon|||Thanks

I'll give it a go

Simon Hayes wrote:
> This seems to be an OS error, rather than something specific to MSSQL,
> so you might get a better response in a Windows
> admin/security/filesystem newsgroup. The error message is documented,
> but the explanation is very minimal:
> http://msdn.microsoft.com/library/d...w2kmsgs/393.asp
> The replies to a previous (old) post about this error suggested using
> CHKDSK to look for any NTFS corruption issues, so that might be worth a
> go:
> http://groups.google.ch/group/micro...43a9a59d?hl=en&
> Simonsql

Friday, February 24, 2012

About SQL Server 7.0 Developer Edition

Hi!
We're planning to run a web application as an intranet on Windows 2000
Server + IIS (ASP) + SQLServer 7.0.
We have a BackOffice 4.5 Developer Edition which includes SQLServer
7.0.
Can we use the SQLServer Developer Edition for our intranet?
Thanks.
Sam
Hi
No. You may not use Developer Edition in a production environment., It can
only be used for development.
Regards
Mike Epprecht, Microsoft SQL Server MVP
Zurich, Switzerland
IM: mike@.epprecht.net
MVP Program: http://www.microsoft.com/mvp
Blog: http://www.msmvps.com/epprecht/
<sam.s.kong@.gmail.com> wrote in message
news:1133286216.659677.70150@.g47g2000cwa.googlegro ups.com...
> Hi!
> We're planning to run a web application as an intranet on Windows 2000
> Server + IIS (ASP) + SQLServer 7.0.
> We have a BackOffice 4.5 Developer Edition which includes SQLServer
> 7.0.
> Can we use the SQLServer Developer Edition for our intranet?
>
> Thanks.
> Sam
>

About SQL Server 7.0 Developer Edition

Hi!
We're planning to run a web application as an intranet on Windows 2000
Server + IIS (ASP) + SQLServer 7.0.
We have a BackOffice 4.5 Developer Edition which includes SQLServer
7.0.
Can we use the SQLServer Developer Edition for our intranet?
Thanks.
SamHi
No. You may not use Developer Edition in a production environment., It can
only be used for development.
Regards
--
Mike Epprecht, Microsoft SQL Server MVP
Zurich, Switzerland
IM: mike@.epprecht.net
MVP Program: http://www.microsoft.com/mvp
Blog: http://www.msmvps.com/epprecht/
<sam.s.kong@.gmail.com> wrote in message
news:1133286216.659677.70150@.g47g2000cwa.googlegroups.com...
> Hi!
> We're planning to run a web application as an intranet on Windows 2000
> Server + IIS (ASP) + SQLServer 7.0.
> We have a BackOffice 4.5 Developer Edition which includes SQLServer
> 7.0.
> Can we use the SQLServer Developer Edition for our intranet?
>
> Thanks.
> Sam
>

About SQL Server 7.0 Developer Edition

Hi!
We're planning to run a web application as an intranet on Windows 2000
Server + IIS (ASP) + SQLServer 7.0.
We have a BackOffice 4.5 Developer Edition which includes SQLServer
7.0.
Can we use the SQLServer Developer Edition for our intranet?
Thanks.
SamHi
No. You may not use Developer Edition in a production environment., It can
only be used for development.
Regards
--
Mike Epprecht, Microsoft SQL Server MVP
Zurich, Switzerland
IM: mike@.epprecht.net
MVP Program: http://www.microsoft.com/mvp
Blog: http://www.msmvps.com/epprecht/
<sam.s.kong@.gmail.com> wrote in message
news:1133286216.659677.70150@.g47g2000cwa.googlegroups.com...
> Hi!
> We're planning to run a web application as an intranet on Windows 2000
> Server + IIS (ASP) + SQLServer 7.0.
> We have a BackOffice 4.5 Developer Edition which includes SQLServer
> 7.0.
> Can we use the SQLServer Developer Edition for our intranet?
>
> Thanks.
> Sam
>