I am trying to complete a seemingly simple task that has turned into a several hour adventure: Getting @@Identity from TableAdapter.Insert().
@@Identity
TableAdapter.Insert()
You have exactly two choices:
I'd use the following SQL and ExecuteScalar.
INSERT INTO [dbo].[Sites] ([Name], [Description]) OUTPUT INSERTED.ID VALUES (@Name, @Description);