surleysue
asked on
How can I call a vbscript from an SQL trigger?
I have a text file to import. One of the fields is username. I have a vbscript to determine full name from AD username. I want the trigger to use the vbscript to determine the full name from the username and insert that information to a field the row.
EXEC xp_cmdshell 'cscript myscript.vbs';
ASKER
Thanks weellio! That's a start. But do you know how I would pass the username field from the text file insert? Could I do:
EXEC xp_cmdshell 'cscript myscript.vbs col002';
Or something like that?
Sorry, rank beginner here.
EXEC xp_cmdshell 'cscript myscript.vbs col002';
Or something like that?
Sorry, rank beginner here.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.