I need to create a Stored Procedure in my SQL Server database. The purpose of this Stored Procedure is to write data to a Log table, which has three fields: date, time, login ID.
Date and time would be the time of login, while the Login ID comes from a table of logins. The site will have the time to call this Stored Procedure at the moment of login.
The big question is what code I put in the Stored Procedure, since I hardly work with this in SQL Server. Who can help with this?