Hi all,
i'm using sql server 2000 and my vb program needs to execute the select statement below in order to get the maximum value of identity column in my table :
select @@identity from table1
i did the following :
sqlstr = "select @@identity from table1"
set rs = dbconn.execute (sqlstr)
however, it doesn't seem to work out the same result as i run the query in sql server Query Analyser. I believe it's because of the @@...anyone has any ideas how could i solve this? Thanks in advance!
i'm using sql server 2000 and my vb program needs to execute the select statement below in order to get the maximum value of identity column in my table :
select @@identity from table1
i did the following :
sqlstr = "select @@identity from table1"
set rs = dbconn.execute (sqlstr)
however, it doesn't seem to work out the same result as i run the query in sql server Query Analyser. I believe it's because of the @@...anyone has any ideas how could i solve this? Thanks in advance!