Hallo

Weis jemand hier aus der DB-Liste, ob das folgende so funktioniert?

SQL_String = "INSERT INTO ....."
SQL_String += "; SELECT SCOPE_IDENTITY()"
id_object = SqlHelper.ExecuteScalar(ConnectionString,CommandType.Text, SQL_String)
If IsNumeric(id_object) Then
  id= Convert.ToInt32(id)
End If

Die Frage ist, ob das scope_identity auch bei gleichzeitigen Zugriffen korrekt funktioniert also die ID dem richtigen Client liefert.

Gruss Christoph



_______________________________________________
Database.asp mailing list
[EMAIL PROTECTED]
http://www.glengamoi.com/mailman/listinfo/database.asp

Antwort per Email an