![]() |
#7 |
int 20h
|
Всем привет!
Частенько сталкиваясь с этой бедой используем SQL скриптик на той Базе Данных откуда приходится удалить компанию. Выкладываю на обозрение может кому пригодится. X++: declare @name nvarchar(128) declare tables_cursor cursor for select [name] from sysobjects where type = 'U' open tables_cursor fetch next from tables_cursor into @name while @@fetch_status = 0 begin --print @name exec('delete ' + @name + ' where dataareaid in ( select id from dataarea where id like ''ТУТ ИМЯ УДАЛЯЕМОЙ КОМПАНИИ например tst'' )' ) fetch next from tables_cursor into @name end close tables_cursor deallocate tables_cursor
__________________
It's just my Unhopelessnessabilityerism ![]() Trying to debug my mind ![]() |
|
|
За это сообщение автора поблагодарили: Qaz Qwerty (1). |