Showing posts with label replicated. Show all posts
Showing posts with label replicated. 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.

Tuesday, March 27, 2012

Access Database transactional replicated into SQL Server 2000

I have an access database that I want to transactionally replicate
into SQL Server 2000. Can someone point me in the right direction for
getting the source connection in enterprise manager? Or a brief
example o how to start this? Have looked at SQL to SQL, but not Access
to SQL.
Thanks John
This can't be done easily. You can replicate from SQL Server 2000 to an
Access database if you create an odbc datasource subscriber. Have a look at
this to get an idea of how it is done.
http://www.nwsu.com/lowres_replication_ch02.pdf
You could create a merge publication on your SQL Server and create the
Access database as a subscriber. This will replicate the changes in the
access database back to SQL Server.
<freeman642@.gmail.com> wrote in message
news:1180004621.496305.101600@.p47g2000hsd.googlegr oups.com...
>I have an access database that I want to transactionally replicate
> into SQL Server 2000. Can someone point me in the right direction for
> getting the source connection in enterprise manager? Or a brief
> example o how to start this? Have looked at SQL to SQL, but not Access
> to SQL.
> Thanks John
>
|||thanks Hilary thats a great idea. Never thought of that. thanks John
On 24 May, 13:16, "Hilary Cotter" <hilary.cot...@.gmail.com> wrote:
> This can't be done easily. You can replicate from SQL Server 2000 to an
> Access database if you create an odbc datasource subscriber. Have a look at
> this to get an idea of how it is done.http://www.nwsu.com/lowres_replication_ch02.pdf
> You could create a merge publication on your SQL Server and create the
> Access database as a subscriber. This will replicate the changes in the
> access database back to SQL Server.
> <freeman...@.gmail.com> wrote in message
> news:1180004621.496305.101600@.p47g2000hsd.googlegr oups.com...
>
>
> - Show quoted text -
sql

Monday, March 19, 2012

Access - SQL Replication

Hi,
I have an Access database that has been replicated over an intranet.
It is a fairly simple database - it has people working on it online and people who work offline and sync into it.
Now we need to sync over the internet.
I enquired in these discussion groups and was adviced to Upsize my database in order to be able to use MS SQL server hosting it at my ISP.
I have upsized the access database from within access 2000.
What do I do next ? How do I put that on to my ISP MS Sql Server?
Do I need to reformat stuff.
I am completely new to sql server. I have programmed MySql and PHP though.
CHEERS
Paula,
I'd advise you to set up replication internally first. There are plenty of
details on the replication setup routines in BOL, but if you describe the
articles involved and if the subscribers are updatable etc - the general
business case - then I'd be better placed to recommend a particlular setup.
Once you have it working internally and understand the security setup and
roles of the various agents then you can contact a hosting provider. There
will be a lot of configuration questions with the provider and it would
probably be much easier if you host it locally, but there are providers who
do offer the service. However, when I looked into it for a recent poster,
the hosting providers seemed to only offer hosting as a subscriber, for
security purposes (eg http://www.1stchoiceinternational.com).
HTH,
Paul Ibison
|||If I am going to implement it internally - would then users conect to the central DB through FTP you mean?
Sorry my english is not good.
Can I just do this with Access Replication then?
"Paul Ibison" wrote:

> Paula,
> I'd advise you to set up replication internally first. There are plenty of
> details on the replication setup routines in BOL, but if you describe the
> articles involved and if the subscribers are updatable etc - the general
> business case - then I'd be better placed to recommend a particlular setup.
> Once you have it working internally and understand the security setup and
> roles of the various agents then you can contact a hosting provider. There
> will be a lot of configuration questions with the provider and it would
> probably be much easier if you host it locally, but there are providers who
> do offer the service. However, when I looked into it for a recent poster,
> the hosting providers seemed to only offer hosting as a subscriber, for
> security purposes (eg http://www.1stchoiceinternational.com).
> HTH,
> Paul Ibison
>
>
|||Paula,
if it's entirely internal, then there's no need for FTP. FTP is used for the
initiation process when replication is carried out across the internet or
non-trusted domains. If you're all on the same domain, then the normal
fileshare method of initialization is fine.
I am not familiar with Access replication so if you need advice on how it is
set up you're best bet is to post in the dedicated access group.
HTH,
Paul Ibison