|
|
|
SSCrazy
      
Group: General Forum Members
Last Login: Yesterday @ 10:52 AM
Points: 2,553,
Visits: 515
|
|
|
|
|
|
SSC-Dedicated
           
Group: General Forum Members
Last Login: Yesterday @ 9:01 PM
Points: 33,111,
Visits: 27,037
|
|
Nice job Sushila.... I use EM to troubleshoot other people's more complex joins and, occasionally, to make my own. And, I "steal" code from it and QA quite a bit for the sake of speed as you suggested. You and Erik are correct... when I was a newbie and found out how to do those things, it was about as good as Christmas. I've been busy enough where I haven't paid much attention to Yukon and was disappointed to hear (in your article) the EM is going away. Perhaps another article that compares some of the tools like EM between 2000 and Yukon would be worthwhile. Thanks for the article and the forum answers you've posted. They help Newbies and Oldbies alike.
--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."
For better, quicker answers on T-SQL questions, click on the following... http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following... http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
|
|
|
|
|
SSCrazy
      
Group: General Forum Members
Last Login: Today @ 2:22 AM
Points: 2,693,
Visits: 1,081
|
|
|
|
|
|
Ten Centuries
      
Group: General Forum Members
Last Login: Wednesday, March 27, 2013 3:22 PM
Points: 1,276,
Visits: 1,112
|
|
| Nice article. You might want to mention that EM should not be used to modify tables that are already populated. EM completely re-builds and re-populates the table from scratch for any modifications to it - even something as simple as adding a new column. Using T-SQL in QA will usually run several orders of magnitude faster, especially for tables with a lot of rows.
|
|
|
|
|
SSCommitted
      
Group: General Forum Members
Last Login: Friday, June 07, 2013 11:04 PM
Points: 1,894,
Visits: 206
|
|
I use EM for two functions that I do quite often, creating databases and scripting store procedures. I know that it is fairly simple to create a db in TSQL, I just got in the habit of doing it through EM. Scripting store procedures, on the other hand, is another story. I don't know of anyway to script a store procedure from TSQL, scripting it to the point of being able to cut/paste into QA to modify the procedure. sp_helptext does not help because it puts carriage returns in inappropriate places. Is there a way to script a store procedure in TSQL?
|
|
|
|
|
SSCrazy
      
Group: General Forum Members
Last Login: Today @ 2:22 AM
Points: 2,693,
Visits: 1,081
|
|
Mike, you can add columns to a table in Enterprise Manager without too much fuss at all. Just add them at the end. Then EM will just use the sp_addcolumn stored procedure. Also, if you are editing the structure of a populated table, then it's actually better to do it in Enterprise Manger, grab the change script, and close the design view without saving the changes. The reason for this is that Enterprise Manager will do a better job of scripting all the constraints that apply to the table. Richard, you can script most things from the Object Browser in Query Analyzer. Just right-clcick the object and choose "Script to New Window as ..." Just make sure you visit the Options before you do any scripting. Checking the "Include Object Permissions" is one that always catches me 
Hope this helps Phill Carter -------------------- Colt 45 - the original point and click interface 
Australian SQL Server User Groups - My profile Phills Philosophies Murrumbeena Cricket Club
|
|
|
|
|
SSCrazy
      
Group: General Forum Members
Last Login: Yesterday @ 10:52 AM
Points: 2,553,
Visits: 515
|
|
Richard - not sure about your scripting stored procedures question but there're several ways to do it: 1) In EM - use "All tasks" - "Generate Sql Script".... 2) In QA - use the object browser and "Script object to New Window As..." 3) Create a template & use it to modify & create new procedures. Hope at least one of these methods has addressed your question.
Jeff - thanks for the kind words - find it difficult to believe that I could've helped any "oldbie" but will take your word for it! Phill - thx. for drawing my attention to the non-mentioned trick -  Mike - Didn't know that EM does this - Think that with the expertise of all the articles you've written you're quick to find "missing links" and I'm grateful for your input.
**ASCII stupid question, get a stupid ANSI !!!**
|
|
|
|
|
SSCrazy
      
Group: General Forum Members
Last Login: Sunday, June 16, 2013 9:23 AM
Points: 2,580,
Visits: 7,292
|
|
I tried the link above, and got page not found ?? Did some pirates whisk it away somewhere ? (edit) Found it by looking around a bit ....
|
|
|
|
|
SSCrazy
      
Group: General Forum Members
Last Login: Yesterday @ 10:52 AM
Points: 2,553,
Visits: 515
|
|
what link would that be hb01 ?!
**ASCII stupid question, get a stupid ANSI !!!**
|
|
|
|
|
SSCrazy
      
Group: General Forum Members
Last Login: Sunday, June 16, 2013 9:23 AM
Points: 2,580,
Visits: 7,292
|
|
Sorry I wasn't clear. I hadn't seen you EM Tricks article, so I tried clicking the link in your first post.
|
|
|
|