|
Comments
|
|
Great stuff. Has it been put forward as a bug?
|
|
|
Thanks for pointing out an idiosyncracy of SQL Server, Andy. One would think that SQL Server would have taken care of the metadata update when the name update occurred. Oh well, ...
|
|
|
It's properly the same with other db objects (Tables function etc.)as well. When renaming first drop the object and recreate it.right?
Thx
Ludwig
|
|
|
Excellent tip! I'll bet that renaming a view in SSMS is more commonly done without anyone realizing that the definition is not changed as well.
|
|
|
I don't understand why MS doesn't update the view definition in the background. SSMS will prevent me from renaming the view to an already-defined view, so it obviously is checking view metadata under some circumstances....
Thanks for the heads up!
|
|
|
I don't think the video was a complete one.
|
|
Rebecca Lewis on
2/14/2011
Good example.
|
|
Joanne Snyder on
2/14/2011
Thanks for sharing, as I never knew it behaved like this!
|
|
|
I did not know this and it is very important that I know it.
|
|
Dennis Allen on
2/14/2011
Very good to know
|
|
|
Provided valuable new information many people would not konw
|
|
Dexter Jones on
2/14/2011
Great tip about an insidious issue.
|
|
Tom Stafford on
2/14/2011
Good info.
|
|
|
Does this problem only affect views or are other objects similarly affected?
|
|
|
How can one define a view that will appear in:
select * from INFORMATION_SCHEMA.VIEWS
where IS_UPDATABLE <> 'NO'
|
|
|
Very enlightening, thank you very much.
|
|
|
wow - Thanks
|
|
|
Good stuff Andy...
|
|
|
Just a really good presenter!
|
|
|
Very good demostration!
|
|
|
defiantly a good point!
|
|
|
very very good tip
|
|
|
very very good demonstation
|
|
|
Nice gotcha to keep in mind!
|
|
|
I've had this issue before and NEVER found out why until today!!! Thanks for this!!!
|
|
|
Same happens with procedures
|
|
|
really important information - thanks!
|
|
|
Great, I don't now that, very useful
|
|
Maurice Ivory on
7/22/2011
Good information I did not know about.
|
|
Destiny Barnes on
10/26/2011
it would have been nice to see what it means to script out a view. I'm assuming that means copy the sql,but I'm not 100% sure.
|
|
|
Can't we use the T-SQL instead for renaming any view:
sp_rename [ @objname = ] 'object_name' , [ @newname = ] 'new_name'
|
|
|
small thing but really a powerful one.
|