Thursday, January 5, 2012

what is difference between sql server 2008 and sql server 2012

What is difference between sql server 2008 and sql server 2012?

Visit for more details
www.code-sample.com/2013/08/difference-between-sql-server-2008-and.html
http://www.code-sample.net/view/cshorp/collection-classes.html


Microsoft SQL Server 2012 Release Candidate 0 (RC 0) introduces many new technologies and features. Three new or significantly updated tutorials are available to help you get started quickly with.
The point of using a Server Audit Specification with database events in SQL Server 2012 is this. In SQL Server 2008, audit is an Enterprise-only feature. Only available in Enterprise, Evaluation, and Developer Edition. In SQL Server 2012, one of the new features (to quote BOL) is: "Support for server auditing is expanded to include all editions of SQL Server. Database audits are limited to Enterprise, Datacenter, Developer, and Evaluation editions." (Note: there's no DataCenter edition any more after the recent licensing change).So there IS a SQL Express 2012 RC0 available. Let's download it and try it out. http://msftdbprodsamples.codeplex.com/releases/view/55330

There is no GUI for Server Audit and Server Audit Specification, even when you load up an Express edition into a Enterprise SSMS Object Explorer. But who needs a GUI...we can use DDL and use sys.fn_get_audit_file to read the audit log.

USE master
GO
CREATE SERVER AUDIT TestAudit2 TO file (filepath = 'c:\tempfile')
WHERE database_name ='MyWorks' AND schema_name ='HumanResources'
  AND object_name ='EmployeePayHistory' AND database_principal_name ='dbo';
CREATE SERVER AUDIT SPECIFICATION TestServerSpec2
FOR SERVER AUDIT TestAudit2

SQL Server 2012 brings many new features to the T-SQL language. Some were added merely to ease the transition to SQL Server from other languages and platforms. Others were added to provide very powerful, new ways to solve cumbersome problems

I’ve been bitten many times by bad data in a column using the wrong data type. ISNUMERIC(), for example, is not always reliable; values that return true are not convertible to all numeric types. Today I might try to perform something like this exp:
SELECT CONVERT(INT, column) … WHERE ISNUMERIC(column) = 1;
However, this will fail for values like ‘e’ which are considered numeric but cannot be converted to an integer. TRY_CONVERT() allows you to ignore invalid conversions and return NULL for those values instead of returning an error for the entire query.

Many web applications use paging to show 10 or 50 rows per page and allow the user to scroll through each page of results rather than download the entire set. MySQL has had the non-standard LIMIT clause for some time now, and SQL Server users have longed for similarly simple syntax. ORDER BY … OFFSET / FETCH syntax, which is standards-compliant, has been added to the SQL Server 2012. While it doesn’t provide significant performance improvements over the tedious CTE solutions we use today, it certainly makes the code easier to write, as I demonstrated in a blog post last November.

Using CLR under the covers, we will now finally have relative parity with the .format() function we are used to using in .NET languages like C#. This means no more memorizing cryptic style codes like 101 and 103 for converting datetime values to localized presentation formats, or using all kinds of messy string manipulation to present numeric values with dollar signs and thousands separators. In August I wrote a lengthy blog post about FORMAT() with many examples.


Sql server 2012:

1.The SQL Server 2012 uses 48 bit precision for spatial
2.In SQL server 2012 has unlimited concurrent connections
3.By default it supports 15,000 partitions
4.Available new string functions CONCATE and FORMAT
5.Available new conversion  functions are PARSE ,TRY_CONVERT,TRY_PARSE





1 comment:

Bhaskarreddy Mule said...

Hi,
Great post with description.
In the given link has provides some new differences
http://csharpektroncmssql.blogspot.com/2012/07/difference-between-sqlserver-2008-and.html