G
Guest
Hello! And yes I know, I'm behind the game here, should have learned this
stuff years ago! But I'm working with a couple of scripts that I'd like to
get working if at all possible. The idea is logical - I'm using basic
scripting to connect to a SQL database (got that to work) and to get a few
pieces of pertinent information on the local computer that the script runs on
(computer name, serial number, OS) and populate the database with that. That
part works great! Its just what we need, a simple and customizable way to
inventory machines. Here's where my problem comes in. I need to be able to
use the script to select the local computer's name (whatever machine the
script is running on at the time), search the database, update the record if
found, and add a new one if not. My problem is, in all the documentation I
track down, the search is always based on a constant, not a variable string!
So help a nooblet out - how the heck do I do a search based on a variable??
stuff years ago! But I'm working with a couple of scripts that I'd like to
get working if at all possible. The idea is logical - I'm using basic
scripting to connect to a SQL database (got that to work) and to get a few
pieces of pertinent information on the local computer that the script runs on
(computer name, serial number, OS) and populate the database with that. That
part works great! Its just what we need, a simple and customizable way to
inventory machines. Here's where my problem comes in. I need to be able to
use the script to select the local computer's name (whatever machine the
script is running on at the time), search the database, update the record if
found, and add a new one if not. My problem is, in all the documentation I
track down, the search is always based on a constant, not a variable string!
So help a nooblet out - how the heck do I do a search based on a variable??