David,
What version of the templates did this work in (version from changes.log would be nice)? I did a quick browse through the changes to this file (StoredProceduresXml.cst) and I don't anywhere where this would work. It's definitely a bug, but I just don't see where this would have ever worked. Identity columns are simple because you can just use the SCOPE_IDENTITY to get the last inserted value. There is no such equivalent for uniqueidentifier columns...
Something like the following would have to be generated:
SET @TokenIdentifier = NEWID()
INSERT INTO [dbo].[TokenStore]
(
[TokenIdentifier],
[DateOfIssue]
,[TokenValid]
)
VALUES
(
@TokenIdentifier
,@DateOfIssue
,@TokenValid
)
Ben Johnson------------------------------
Member of the .NetTiers team
Visit
http://www.nettiers.com------------------------------