Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.
declare abc cursor for select [key] from tempPhotoZ order by [key] open abc declare @skey varchar(15) declare @str varchar(200) set @str='DEL e:\Dailypull\photographs\' Fetch Next from abc into @skey While @@Fetch_status =0 Begin set @str=@str+@skey+'*.jpg' Execute master.dbo.xp_cmdshell @str Fetch next from abc into @skey End close abc deallocate abc
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.