I would like to make the default value of a field the user's username. This is my first assignment working with SQl Server 2000. In Access I could set the default value to '=environ("username"
'. I have quickly learned that this does not work in SQL 2K.
I am building the app in ASP.NET for internal use only. I think the most effecient way to get the info is through a default vaule assigned to the column or a trigger that would insert the username and date/time into their respective fields.
I got the datetime to work using the getdate() function. Any ideas on how to go about capturing the username? Thank you for your assistance
Jason Meckley
Database Analyst
WITF
I am building the app in ASP.NET for internal use only. I think the most effecient way to get the info is through a default vaule assigned to the column or a trigger that would insert the username and date/time into their respective fields.
I got the datetime to work using the getdate() function. Any ideas on how to go about capturing the username? Thank you for your assistance
Jason Meckley
Database Analyst
WITF