Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


The Importance of Reading Comments


The Importance of Reading Comments

Author
Message
Perry Whittle
Perry Whittle
SSCrazy Eights
SSCrazy Eights (8.8K reputation)SSCrazy Eights (8.8K reputation)SSCrazy Eights (8.8K reputation)SSCrazy Eights (8.8K reputation)SSCrazy Eights (8.8K reputation)SSCrazy Eights (8.8K reputation)SSCrazy Eights (8.8K reputation)SSCrazy Eights (8.8K reputation)

Group: General Forum Members
Points: 8784 Visits: 16558
Manie Verster (6/10/2013)
You have chosen to link a rather ancient article that covers SQL Server 7.0, 2000, 2005 which is no longer relevant. Under SQL Server 2000 you had to detach a user db to move it as the alter database command was only valid for tempdb files


Perry, I don't know why you say this is an ancient article because after having had a look at it again I saw SQL Server 2012 at the top of the page??????HeheHehe

Since you feel the need to mock, it might pay you to read properly the article links

The link here details this!!
Microsoft KB
Article ID: 224071 - Last Review: July 16, 2012 - Revision: 19.0
Applies to
•Microsoft SQL Server 2005 Standard Edition
•Microsoft SQL Server 2005 Enterprise Edition
•Microsoft SQL Server 2005 Developer Edition
•Microsoft SQL Server 2005 Workgroup Edition
•Microsoft SQL Server 2005 Express Edition
•Microsoft SQL Server 2000 Standard Edition
•Microsoft SQL Server 7.0 Standard Edition

Keywords: kbsqlsetup kbinfo KB224071




Manie Verster (6/10/2013)
I would, however, like to know what is actually the best to do. Move or detach an attach taking in consideration that there is no replication on the database to be moved?

If you bother to read my article instead of mocking you'll see that ALTER DATABASE is the supported option. In SQL Server 7.0 and 2000 you had to detach as ALTER DATABASE did not support user databases!!

This is the correct KB article from Microsoft.

-----------------------------------------------------------------------------------------------------------

"Ya can't make an omelette without breaking just a few eggs" ;-)
Manie Verster
Manie Verster
Ten Centuries
Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)

Group: General Forum Members
Points: 1308 Visits: 986
Perry Whittle (6/11/2013)
Manie Verster (6/10/2013)
You have chosen to link a rather ancient article that covers SQL Server 7.0, 2000, 2005 which is no longer relevant. Under SQL Server 2000 you had to detach a user db to move it as the alter database command was only valid for tempdb files


Perry, I don't know why you say this is an ancient article because after having had a look at it again I saw SQL Server 2012 at the top of the page??????HeheHehe

Since you feel the need to mock, it might pay you to read properly the article links

The link here details this!!
Microsoft KB
Article ID: 224071 - Last Review: July 16, 2012 - Revision: 19.0
Applies to
•Microsoft SQL Server 2005 Standard Edition
•Microsoft SQL Server 2005 Enterprise Edition
•Microsoft SQL Server 2005 Developer Edition
•Microsoft SQL Server 2005 Workgroup Edition
•Microsoft SQL Server 2005 Express Edition
•Microsoft SQL Server 2000 Standard Edition
•Microsoft SQL Server 7.0 Standard Edition

Keywords: kbsqlsetup kbinfo KB224071




Manie Verster (6/10/2013)
I would, however, like to know what is actually the best to do. Move or detach an attach taking in consideration that there is no replication on the database to be moved?

If you bother to read my article instead of mocking you'll see that ALTER DATABASE is the supported option. In SQL Server 7.0 and 2000 you had to detach as ALTER DATABASE did not support user databases!!

This is the correct KB article from Microsoft.


If I was mocking anyone then it was myself. It surely was not my intention to mock you or anyone on SSC. You see I have been a developer now for only 13 years and in 2006 I was thrown in at the deep end and told to administer a client's database. You could not fathom the value of knowledge I got from SSC. One guy, Jeff Moden, knows how I argued with him about stuff and in the end I had to acknowledge that I do not have neaar the knowledge neede to argue or in your case mock anyone here. I do not know what article you are talking about that are ancient but clearly not mine so, I apologise for saying the wrong things to you. It was not my intention.

:-PManie Verster
Developer
Johannesburg
South Africa

I can do all things through Christ who strengthens me. - Holy Bible
I am a man of fixed and unbending principles, the first of which is to be flexible at all times. - Everett Mckinley Dirkson (Well, I am trying. - Manie Verster)
Manie Verster
Manie Verster
Ten Centuries
Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)

Group: General Forum Members
Points: 1308 Visits: 986
Perry,

Thank you I actually did go and read your article and actually have learnt something new. I also saw another article that clearly explained the disadvantages of detach/attach.

I must honestly say that when I read that first article about moving database files I honestly thought the files would move when you run the script! BlushBlushBlush

:-PManie Verster
Developer
Johannesburg
South Africa

I can do all things through Christ who strengthens me. - Holy Bible
I am a man of fixed and unbending principles, the first of which is to be flexible at all times. - Everett Mckinley Dirkson (Well, I am trying. - Manie Verster)
Brian J. Parker
Brian J. Parker
Valued Member
Valued Member (64 reputation)Valued Member (64 reputation)Valued Member (64 reputation)Valued Member (64 reputation)Valued Member (64 reputation)Valued Member (64 reputation)Valued Member (64 reputation)Valued Member (64 reputation)

Group: General Forum Members
Points: 64 Visits: 294
I didn't think Manie was being mocking, certainly not intentionally. Manie, I appreciate the humility you've shown in being willing to share your own mistakes so that we can learn from them! And Perry, it's great that you've taken the time to try to teach.
simonholzman 14059
simonholzman 14059
Grasshopper
Grasshopper (13 reputation)Grasshopper (13 reputation)Grasshopper (13 reputation)Grasshopper (13 reputation)Grasshopper (13 reputation)Grasshopper (13 reputation)Grasshopper (13 reputation)Grasshopper (13 reputation)

Group: General Forum Members
Points: 13 Visits: 31
Reading the comments is especially useful when you are the person who wrote the script in the first place !
Jeff Moden
Jeff Moden
SSC-Forever
SSC-Forever (45K reputation)SSC-Forever (45K reputation)SSC-Forever (45K reputation)SSC-Forever (45K reputation)SSC-Forever (45K reputation)SSC-Forever (45K reputation)SSC-Forever (45K reputation)SSC-Forever (45K reputation)

Group: General Forum Members
Points: 45104 Visits: 39912
Manie Verster (6/11/2013)
Jeff Moden (6/10/2013)
Nice article, Mannie. Yes... I absolutely agree. Reading the comments is important. That's why most of the scripts I post on the forums say "Details are in the comments." :-)

Thanks Jeff. I respect and honor you as a seasoned DBA and have already learned a lot from you but clearly not enough.


Thanks, Manie. Blush I'm right there with you. "Seasoned" or not, I learn something new about SQL just about every day.

Keep up the good work, ol' friend.

--Jeff Moden

RBAR is pronounced ree-bar and is a Modenism for Row-By-Agonizing-Row.
First step towards the paradigm shift of writing Set Based code:
Stop thinking about what you want to do to a row... think, instead, of what you want to do to a column.
Although they tell us that they want it real bad, our primary goal is to ensure that we dont actually give it to them that way.
Although change is inevitable, change for the better is not.
Just because you can do something in PowerShell, doesnt mean you should. Wink

Helpful Links:
How to post code problems
How to post performance problems
Forum FAQs
Manie Verster
Manie Verster
Ten Centuries
Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)

Group: General Forum Members
Points: 1308 Visits: 986
Perry, I hope we are at peace now. I have a feeling I can still learn a lot from you.:-)

:-PManie Verster
Developer
Johannesburg
South Africa

I can do all things through Christ who strengthens me. - Holy Bible
I am a man of fixed and unbending principles, the first of which is to be flexible at all times. - Everett Mckinley Dirkson (Well, I am trying. - Manie Verster)
Perry Whittle
Perry Whittle
SSCrazy Eights
SSCrazy Eights (8.8K reputation)SSCrazy Eights (8.8K reputation)SSCrazy Eights (8.8K reputation)SSCrazy Eights (8.8K reputation)SSCrazy Eights (8.8K reputation)SSCrazy Eights (8.8K reputation)SSCrazy Eights (8.8K reputation)SSCrazy Eights (8.8K reputation)

Group: General Forum Members
Points: 8784 Visits: 16558
No problem we're all here to help one another

-----------------------------------------------------------------------------------------------------------

"Ya can't make an omelette without breaking just a few eggs" ;-)
xxing29
xxing29
Grasshopper
Grasshopper (11 reputation)Grasshopper (11 reputation)Grasshopper (11 reputation)Grasshopper (11 reputation)Grasshopper (11 reputation)Grasshopper (11 reputation)Grasshopper (11 reputation)Grasshopper (11 reputation)

Group: General Forum Members
Points: 11 Visits: 0
Welcome to http://www.likesurprise.com//

where is the most popular Panthers online shop.


((( http://www.likesurprise.com/ )))

lower price fast shippment with higher quality!!

WE ACCEPT CREDIT CARD /WESTERN UNION PAYMENT
YOU MUST NOT MISS IT!!!
xxing29
xxing29
Grasshopper
Grasshopper (11 reputation)Grasshopper (11 reputation)Grasshopper (11 reputation)Grasshopper (11 reputation)Grasshopper (11 reputation)Grasshopper (11 reputation)Grasshopper (11 reputation)Grasshopper (11 reputation)

Group: General Forum Members
Points: 11 Visits: 0
Welcome to http://www.likesurprise.com//

where is the most popular Panthers online shop.


((( http://www.likesurprise.com/ )))

lower price fast shippment with higher quality!!

WE ACCEPT CREDIT CARD /WESTERN UNION PAYMENT
YOU MUST NOT MISS IT!!!
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search