Code Bank
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingCode Bank

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 February 12th, 2004, 09:40 PM
h007 h007 is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 5 h007 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 22 m 32 sec
Reputation Power: 0
creating a tempoary table

Hi
Has anyone got an example of creating a tempoary table in access db using asp coding?
or can anyone tell me how it is done please.
cheers
Hesh

Reply With Quote
  #2  
Old April 5th, 2004, 12:30 PM
spungebob spungebob is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Location: Dover
Posts: 128 spungebob User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 39 sec
Reputation Power: 5
save record set to xml file or try sql command

Try this
select * into #temp3 from mytable

or try these functions to convert to xml.
I use these functions to save a temporary table on my
hard drive so that I do not have to query a second time
every time the page is refreshed I just look for a file that exists and display that instead. ( home made cache )

Bob@lyrex.com


Public Function ADORecordsetToXML(rs)
Dim s

ADORecordsetToXML = ""

If rs.Count > 0 Then
Set s = Server.CreateObject("ADODB.Stream")
rs.Save s, adPersistXML
ADORecordsetToXML = s.ReadText()
End If
End Function

Public Function RecordsetToXML(rs)
Dim s

RecordsetToXML = ""

If rs.RecordCount > 0 Then
Set s = Server.CreateObject("ADODB.Stream")
rs.Save s, adPersistXML
RecordsetToXML = s.ReadText()
End If
End Function

Public Function XMLToRecordset(strXML)
Dim s

Set XMLToRecordset = Nothing

If strXML <> "" Then
Set s = Server.CreateObject("ADODB.Stream")
s.Open
s.WriteText strXML
s.Position = 0

Set XMLToRecordset = Server.CreateObject("ADODB.Recordset")

On Error Resume Next
XMLToRecordset.Open s

If Err.number <> 0 Then
Set XMLToRecordset = Nothing
Exit Function
End If

XMLToRecordset.MoveFirst

If Err.number <> 0 Then
Set XMLToRecordset = Nothing
Exit Function
End If
End If
End Function

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingCode Bank > creating a tempoary table


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 3 hosted by Hostway
Stay green...Green IT