We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you two Citrix podcasts. Learn about 2020 trends and get answers to your biggest Citrix questions!Listen Now

x

Data provider or other service returned an E_FAIL status

cityside
cityside asked
on
Medium Priority
2,479 Views
Last Modified: 2012-06-27
I am getting the following error when running a page against  a SQL Server database. When I run the page against my local copy of SQL Server, there is no problem.
Error Type:
Microsoft Cursor Engine (0x80004005)
Data provider or other service returned an E_FAIL status.
/tsac/tsacsearch/POSearchResult.asp, line 168
Here is the code snippet that may be the cause of the problem:

------------------------------------------------------------------------------
Set rec = Server.CreateObject("ADODB.Recordset")
rec.CursorLocation = 3 '=adUseClient
rec.PageSize = intPageSize

rec.Open cmd,,3,3

'rec.Open cmd

intPageCount = rec.PageCount (Line 168)

Reccount = rec.RecordCount

----------------------------------------------------------------------------------
Comment
Watch Question

Commented:
Make sure to have the latest MDAC installed on the server and clients.  http://msdn.microsoft.com/data/mdac/downloads/default.aspx

this error can also be caused by a NULL value in the WHERE statement of your query

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
Senior Systems and Integration Developer
CERTIFIED EXPERT
Commented:
This guy had the same problem, maybe it will be of use to you:

   http://www.codingforums.com/showthread.php?t=10920

Commented:
why the C grade?

Author

Commented:
why the C grade? Because it didn't solve the problem.
I  gave you the points anyway. What more do you want?

Author

Commented:
Fair enough.
I'll remember that in future.
Regards
Cityside
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.