Question : How to remove IWAM_Server account

Trying to clear the 2008 BPA issues.  Maybe it's late on Friday but i'm struggling with these two

You should remove the IWAM_SERVER account for the Source Server that is running Windows SBSĀ 2003 after you complete the migration.

You should remove the IUSR_SERVER account for the Source Server that is running Windows SBSĀ 2003 after you complete the migration.

These would be on the OLD server?  And assuming so, how do i remove them please.....





Answer : How to remove IWAM_Server account

I think you need dynamic SQL there. So maybe something like this

1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
declare @strSQL varchar(max) 
declare @cols varchar(max)
declare @FileNo int

set @fileNo = 101

set @cols = stuff((select  ',' + OriginalColumnName from File_Column_Master where Fileno = @FileNo for xml path('')), 1, 1, '')

set @strSQL = 'select ID, FileNo, Name, Address, Company, Phone, Email, ' + @cols + ' from yourtable where id = ' + cast(@FileNo as varchar)

exec(@strSQL)
Random Solutions  
 
programming4us programming4us