#90467 - 2002-12-10 02:45 AM
Re: Table Join Inventory stuff
|
Sealeopard
KiX Master
   
Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
|
The simplest solution is a three step process 1) retrieve userid (SELECT UserID FROM tblUser WHERE UserName="@USERID") 2) retreive computerid (SELECT ComputerID FROM tblComputer WHERE computerName="@WKSTA") 3) insert into lookup table (INSERT INTO tblLoginLog VALUES(UserID,ComputerID,LoginTime) SET (UserId,ComputerId,@TIME)
Be advised that this is only the framework.
Also, you might want to use the DB... UDFs that are posted in the UDF Forum, this will make coding database connectivity much easier.
The SQL statements can be compacted into a single lien, though. However, the outline above is easier to understand.
_________________________
There are two types of vessels, submarines and targets.
|
|
Top
|
|
|
|
#90468 - 2002-12-10 04:25 AM
Re: Table Join Inventory stuff
|
Jose
Seasoned Scripter
   
Registered: 2001-04-04
Posts: 693
Loc: Buenos Aires - Argentina
|
|
|
Top
|
|
|
|
Moderator: Shawn, ShaneEP, Ruud van Velsen, Arend_, Jochen, Radimus, Glenn Barnas, Allen, Mart
|
0 registered
and 857 anonymous users online.
|
|
|