i am currently calling SELECT @@identity from VBA in mysql:
Set rs = cn.Execute("SELECT @@identity", , adCmdText)
but since i am going to be working with sql server db instead of mysql, i would like to know how to make this statement sql-server friendly
would it just be Set rs = cn.Execute("SCOPE_IDENTITY()", , adCmdText)
??