Hi All
Bit of confirmation needed really, as I've just come home and found that my
PC is only running SQL 7.0, when I know the below code only works in SQL
2000 (I think!!!).
What I want to do is put a particular DB in single user mode, do a DBCC
repair_rebuild then put it back to how it was all from a text file that is
executed via osql (MSDE's isql equivalent). Will the below do it?
alter database AccountsData
set single_user
with rollback immediate
go
dbcc checkdb('AccountsData',repair_rebuild)
go
alter database AccountsData
set multi_user
go
Do I need anything else, like use Master or something bearing in mind the
text file/osql method that I have to use?
Thanks
Laphan