If this is your first visit, be sure to check out the FAQ by clicking the link above. You may 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.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > rs.save method

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-05-03, 05:38
rahulqa rahulqa is offline
Registered User
 
Join Date: Feb 2003
Posts: 18
Arrow rs.save method

I am using rs.save to save the recordset into the xml file.
The code is
<!--#include file="adovbs.inc"-->
Set rs = Server.CreateObject("ADODB.Recordset")
Set c = Server.CreateObject("ADODB.Connection")

c.Open "DSN=dsnname;UID=userid;PWD=password;"
rs.cursorlocation = adUseClient
rs.Open "select * from tablename", c, adOpenStatic
rs.Save server.Mappath("try.xml"), adPersistXML


This code works fine on my local pc but gives error when I host the file on server.
The error is Provider error '80030103' Can't save.

What may be the problem? Any suggestions will be helpfull.


Thanks,
Rahul
Reply With Quote
  #2 (permalink)  
Old 07-15-03, 11:13
Chewie Chewie is offline
Registered User
 
Join Date: Jul 2003
Location: Albany, NY
Posts: 3
Re: rs.save method

Quote:
Originally posted by rahulqa
This code works fine on my local pc but gives error when I host the file on server.
The error is Provider error '80030103' Can't save.

What may be the problem? Any suggestions will be helpfull.
Hmmm. I can't be sure, but my first suggestion would be to make sure that MSXML is installed on the Server. My guess is it isn't...
Reply With Quote
  #3 (permalink)  
Old 07-16-03, 04:58
rahulqa rahulqa is offline
Registered User
 
Join Date: Feb 2003
Posts: 18
MSXML is installed on the server.
Reply With Quote
  #4 (permalink)  
Old 07-17-03, 10:50
Compaqx101x Compaqx101x is offline
Registered User
 
Join Date: Jul 2003
Posts: 3
Unhappy

i'm actually getting the same problem...and i'd love to hear a solution. i'm assuming it's a problem with the provider (mine is {Oracle ODBC Driver}) but i've tried many and i still get the same error. does anyone have any working code for a save example?
Reply With Quote
  #5 (permalink)  
Old 12-18-03, 22:03
ddbs ddbs is offline
Registered User
 
Join Date: Dec 2003
Posts: 1
Can't Save ADO recordset into XML file

Quote:
Originally posted by Compaqx101x
i'm actually getting the same problem...and i'd love to hear a solution. i'm assuming it's a problem with the provider (mine is {Oracle ODBC Driver}) but i've tried many and i still get the same error. does anyone have any working code for a save example?
Just found this explanation:
http://support.microsoft.com/default.aspx?kbid=818518
It's for standalone application, I guess it would apply to Web too.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On