all groups > sql server programming > august 2007 >
You're in the

sql server programming

group:

Database becomes "suspect" after changing column datatype?


Database becomes "suspect" after changing column datatype? Jen
8/6/2007 9:56:42 PM
sql server programming:
My database is being marked as "Suspect" and I think it's some time after I
change a column from data type smalldatetime to datetime and reboot. Does
that make sense and what can I do about it?

Re: Database becomes "suspect" after changing column datatype? Uri Dimant
8/7/2007 12:00:00 AM
Jen
It looks strange

create table test ( c datetime)
go
insert into test select getdate()
go
select * from test
go
alter table test alter column c smalldatetime
go
select * from test
go
drop table test


Make sure that you database is healthy(run dbcc checkdb) .



[quoted text, click to view]

RE: Database becomes "suspect" after changing column datatype? Alejandro Mesa
8/7/2007 6:18:04 AM
Jen,

See if this helps.

Recommended actions for corrupt or suspect databases
http://www.karaszi.com/SQLServer/info_corrupt_suspect_db.asp


AMB

[quoted text, click to view]
AddThis Social Bookmark Button