diff --git a/150-DOCUMENTATION/002-DBScripts/ALTER_TABLE_LOGIN_DETAIL.sql b/150-DOCUMENTATION/002-DBScripts/ALTER_TABLE_LOGIN_DETAIL.sql new file mode 100644 index 0000000..d07b642 --- /dev/null +++ b/150-DOCUMENTATION/002-DBScripts/ALTER_TABLE_LOGIN_DETAIL.sql @@ -0,0 +1,4 @@ +use AIADATABASEV5 + +ALTER TABLE LoginDetail +ADD CallFrom NVARCHAR(250) NULL \ No newline at end of file diff --git a/150-DOCUMENTATION/002-DBScripts/AlterInsertLoginDetail.sql b/150-DOCUMENTATION/002-DBScripts/AlterInsertLoginDetail.sql new file mode 100644 index 0000000..a947325 --- /dev/null +++ b/150-DOCUMENTATION/002-DBScripts/AlterInsertLoginDetail.sql @@ -0,0 +1,18 @@ +-- ============================================= +-- Author: +-- Create date: +-- Description: +-- ============================================= +ALTER PROCEDURE InsertLoginDetail + -- Add the parameters for the stored procedure here + @iUserId INT, + @CallFromURL NVARCHAR(250) = NULL +AS +BEGIN + -- SET NOCOUNT ON added to prevent extra result sets from + -- interfering with SELECT statements. + SET NOCOUNT OFF; + + -- Insert statements for procedure here + INSERT INTO LoginDetail (UserId, LoginTime, CallFrom) VALUES (@iUserId, GETDATE(), @CallFromURL) +END \ No newline at end of file