G
Guest
Hi,
I posted a post earlier but for some reasons it didn't show up.
AW, I want to grab the rowid(Primary key) of last row inserted. I tried but
it gives me error regarding cast.The column is int and I tried
datareadter.getint32(0) but it didn't work.
Also can I execute two queries within one execution? for example
Command.Text = "insert a row into atable select @@IDENTITY from atable"
Any help??
I posted a post earlier but for some reasons it didn't show up.
AW, I want to grab the rowid(Primary key) of last row inserted. I tried but
it gives me error regarding cast.The column is int and I tried
datareadter.getint32(0) but it didn't work.
Also can I execute two queries within one execution? for example
Command.Text = "insert a row into atable select @@IDENTITY from atable"
Any help??