|
|
Sergey Kornilov admin 6/1/2009 |
|
What do you mean "store the users"? |
|
|
W
|
wisdom2009 author 6/2/2009 |
What do you mean "store the users"?
|
|
|
J
|
Jane 6/3/2009 |
|
Hi, str = "insert into TableName (field1,field2) values ('" & Session("UserID") &',now())" dbConnection.Execute str |
|
|
W
|
wisdom2009 author 6/3/2009 |
Hi, to insert new record to another table use this code:
|
|
|
C
|
clig 6/3/2009 |
|
DSN:
|
|
|
W
|
wisdom2009 author 6/3/2009 |
DSN: set CN = server.CreateObject("ADODB.Connection") CN.Open "DSN=NTSS;UID=user;PWD=pwd" set rs = Server.CreateObject("ADODB.Recordset") rs.Open "insert into LoginHistory (LoginName, LoginDate) values (" & "'" & Session("UserID") & "'" & "," & "'" & Now() & "')", CN CN.Close set CN = Nothing set rs = Nothing using dbconnection: strSQLInsert = "insert into LoginHistory (LoginName, LoginDate) values (" & "'" & Session("UserID") & "'" & "," & "'" & Now() & "')" dbConnection.Execute strSQLInsert
|
|