You can do like this in a sql task instead (or maybe just use the cmd in the script task?):create table #reg (id int identity(1, 1) not null, regkey_value varchar(2000))insert into #regexec xp_cmdshell 'REG QUERY HKLM\Software\Microsoft\MediaPlayer /v IEInstall'select regkey_value from #reg where id = 3drop table #reg
- LumbagoMy blog-> http://thefirstsql.com/2011/07/08/how-to-find-gaps-in-identity-columns-at-the-speed-of-light/