SQL-question

  • Thread starter Thread starter RTT
  • Start date Start date
R

RTT

i have a script that insert a variable amount of rows in a table. each row
is identified by an autonumber by SQL

how can i find out the number of the newly added rows without having to much
troubles?
 
I'm not sure but I think you can use a sql command and then use it's
ExecuteNonQuery method It should return the number of rows affected

hth greetz Peter
 
Hi

I misread the question so my solution won't help you out sorry, but Kevin's
link probably will

Greetz Peter
 
thxs, i still have to tweak it some more so it fits my needs perfectaly but
is does the trick.. thxs
 
In what language? How did you add the record? What does this question have
to do with all the newsgroups you posted to?

You have posted this question to both VB and DotNet newsgroups..

Check out the @@Identity statement
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top