Microsoft SQL Server
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsDatabaseMicrosoft SQL Server

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old May 21st, 2004, 10:41 AM
oindypoind oindypoind is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: May 2004
Posts: 2 oindypoind User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
ADODB.Command error '800a0cc1'

Hi there, hoping there's some experts here who can help me.

I have the following function...

private function db_return_xml(sSQL)
Dim oCmd 'As Command
Dim oDom 'As IXMLDOMDocument2
dim sError

' create objects
Set oDom = CreateObject("MSXML2.DOMDocument.3.0")
Set oCmd = CreateObject("ADODB.Command")

' run database call to grab the xml
set oCmd.ActiveConnection = m_oConn
oCmd.CommandText = sSQL
oCmd.CommandType = 8

oCmd.Properties("Output Stream") = oDom
on error resume next
oCmd.Execute , , 1024
sError = err.description
on error goto 0
if sError <> "" then
response.Write("error fetching xml from database: '" & sError & "'<br/>" & _
"using sql: '" & sSQL & "'")
response.End()
end if

' return the xml
set db_return_xml = oDom

end function


Unfortunately this was not written by me, i've taken over this project half way through and the original coder is unavailable.

Basically, I know the code works fine as it is running LIVE at the moment, however we have recently installed a new server here and transfered all our local test sites over to it. Unfortunately it doesnt seem to like the line of code in BOLD, and throws up the error message ADODB.Commanderror '800a0cc1'.

Have we forgotten to install something on the server, I know it definitely has versions 1 to 4 of MSXML installed. So I don't think its that.

Any help would be greatly appreciated.

Reply With Quote
  #2  
Old May 21st, 2004, 12:17 PM
Memnoch's Avatar
Memnoch Memnoch is offline
Unholy Moderator
ASP Free God 14th Plane (11500 - 11999 posts)
 
Join Date: Oct 2003
Location: In hell, where did you think?
Posts: 11,764 Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level) 
Time spent in forums: 3 Weeks 5 Days 6 h 8 m 20 sec
Reputation Power: 452
What is the error message itself?

Reply With Quote
  #3  
Old May 26th, 2004, 10:02 AM
oindypoind oindypoind is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: May 2004
Posts: 2 oindypoind User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Solution

Okay have sorted it, i'll give the answer in case anyone happens to search for this in the future.

The error comes from not having the SQLXML components installed on windows, these basically allow the normal ADODB component deal with XML data. To get SQLXML on to your machine though you also need the latest versions of SOAP and MDAC.

So there you have it once I installed these, it all started working fine.

Reply With Quote
Reply

Viewing: ASP Free ForumsDatabaseMicrosoft SQL Server > ADODB.Command error '800a0cc1'


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT