|
|
|
SSC-Dedicated
           
Group: Administrators
Last Login: Today @ 12:01 PM
Points: 31,436,
Visits: 13,750
|
|
|
|
|
|
SSC Rookie
      
Group: General Forum Members
Last Login: Monday, April 29, 2013 8:34 AM
Points: 28,
Visits: 110
|
|
Perfect for a newbie like me!
-gol
|
|
|
|
|
Old Hand
      
Group: General Forum Members
Last Login: Monday, December 27, 2010 2:30 PM
Points: 312,
Visits: 17
|
|
Isn't this bad since it will lock the rows you're viewing? I started out with EM, but now I couldn't live without query analyzer.
|
|
|
|
|
SSC Rookie
      
Group: General Forum Members
Last Login: Thursday, October 18, 2012 7:50 AM
Points: 30,
Visits: 78
|
|
The link to part one goes to the part 2 page. Is it supposed to go to this: http://www.sqlservercentral.com/columnists/sjones/beginningsqlserver2000administrationpart1.asp ?
|
|
|
|
|
SSCommitted
      
Group: General Forum Members
Last Login: Today @ 1:05 PM
Points: 1,559,
Visits: 1,397
|
|
I think it was a great article for beginners. I also think the EM is a great tool for beginners to start with and Query Analyzer should be tought as the next step up.
My blog: SQL Soldier Twitter: @SQLSoldier Microsoft Certified Master: SQL Server 2008 Sr. Product Consultant and Chief SQL Server Evangelist @ Idera My book: Pro SQL Server 2008 Mirroring
|
|
|
|
|
SSC Rookie
      
Group: General Forum Members
Last Login: Monday, May 20, 2013 12:18 PM
Points: 30,
Visits: 239
|
|
I think the only thing you should teach is how to lock themselves out of they system until they get some training.
|
|
|
|
|
SSCrazy
      
Group: General Forum Members
Last Login: 2 days ago @ 9:52 AM
Points: 2,796,
Visits: 1,125
|
|
Thanks Steve. Great article. I have a question the might be slightly off topic. What would be the best way in sql server 2000 to write a stored proc that takes the row limit as an argument? CREATE PROCEDURE MyTestProc @rowlimit AS ??????
-Kevin Williams
|
|
|
|
|
SSCrazy
      
Group: General Forum Members
Last Login: Friday, May 17, 2013 6:44 AM
Points: 2,553,
Visits: 513
|
|
You could do something like this...
Set Rowcount @rowlimit
select col1, col2 from myTable where...
**ASCII stupid question, get a stupid ANSI !!!**
|
|
|
|
|
SSCrazy
      
Group: General Forum Members
Last Login: 2 days ago @ 9:52 AM
Points: 2,796,
Visits: 1,125
|
|
|
|
|
|
SSCommitted
      
Group: General Forum Members
Last Login: Today @ 1:05 PM
Points: 1,559,
Visits: 1,397
|
|
Just be careful. There are certain circumstances where Set RowCount is ignored. Also, the RowCount will stay set within your procedure until the procedure either ends or you turnit off (Set ROWCOUNT = 0 turns it off). If not used carefully, Set RowCount can cause you a lot of problems, and you won't realize it until it's too late. Personally, I would advocate building the query dynamically and using Exec() or sp_executesql to execute it.
My blog: SQL Soldier Twitter: @SQLSoldier Microsoft Certified Master: SQL Server 2008 Sr. Product Consultant and Chief SQL Server Evangelist @ Idera My book: Pro SQL Server 2008 Mirroring
|
|
|
|