Welcome to dbFreaks.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Refactoring in SQL?!

 
   Database Help (Home) -> Server RSS
Next:  Start -> From-Till date conversion  
Author Message
Raj

External


Since: Mar 12, 2007
Posts: 6



(Msg. 1) Posted: Thu Jul 01, 2010 4:15 am
Post subject: Refactoring in SQL?!
Archived from groups: microsoft>public>sqlserver>server (more info?)

Does MS SQL 2008 support refactoring?!

Ex: Changing a column name or data type of one column in one table will
reflect the changes in all the tables, stored procedures ...

What a feature!

Thank you

Regards
Raj

 >> Stay informed about: Refactoring in SQL?! 
Back to top
Login to vote
Jeroen Mostert

External


Since: Oct 08, 2009
Posts: 8



(Msg. 2) Posted: Thu Jul 01, 2010 3:25 pm
Post subject: Re: Refactoring in SQL?! [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 2010-07-01 13:15, Raj wrote:
> Does MS SQL 2008 support refactoring?!
>
> Ex: Changing a column name or data type of one column in one table will
> reflect the changes in all the tables, stored procedures ...
>
No. Something like that would be useful while you're developing a database
design, but it would be an absolute nightmare on a production server. You
would essentially need to stop all traffic to the database while you figure
out what changes to issue. Even then, things like dynamic SQL or even simple
client-side queries would inevitably break, and renaming constraints
automatically isn't possible unless you adhere to a naming scheme. That's
not even touching on the issue of data loss when changing a column's data type.

Doing it *without* issuing a global lock and still not violate data
integrity would be even more costly. As in, impossible-to-justify costly.
> What a feature!
>
For a design tool, yes. For a database server, not really. Although a full
installation of SQL Server includes Management Studio, which has some design
features, it can't be considered a serious aspect.

--
J.

 >> Stay informed about: Refactoring in SQL?! 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Insert output of procedure inside table - Hello, Can you tell me how can i put the output if the procedure sp_helpdb inside one table? Thanks and best regards

SQL Agent won't start - Our installation of SQLServer 2000 has been working fine until last week when SQLAgent cannot start due to a login problem with SQLServer. SQLAgent properties have not changed since the problem began, but the event log reports that SQLAgent cannot log...

Format the column with - Hello, Can you tell me how can i format the column with in the output of a query? The results must be returned as text and my output is like this: y x -------------------- ----------------------- 1 2 the way im treating the output is to..

How to determine the Instance - Hello: <font color=purple> ; Would you mind to give me some hints that how can I determine how many</font> of instance on the SQL server? Thanks a lot!

How to tell which port -
   Database Help (Home) -> Server All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]