Solved

Classic ASP - SQL Server connection problem Part 2!

Posted on 2016-08-01
3
58 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
3 Comments
 
LVL 32

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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:  The Exchange of information …
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

815 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now