#32934 - 2002-11-20 01:04 AM
An array into a record
|
rockdog
Lurker
Registered: 2002-11-09
Posts: 2
|
I'm new to this so my terminology may be a little off but here we go. I want to take the software inventory ("items") that I create using "Function GetUninstallInfo()" (which works great BTW) and import into my Access Database. The problem I'm looking at is that every workstation is not going to have the same amount of programs on them. I just don't get the logic of connecting the "items" of the array to the fields in my access database. I have an okay understanding of how to make the links but not how to tell the script to input data into fields of a record and/or create fields if there are not enough in the table already. Any help/idea's would be greatly appreciated! Thanks.
|
Top
|
|
|
|
#32935 - 2002-11-20 01:09 AM
Re: An array into a record
|
Howard Bullock
KiX Supporter
   
Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
|
Database 101
Normalize your data.
You should not create more fields. Your approach should be to create a stable structure such as:
ComputerName Text(15) Application Text(100)
Then using a loop:
code:
for each $app in $AppARRAY insert into Table $computer, $app next
[ 20. November 2002, 01:10: Message edited by: Howard Bullock ]
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 1574 anonymous users online.
|
|
|