i wish i knew that yesterday!

13
I wish I knew that yesterday! SQL Server 2012 Awesomeness and some other stuff

Upload: matt-horn

Post on 05-Dec-2014

517 views

Category:

Technology


8 download

DESCRIPTION

 

TRANSCRIPT

Page 1: I wish i knew that yesterday!

I wish I knew that yesterday!

SQL Server 2012 Awesomeness

and some other stuff

Page 2: I wish i knew that yesterday!

Matt Horn

• Senior Consultant – Aphelion Software• Microsoft® Certified Technology Specialist• Co-lead JHB Business Intelligence

Developer Network• Lead - IntelliCape B.I. User Group

9/27/2013 |

Managing role based security with SharePoint2 |

Page 3: I wish i knew that yesterday!

Agenda

Sequences Paging Dates String Functions Conversion Functions Other useful @#$%

9/27/2013 |

Footer Goes Here3 |

Page 4: I wish i knew that yesterday!

Sequences

Page 5: I wish i knew that yesterday!

Sequences

Used to generate numeric sequences. Set min and max values Caching of future values minimizing disk

IO. \0/

Page 6: I wish i knew that yesterday!

Paging

Page 7: I wish i knew that yesterday!

OFFSET & FETCH

ORDER BY is mandatory OFFSET  and FETCH are a pair. TOP  is a no no.

Page 8: I wish i knew that yesterday!

Dates

Page 9: I wish i knew that yesterday!

New Functions

DATEFROMPARTS DATETIMEFROMPARTS DATETIME2FROMPARTS SMALLDATETIMEFROMPARTS DATETIMEOFFSETFROMPARTS TIMEFROMPARTS EOMONTH

Page 10: I wish i knew that yesterday!

Strings

Page 11: I wish i knew that yesterday!

String Functions

CONCAT Does what it says on the box

FORMAT Looks simple. MASSIVELY useful

Page 12: I wish i knew that yesterday!

Conversion Functions

PARSE TRY_PARSE TRY_CONVERT

Page 13: I wish i knew that yesterday!

Other useful .. stuff