Ask a Question related to ASP Database, Design and Development.
-
Dave Karmens #1
Insert while looping
I'm running a query from a text file to return data that I will then use
to insert into SQL - could someone give an example as to how to insert
that data after it's read? or during the read?
Dave Karmens Guest
-
What's faster - loop for insert or insert...select.
What is faster if I'm moving large numbers of records (anywhere from 10,000 to 300,000 records per archive) from one query to another table? 1)... -
Multiple Insert or Looping Insert
I built an application on an Access DB that allows a dispatcher to log trucks in the field at their location as they call in. There are three... -
Login - multi table insert for registrant; subsquent login insert page requests into joined 'Selection' Table
Question regards insert and updates in sql server for a simple login script that requires registration the first time and only "email address" upon... -
XML and looping
Hey guys, I have a XML file as follows: <book> <Name>I Have a Dream</Name> <Price>3.00</Price> <Description>This is a great... -
INSERT statement contains fewer items than the insert list
The block of code below shows how I am inserting field values into my dbase table: strSQLStatement = "INSERT INTO tblArticles... -
Bob Barrows #2
Re: Insert while looping
Dave Karmens wrote:
You're talking about SQL Server? it sounds like a job for a BULK INSERT> I'm running a query from a text file to return data that I will then
> use to insert into SQL - could someone give an example as to how to
> insert that data after it's read? or during the read?
query. Look it up in Books Online (BOL).
Bob Barrows
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Bob Barrows Guest
-
Ray at #3
Re: Insert while looping
do while not oStream.AtEndOfStream
oADO.Execute "INSERT INTO YOURTABLE (YOURCOLUMN) VALUES ('" &
oStream.ReadLine & "')"
Loop
Ray at work
"Dave Karmens" <spam_just1coder@yahoo.ca> wrote in message
news:OXMSPC6$DHA.2056@TK2MSFTNGP11.phx.gbl...> I'm running a query from a text file to return data that I will then use
> to insert into SQL - could someone give an example as to how to insert
> that data after it's read? or during the read?
Ray at Guest
-
Bullschmidt #4
Re: Insert while looping
Or perhaps within your loop have objRS.AddNew and then set each field...
Best regards,
J. Paul Schmidt, Freelance ASP Web Developer
[url]http://www.Bullschmidt.com[/url]
ASP Design Tips, ASP Web Database Demo, Free ASP Bar Chart Tool...
*** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
Don't just participate in USENET...get rewarded for it!
Bullschmidt Guest



Reply With Quote

