Which is the best for Microsoft SQL Server 2008 - sql-server-2008

Which is the best for Microsoft SQL Server 2008? I would like to have information on PIVOT, Triggers, Stored Procedures, CLR integration, Service Broker etc all in one book.

Read SQL Books on line.

Books are a very personal choice. So its hard to recommend 1. But i find the publishers wrox and o'reilly do an excellent range of books on SQL and other topics.

Related

Entity Framework/LINQ/MSSQL vs Entity Framework/LINQ/MYSQL

My question is this. When trying to decide between using the Entity Framework and LINQ to SQL as an ORM, I am trying to figure out whether to use MSSQL or MYSQL....which one is preferred?
I heard that LINQ to SQL is tied to SQL Server is that still true?
NET integration story (C#, Linq, Entity Framework, etc.) in SQL Server is better is what I heard,please share your opinions
LINQ to SQL was introduced as part of .net 3.5 from memory. I don't see why you'd use it over EntityFramework now however, EF has come a long way and provides as far as I'm aware all the features LINQ to SQL did:
https://github.com/aspnet/EntityFramework6
EF and Linq to Sql are both Microsoft products, and SQL Server is a Microsoft product. Mysql is not a Microsoft product. In my experience, things work better if you stick with the same vendor. If you go with EF or Linq to SQL, and you have no other reasons to choose one over the other, my guess is you'll be happier if you pair it with SQL Server.

Learning SQL Server 2008 & Stored Procedures

I have a background in LAMP development and have recently started learning sql server. Whilst the principles of databases are the same, there are a lot of features in SQL Server that are not abundant in or are different to a simple MySQL database, e.g. stored procedures, syntax etc
Can anyone recommend any decent books that encompass the bespoke features possessed by sql server (vs MySQL) perhaps something that is geared towards someone who has underlying knowlegde of RDBMS's..
Microsoft® SQL Server® 2008 T-SQL Fundamentals - I got this book when SQL 2008 came out and it gives you a good wrap on what SQL Server Transact SQL can offer you.
Try Paul Nielsen's Sql Server Bible, its good enough

sql-server-2008 audit tables

In one of my application Iam using SQL SERVER 2008, I like to implement audit tables for few tables. One option I have to create triggers on the respective tables. Can anyone suggest me any other good, robust and secure option.
SQL Server 2008 has a new auditing feature: Auditing in SQL Server 2008.
There is also Change Data Capture
Triggers are the usual way to go. Another option could be to handle this in your stored procedures. Of course this assumes, that all data modification goes via stored procedure. Since you are on SQL Server 2008 and assuming you don't care about any lower version, check out the new auditing features here: http://msdn.microsoft.com/en-us/library/dd392015.aspx
You don't mentione which edition of SQL Server you are using as the Auditing features are only available in the Enterprise edition.
You should download a copy of the free eBook Developing Time-Oriented Database Applications in SQL by Richard T. Snodgrass from here: http://www.cs.arizona.edu/people/rts/tdbbook.pdf.
He talks about auditing and many other time related issues in databases.

Is there an alternative to the Adventureworks database for SQL Server 2008?

I want to use something lighter than adventureworks. Is there an alternative at all? I have had a look at the Chinook database, but I just want see if there is an alternative. Google search doesn't help either.
Microsoft SQL Server Community Projects & Samples
Microsoft SQL Server Product Samples: Databases

MS Access + OLAP

I have lot of data in MS Access, and for analysis I need tools. Might you suggest any tools for data mining and analysis (OLAP)?
Support for Access (and other various non-SQL Server data sources) will be included in the upcoming SQL Server 2008 R2 release (this release is focusing on self-service BI). You can follow how the project is progressing at http://blogs.msdn.com/gemini.
It depends on your data volumes the the complexity of the relationships that you want to investigate:
(1) Moderate volumes with low complexity relationships - use queries, pivot's graphs and reports in ms-access.
(2) High volume and or high complexity relationships - consider up sizing to SQL server and using the more grown-up data cubes (OLAP), stored procedures etc.
A possible solution can be Excel 2010 using the new Power Pivot Add-on.
It really depend on the type of analisys needed.
Federico
I guess your best bet would be to import your data into SQL Server using SQL Server Integration Services - should be pretty straightforward and painless.
Once in SQL Server, you have the Analysis Services at your disposal which give you all these capabilities for OLAP analysis.
I don't think there's much for MS Access directly.
Marc
If it is not too much data, import it into Excel and use the privot table functionality.
If it is too much for that then SQL Server is the way to go.
An alternative OLAP solution is to use icCube to connect directly to your MS Access file.