Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
David.
Starting Member
2 Posts |
Posted - 2010-11-24 : 16:23:05
|
HiI picked up this usefull sript for deleting en massselect 'delete from '+name from sysobjects where type='u'this returns a table of delete from foodelete from baadelete from etcdoes anybody know if I can extend this to allow more text to occur after the [name from sysobjects where type='u'] for exampleselect 'alter table' + name from sysobjects where type='u' + 'Add Index idx_' + name from sysobjects where type='u' + '(' + name from sysobjects where type='u' + ')'The above doesn't work, greatfull for any ideasRegardsDavid |
|
tkizer
Almighty SQL Goddess
38200 Posts |
|
David.
Starting Member
2 Posts |
Posted - 2010-11-25 : 06:07:29
|
Great, thank you. |
|
|
tkizer
Almighty SQL Goddess
38200 Posts |
|
|
|
|