Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Introduction to SQL Server 2005 Expand / Collapse
Author
Message
Posted Tuesday, January 3, 2006 9:16 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Thursday, June 26, 2008 6:11 PM
Points: 1, Visits: 2
Comments posted to this topic are about the content posted at http://www.sqlservercentral.com/columnists/fFinney/introductiontosqlserver2005.asp
Post #247858
Posted Monday, January 30, 2006 7:06 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Saturday, August 31, 2013 11:41 PM
Points: 121, Visits: 34
Interesting article!
Is it fair to say that the new SQL keywords , like NTile, and RANK, are more geared towards statistical analysis of data, rather than just doing simple database operations(like updates, inserts, deletes)?
Post #254389
Posted Monday, January 30, 2006 10:15 AM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Thursday, October 2, 2008 7:37 AM
Points: 19, Visits: 19
The article is very poorly written, and apparently not even proofread.
Post #254469
Posted Monday, January 30, 2006 12:00 PM
Hall of Fame

Hall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of Fame

Group: General Forum Members
Last Login: Monday, September 15, 2014 4:12 PM
Points: 3,475, Visits: 582

Excellent Article with a good overview of develoment features.

I somewhat aggree with Alan too: the examples have typos unless the author did modify his AdventureWorks database.

In the first example in 3.1.1

Select row_number() over (order by SalesOrderDate desc) as RowNum,OrderID, CustomerID, SalesOrderDateFrom Sales.OrderHeaderOrder by SalesOrderDate Desc

Should read:

Select row_number() over (order by OrderDate desc) as RowNum,

SalesOrderID, CustomerID, OrderDate

From Sales.SalesOrderHeader

Order by OrderDate Desc

 

In the second example in 3.1.2

State.StateProvinceID

should read

StateProv.StateProvinceID

Since I made a mistake myself trying to point to the mistakes in the second example  I guess it is not the author's fault that the names are complex




Regards,
Yelena Varshal

Post #254508
Posted Monday, January 30, 2006 12:57 PM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Monday, November 23, 2009 4:45 AM
Points: 163, Visits: 9

Is the MERGE INTO .. there at all in the released version???

I searched the whole Books Online, it's nowhere to be found. Besides I tried executing the example given for this it fails.   




bm21
Post #254521
Posted Monday, January 30, 2006 4:25 PM
Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Thursday, January 30, 2014 10:08 PM
Points: 1,038, Visits: 444
Thanks for the article..  I don't normally try out the code samples so for me the article was great   Didn't know about merge into - will avoid a lot of the if exists(select * from ....) then update... else insert... code in my stored procs!


Post #254572
Posted Monday, January 30, 2006 10:19 PM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Monday, October 7, 2013 6:12 PM
Points: 135, Visits: 87

Got very frustrated when the examples were not working. MERGE INTO is no longer supported by SQL 2005. Other than that not a bad article.

Post #254610
Posted Monday, January 30, 2006 11:12 PM


SSC-Dedicated

SSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-Dedicated

Group: General Forum Members
Last Login: Today @ 5:42 AM
Points: 37,099, Visits: 31,649
Great article!  And, I didn't like the Merge Into function anyway...

--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."

(play on words) "Just because you CAN do something in T-SQL, doesn't mean you SHOULDN'T." --22 Aug 2013

Helpful Links:
How to post code problems
How to post performance problems
Post #254617
Posted Wednesday, February 1, 2006 6:42 AM
Old Hand

Old HandOld HandOld HandOld HandOld HandOld HandOld HandOld Hand

Group: General Forum Members
Last Login: Monday, July 21, 2014 2:40 PM
Points: 326, Visits: 180

Just piping in on a something I just noticed in playing with INTERSECTand EXCEPT.  I expected that they would act identicle to EXISTS and NOT EXISTS but they don't.  They treat nulls differently.

Based on the author's example create a quick reference table.

SELECT TOP 1000 CustomerID, OrderDate, SalesPersonID

INTO Sales.SalesOrderHeaderIntersection

FROM Sales.SalesOrderHeader

I expected the following two queries to return the same results.

SELECT CustomerID, OrderDate, SalesPersonID FROM Sales.SalesOrderHeader INTERSECT

SELECT CustomerID, OrderDate, SalesPersonID FROM Sales.SalesOrderHeaderIntersection

 

SELECT CustomerID, OrderDate, SalesPersonID FROM Sales.SalesOrderHeader t1

WHERE EXISTS

(SELECT * FROM Sales.SalesOrderHeaderIntersection t2 WHERE t1.CustomerID=t2.CustomerID

AND t1.OrderDate=t2.OrderDate AND t1.SalesPersonID=t2.SalesPersonID)

They do not because [NOT] EXISTS ommitts the nulls as a non match while INTERSECT includes them




Post #254908
Posted Friday, February 3, 2006 5:32 AM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Friday, July 24, 2009 12:57 AM
Points: 21, Visits: 16

Good Article,However would like to see more articles coming with focus on DBA aspects!

Cheers,

Raghu Pyapili

Post #255577
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse