Re: Permissions
Check whether the sql server is set-up for windows and SQL authentication. looks like it is trying to login using the defualt login created by the windows domain. Trying adding this account to the databse users.
- Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
- Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!
Reply to: Data access with Visual Interdev
Collapse
You are not logged in or you do not have permission to access this page. This could be due to one of several reasons:
- You are not logged in. If you are already registered, fill in the form below to log in, or follow the "Sign Up" link to register a new account.
- You may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
- If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.
Logging in...
Previously on "Data access with Visual Interdev"
Collapse
-
Guest replied
-
Guest repliedPermissions
Go to microsoft.com and enter the error code.
You have to manually add some permissions.
I think it is in registry security.
Been there myself, just cannot remember any more than finding the nice how to fix it page on microsoft site ...
Leave a comment:
-
Guest repliedData access with Visual Interdev
best is not to use dsn, they are not efficient. set up a login account on sql server and use that in your conn string. make sure to give the login permissions against (in this case) the 'pubs' database...sql server + iis on same box is fine, but not for prod systems...
Leave a comment:
-
Data access with Visual Interdev
I'm trying to learn Visual Interdev. I have created a project and successfully connected to the webserver.
I now wish to access data from a SQL Server database on my machine.
I have created a Dataview using the Dataview wizard and taken the connection string from the Global.asa which is as follows.
Application("Connection1_ConnectionString") = "DSN=impreza;User Id=Marty;UID=Marty;APP=Microsoft Development Environment;WSID=IMPREZA;DATABASE=pubs;Trusted_Con nection=Yes"
I want to use the connection string to establish my own connection on a test page as follows
dim objConn
Set objConn = server.CreateObject("ADODB.connection")
objConn.Open "DSN=impreza;User Id=Marty;UID=Marty;APP=Microsoft Development Environment;WSID=IMPREZA;DATABASE=pubs;Trusted_Con nection=Yes"
but when I view it in a browser I keep getting the following error
Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80040E4D)
[Microsoft][ODBC SQL Server Driver][SQL Server]Login failed for user 'IMPREZA\IUSR_IMPREZA'.
/Project4/ASP Page1.asp, line 9
When I create a DSN it connects fine, the dataview connects fine so why does it not connect from this test page. The test page is part of the project that the dataview is in
Could the problem be that I am running both SQL Server and IIS on the same machine. I am using XP ProfTags: None
- Home
- News & Features
- First Timers
- IR35 / S660 / BN66
- Employee Benefit Trusts
- Agency Workers Regulations
- MSC Legislation
- Limited Companies
- Dividends
- Umbrella Company
- VAT / Flat Rate VAT
- Job News & Guides
- Money News & Guides
- Guide to Contracts
- Successful Contracting
- Contracting Overseas
- Contractor Calculators
- MVL
- Contractor Expenses
Advertisers

Leave a comment: