dbTalk Databases Forums  

What is the difference between ATTACH and COPY

microsoft.public.sqlserver.tools microsoft.public.sqlserver.tools


Discuss What is the difference between ATTACH and COPY in the microsoft.public.sqlserver.tools forum.



Reply
 
Thread Tools Display Modes
  #31  
Old   
Erland Sommarskog
 
Posts: n/a

Default Re: Second Question: How can i Update database structure ? - 05-13-2008 , 02:11 AM






Siamack Hejazi - HotMail (siamakhejazi (AT) hotmail (DOT) com) writes:
Quote:
I designed a database and users working with that now . Assume, after 2
month I have an update for my database structure . How can I update my
database structure without manipulating the data's on that database.
Please explain in both method if exist.
1- With Transact SQL Codes
2 - In Microsoft SQL Server Management Studio
Thanks Again and apologize for beginners questions.
If you don't want to drop and reload tables, then stay away from the
graphical stuff in Management Studio. It drops and reloads in a lot of
situations where it is not needed. Use ALTER TABLE from T-SQL instead.

Then again, depending on what changes you want to make, you may not be
able to escape reloading your tables anyway, since ALTER TABLE can't
do everything.


--
Erland Sommarskog, SQL Server MVP, esquel (AT) sommarskog (DOT) se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pro...ads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinf...ons/books.mspx


Reply With Quote
  #32  
Old   
Erland Sommarskog
 
Posts: n/a

Default Re: Second Question: How can i Update database structure ? - 05-13-2008 , 02:11 AM






Siamack Hejazi - HotMail (siamakhejazi (AT) hotmail (DOT) com) writes:
Quote:
I designed a database and users working with that now . Assume, after 2
month I have an update for my database structure . How can I update my
database structure without manipulating the data's on that database.
Please explain in both method if exist.
1- With Transact SQL Codes
2 - In Microsoft SQL Server Management Studio
Thanks Again and apologize for beginners questions.
If you don't want to drop and reload tables, then stay away from the
graphical stuff in Management Studio. It drops and reloads in a lot of
situations where it is not needed. Use ALTER TABLE from T-SQL instead.

Then again, depending on what changes you want to make, you may not be
able to escape reloading your tables anyway, since ALTER TABLE can't
do everything.


--
Erland Sommarskog, SQL Server MVP, esquel (AT) sommarskog (DOT) se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pro...ads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinf...ons/books.mspx


Reply With Quote
  #33  
Old   
Erland Sommarskog
 
Posts: n/a

Default Re: Second Question: How can i Update database structure ? - 05-13-2008 , 02:11 AM



Siamack Hejazi - HotMail (siamakhejazi (AT) hotmail (DOT) com) writes:
Quote:
I designed a database and users working with that now . Assume, after 2
month I have an update for my database structure . How can I update my
database structure without manipulating the data's on that database.
Please explain in both method if exist.
1- With Transact SQL Codes
2 - In Microsoft SQL Server Management Studio
Thanks Again and apologize for beginners questions.
If you don't want to drop and reload tables, then stay away from the
graphical stuff in Management Studio. It drops and reloads in a lot of
situations where it is not needed. Use ALTER TABLE from T-SQL instead.

Then again, depending on what changes you want to make, you may not be
able to escape reloading your tables anyway, since ALTER TABLE can't
do everything.


--
Erland Sommarskog, SQL Server MVP, esquel (AT) sommarskog (DOT) se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pro...ads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinf...ons/books.mspx


Reply With Quote
  #34  
Old   
Erland Sommarskog
 
Posts: n/a

Default Re: Second Question: How can i Update database structure ? - 05-13-2008 , 02:11 AM



Siamack Hejazi - HotMail (siamakhejazi (AT) hotmail (DOT) com) writes:
Quote:
I designed a database and users working with that now . Assume, after 2
month I have an update for my database structure . How can I update my
database structure without manipulating the data's on that database.
Please explain in both method if exist.
1- With Transact SQL Codes
2 - In Microsoft SQL Server Management Studio
Thanks Again and apologize for beginners questions.
If you don't want to drop and reload tables, then stay away from the
graphical stuff in Management Studio. It drops and reloads in a lot of
situations where it is not needed. Use ALTER TABLE from T-SQL instead.

Then again, depending on what changes you want to make, you may not be
able to escape reloading your tables anyway, since ALTER TABLE can't
do everything.


--
Erland Sommarskog, SQL Server MVP, esquel (AT) sommarskog (DOT) se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pro...ads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinf...ons/books.mspx


Reply With Quote
  #35  
Old   
Erland Sommarskog
 
Posts: n/a

Default Re: Second Question: How can i Update database structure ? - 05-13-2008 , 02:11 AM



Siamack Hejazi - HotMail (siamakhejazi (AT) hotmail (DOT) com) writes:
Quote:
I designed a database and users working with that now . Assume, after 2
month I have an update for my database structure . How can I update my
database structure without manipulating the data's on that database.
Please explain in both method if exist.
1- With Transact SQL Codes
2 - In Microsoft SQL Server Management Studio
Thanks Again and apologize for beginners questions.
If you don't want to drop and reload tables, then stay away from the
graphical stuff in Management Studio. It drops and reloads in a lot of
situations where it is not needed. Use ALTER TABLE from T-SQL instead.

Then again, depending on what changes you want to make, you may not be
able to escape reloading your tables anyway, since ALTER TABLE can't
do everything.


--
Erland Sommarskog, SQL Server MVP, esquel (AT) sommarskog (DOT) se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pro...ads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinf...ons/books.mspx


Reply With Quote
  #36  
Old   
Erland Sommarskog
 
Posts: n/a

Default Re: Second Question: How can i Update database structure ? - 05-13-2008 , 02:11 AM



Siamack Hejazi - HotMail (siamakhejazi (AT) hotmail (DOT) com) writes:
Quote:
I designed a database and users working with that now . Assume, after 2
month I have an update for my database structure . How can I update my
database structure without manipulating the data's on that database.
Please explain in both method if exist.
1- With Transact SQL Codes
2 - In Microsoft SQL Server Management Studio
Thanks Again and apologize for beginners questions.
If you don't want to drop and reload tables, then stay away from the
graphical stuff in Management Studio. It drops and reloads in a lot of
situations where it is not needed. Use ALTER TABLE from T-SQL instead.

Then again, depending on what changes you want to make, you may not be
able to escape reloading your tables anyway, since ALTER TABLE can't
do everything.


--
Erland Sommarskog, SQL Server MVP, esquel (AT) sommarskog (DOT) se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pro...ads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinf...ons/books.mspx


Reply With Quote
  #37  
Old   
Erland Sommarskog
 
Posts: n/a

Default Re: Second Question: How can i Update database structure ? - 05-13-2008 , 02:11 AM



Siamack Hejazi - HotMail (siamakhejazi (AT) hotmail (DOT) com) writes:
Quote:
I designed a database and users working with that now . Assume, after 2
month I have an update for my database structure . How can I update my
database structure without manipulating the data's on that database.
Please explain in both method if exist.
1- With Transact SQL Codes
2 - In Microsoft SQL Server Management Studio
Thanks Again and apologize for beginners questions.
If you don't want to drop and reload tables, then stay away from the
graphical stuff in Management Studio. It drops and reloads in a lot of
situations where it is not needed. Use ALTER TABLE from T-SQL instead.

Then again, depending on what changes you want to make, you may not be
able to escape reloading your tables anyway, since ALTER TABLE can't
do everything.


--
Erland Sommarskog, SQL Server MVP, esquel (AT) sommarskog (DOT) se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pro...ads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinf...ons/books.mspx


Reply With Quote
  #38  
Old   
Siamack Hejazi - HotMail
 
Posts: n/a

Default Second Question: How can i Update database structure ? - 05-13-2008 , 02:24 AM



Thanks friends;
Second question:

I designed a database and users working with that now . Assume, after 2
month I have an update for my database structure . How can I update my
database structure without manipulating the data's on that database. Please
explain in both method if exist.
1- With Transact SQL Codes
2 - In Microsoft SQL Server Management Studio
Thanks Again and apologize for beginners questions.

Sincerely
Siamack Hejazi
Sale Accounting Department Supervisor
Tabriz Petrochemical Complex
Iran






Reply With Quote
  #39  
Old   
Siamack Hejazi - HotMail
 
Posts: n/a

Default Second Question: How can i Update database structure ? - 05-13-2008 , 02:24 AM



Thanks friends;
Second question:

I designed a database and users working with that now . Assume, after 2
month I have an update for my database structure . How can I update my
database structure without manipulating the data's on that database. Please
explain in both method if exist.
1- With Transact SQL Codes
2 - In Microsoft SQL Server Management Studio
Thanks Again and apologize for beginners questions.

Sincerely
Siamack Hejazi
Sale Accounting Department Supervisor
Tabriz Petrochemical Complex
Iran






Reply With Quote
  #40  
Old   
Siamack Hejazi - HotMail
 
Posts: n/a

Default Second Question: How can i Update database structure ? - 05-13-2008 , 02:24 AM



Thanks friends;
Second question:

I designed a database and users working with that now . Assume, after 2
month I have an update for my database structure . How can I update my
database structure without manipulating the data's on that database. Please
explain in both method if exist.
1- With Transact SQL Codes
2 - In Microsoft SQL Server Management Studio
Thanks Again and apologize for beginners questions.

Sincerely
Siamack Hejazi
Sale Accounting Department Supervisor
Tabriz Petrochemical Complex
Iran






Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.