Ask a Question related to ASP Database, Design and Development.
-
Tammy B. #1
ado text file
I have a bunch of variables, and their values - I wanna save these to a text
file as through the adodb.
I found the connection string, but I don't quite get how to add the records
in this case.
Do i Start with an empty Text file , then execute a Create table SQL
statement, the way I would do to an Access table?
rs.createtable?? or what
I'm stuck on that step.
thanks.
The step i am stuck on is the step where I have a bunch of variables, and
their values.
Then I do set conn= server.createobject("adodb.connection")
set rs= server.createobject("adodb.recordset")
myvariable1 = "horse"
myvariable2 = "cow"
myvariable3= "sheep"
myvariable4= "personal lubricant"
Now howami going to take this and get to the RS.save to a blank text file?
Example please.
Tammy B. Guest
-
text field including text from a text file *.txt
Hi, I would like to insert a text field which includes text from a text file. I know it must be possible but unfortunately I cannot find any help... -
Animating text from a external text file
Hi, can someone please guide me on how to animate text in flash which is loaded from a external text file. The way we load text in dynamic text box... -
Load Text from Text file with html links?
Try http://opensource.brajeshwar.com/downloads/dynamictextscroll/ and just change it to your liking, it have html links as far as I can remember. ... -
displaying text from an external text file
Hi Guys I have created a basic Flash 'thing' that fades in and out about 10 words from various angles. What I would like to be able to do is... -
Field Text vx Regular Text File Size
Why is regular text so much larger in file size than regular text? Is there some "magic" way to reduce the file size of regular text blocks? -
Bob Barrows #2
Re: ado text file
How do you want to store the values? As a recordset? If so, use the
rs.Fields.Append method to add Fields to your unopened recordset, open the
recordset, add your data, then use the rs.Save method to save the results to
a text file. See online help for details. Google can also help here. I know
I've posted an example of the above at least once.
On the other hand, if you just need to store them as comma-delimited values,
don't bother with a recordset. Use the filesystemobject to do this:
[url]http://msdn.microsoft.com/library/en-us/script56/html/sgworkingwithfiles.asp[/url]
HTH,
Bob Barrows
Tammy B. wrote:> I have a bunch of variables, and their values - I wanna save these to
> a text file as through the adodb.
>
> I found the connection string, but I don't quite get how to add the
> records in this case.
>
> Do i Start with an empty Text file , then execute a Create table SQL
> statement, the way I would do to an Access table?
>
> rs.createtable?? or what
>
> I'm stuck on that step.
>
> thanks.
>
> The step i am stuck on is the step where I have a bunch of
> variables, and their values.
>
> Then I do set conn= server.createobject("adodb.connection")
> set rs= server.createobject("adodb.recordset")
>
> myvariable1 = "horse"
> myvariable2 = "cow"
> myvariable3= "sheep"
> myvariable4= "personal lubricant"
>
> Now howami going to take this and get to the RS.save to a blank text
> file?
>
> Example please.
Bob Barrows Guest



Reply With Quote

