April 4, 2008 at 5:11 pm
Hello,
In SQL 2000, I was able to issue a SQL statement like this to update the Create Date:
update sysobjects
set crdate = getdate()
where name = 'CUSTOMER'
How would I issue a similar command in SQL 2005 ?
April 4, 2008 at 8:30 pm
Not sure what you're after... didn't you just use a single command?
--Jeff Moden
Change is inevitable... Change for the better is not.
April 4, 2008 at 9:00 pm
Generally speaking, direct manipultation of the System Tables is no longer possible in SQL 2005.
[font="Times New Roman"]-- RBarryYoung[/font], [font="Times New Roman"] (302)375-0451[/font] blog: MovingSQL.com, Twitter: @RBarryYoung[font="Arial Black"]
Proactive Performance Solutions, Inc. [/font][font="Verdana"] "Performance is our middle name."[/font]
April 5, 2008 at 7:42 am
Wow! I totally missed the fact that the object of the update was a system table.
Updating the system tables directly is "Death by SQL". Don't do it... period.
--Jeff Moden
Change is inevitable... Change for the better is not.
April 5, 2008 at 7:58 am
I agree with Jeff and Barry, but what interests me is why would you want to change the date created of a table ?
[font="Verdana"]Markus Bohse[/font]
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply