April 10, 2007 at 8:32 am
How to change the owner of tables and SP to dbo from testuser. There are 100 tables
Nita
April 10, 2007 at 9:04 am
sp_changeobjectowner
April 10, 2007 at 9:40 am
how should I do for 100 tables
April 10, 2007 at 10:04 am
Use Excel: http://www.sqlservercentral.com/columnists/sjones/datamigrationquicklyinsertingnewdata.asp
Get a list of tables into Excel.
April 10, 2007 at 3:47 pm
Run this in QA, then run the results:
select 'exec sp_changeobjectowner ''' + name + ''',''newowner'''
from dbo.sysobjects
where xtype in ('U', 'P')
Greg
Greg
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply