Solved

Classic ASP - SQL Server connection problem Part 2!

Posted on 2016-08-01
3
73 Views
Last Modified: 2016-08-03
This was fixed by an earlier question, but that only fixed a problem with SELECT statement.

My hosting company has migrated my site to a new server with MSSQL 2012. Since then the attached code does not work.

I get this error:
Microsoft OLE DB Provider for SQL Server error '80040e4d'

Invalid authorization specification

/database/add_visit.asp, line 214

This is my connection string:
conn.ConnectionString = "provider=sqloledb;uid=#######;pwd=#######;connection timeout=620;database=###SQL;DataTypeCompatibility=80"

It only produces the error when I try to INSERT a record
0
Comment
Question by:rick_danger
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 33

Accepted Solution

by:
Big Monty earned 250 total points
ID: 41737880
chances are the user you're using in your connection string does have INSERT access to the table you're trying to write to
0
 
LVL 83

Assisted Solution

by:Dave Baldwin
Dave Baldwin earned 250 total points
ID: 41737882
I agree with Big Monty.  In MS SQL, you can set permissions (or block them) on just about every individual function.  Sounds like maybe they have given you Read only access.
0
 

Author Closing Comment

by:rick_danger
ID: 41740724
Thanks for your comments
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

691 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question