You'd have to use xp_cmdshell, so far as I know, to do that from an SQL script. Why not just run it more directly, with PowerShell, or whatever your preference is on that kind of thing? Why run a file from a T-SQL script?
- Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
Property of The Thread
"Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon