you can change this in SSMS on the server properties dialog. right click on the server node in OE, choose, properties, then select the "database settings" tab. or you can do it via script like this:USE [master]GOEXEC xp_instance_regwrite N'HKEY_LOCAL_MACHINE', N'Software\Microsoft\MSSQLServer\MSSQLServer', N'DefaultData', REG_SZ, N'D:\sql\data'GOEXEC xp_instance_regwrite N'HKEY_LOCAL_MACHINE', N'Software\Microsoft\MSSQLServer\MSSQLServer', N'DefaultLog', REG_SZ, N'E:\sql\log'GO
elsasoft.org