VBScipt help please!

Soldato
Joined
11 Feb 2004
Posts
4,532
Location
Surrey, UK
I've written some code (with a lot of help!) which passes values from SQL to a perl script as arguments at a command line.

One of the fields in the SQL table is 'read status'.

I'd like to include some code which:

1) detects the read status of 0 (acts as a validation - 0 = records are to be extracted).

2) changes the 0 to a 1 so that specific record is ignored on future sweeps.

Any advice or pointers to online resources would be very welcome.

Cheers,
 
What is your SQL and PERL knowledge/experience?

Anyway, some pointers:

1.
Code:
SELECT readstatus FROM table
2.
Code:
UPDATE table SET readstatus = 1
 
Very little experience with perl / VBscript but I do have some experience with t-sql.

Thanks for the help - I'm assuming I can simply embed some t-sql into the vbscript.

Cheers.
 
Domo said:
Very little experience with perl / VBscript but I do have some experience with t-sql.

Thanks for the help - I'm assuming I can simply embed some t-sql into the vbscript.

Cheers.

You could do, but I'd regard that as a cardinal sin :) Just stick it in a stored proc that you call from the VBscript.
 
Back
Top Bottom