|
|
Sergey Kornilov admin 6/16/2004 |
|
Sure you can do this. strSQL = "insert into logins (Username, LoggedIn) values ('" & Session("UserID") & "', Now())" dbConnection.Execute strSQL
|
|
|
B
|
berga@alpenacc.net author 6/21/2004 |
|
Works great, Thanks a million! |
|
|
B
|
berga@alpenacc.net author 6/30/2004 |
|
Is the above not possible? Thanks. |
|
|
|
Sergey Kornilov admin 6/30/2004 |
|
You also need to insert a database name into the table where you track number of logins. Since I don't know your application logic I cannot give you more detailed advise. |
|
|
|
Sarjent 9/9/2004 |
|
Would you use the LOGON_USER variable to get the name of the current windows logged in user? |
|
|
|
Sergey Kornilov admin 9/10/2004 |
|
Hi, strFields = strFields & ", Log_Who, Log_Time" strValues = strValues & ",'" & mid(Request.ServerVariables("LOGON_USER") & "', Now()"
|
|
|
|
Sarjent 9/10/2004 |
|
I am trying to insert it into a database called DMSC and a table called DMSC_QUERY in SQL. Log_Who, and Log_Time are columns in the DMSC_QUERY table. These would hopefully be inserted from the add or edit page into the record that was added or edited. Definetly not into a seperate table or anything. |
|
|
|
Sarjent 9/15/2004 |
|
any idea on what I can do to fix this? Its partially working and I'd like to get it all the way done. I've tried numerous things with different variabels but I am stuck. Thanks! <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=2490&image=1&table=forumreplies' class='bbc_emoticon' alt=';)' /> |
|
|
|
Sergey Kornilov admin 9/15/2004 |
|
Hi, |
|
|
|
Sarjent 9/15/2004 |
|
I think this is what you want from the _edit.asp file if Request.form("action")="add" or Request.form("action")="added" then
' returns field's default value |
|
|
|
Sergey Kornilov admin 9/15/2004 |
|
No, Response.Write strSQL Response.Flush
|
|
|
|
Sarjent 9/15/2004 |
update [dbo].[onCall] set Thiskey=1, WeekStart='1/5/2004', Name='Shan', Holiday='test1', [Log_Time]='9/15/2004 8:03:31 AM', [Log_Who]=''
|
|
|
|
Sergey Kornilov admin 9/16/2004 |
|
This SQL query looks good except for empty Log_Who variables. Response.Write "LOGON_USER: " & Request.ServerVariables("LOGON_USER") Response.Flush |
|
|
|
Sarjent 9/16/2004 |
|
I think this might be it.. |
|
|
|
501070 9/22/2004 |
|
Hello, |
|
|
|
501071 9/26/2004 |
|
After thinking about this....I figured the current code may help. |
|
|
T
|
thunderwonder 10/4/2004 |
|
[B][FONT=Times]Hi, |
|
|
L
|
laboria 10/27/2004 |
|
In reference to this subject, I am a little confused about exactly what code is needed and where it needs to be posted. |
|