Top "Sql-server-2008-r2" questions

Use this tag for questions specific to the 2008 R2 version of Microsoft's SQL Server.

How to have analysis service up and running in SQL Server Express Edition

I am badly stuck up with this problem! I am running Microsoft SQL Server 2008 R2 and Business Intelligence Development Studio. …

sql sql-server sql-server-2008-r2 analysis
What is USING in SQL Server 2008 MERGE syntax?

Jacob asked the perfect question: give me the MERGE syntax. Every answer out there immediately jumps to the most complicated …

sql-server merge sql-server-2008-r2 upsert
adding dynamic content within body of an email (database mail) with sp_send_dbmail

Is there a way I can add the time in the following query as the body of my email : EXEC …

sql-server tsql sql-server-2008-r2 sp-send-dbmail dbmail
SSIS: How to disable task?

I would like to keep a task in an SSIS package but enable/disable it when i please. Is there …

ssis sql-server-2008-r2 bids
Scripting Log Shipping Automation

Is it possible to script All of the Log Shipping configuration? For example: I need to write a job that …

sql-server scripting sql-server-2008-r2 log-shipping
Error 945 Database cannot be opened due to inaccessible files or insufficient memory or disk space. See the SQL Server error log for details

While trying to access databases, logins, etc in SQL Server Management Studio 2008 R2, below error is always popping up. I …

sql-server sql-server-2008-r2 database-engine
WHERE Clause vs ON when using JOIN

Assuming that I have the following T-SQL code: SELECT * FROM Foo f INNER JOIN Bar b ON b.BarId = f.…

sql sql-server tsql sql-server-2008-r2 inner-join
How to rewrite IS DISTINCT FROM and IS NOT DISTINCT FROM?

How do you rewrite expressions containing the standard IS DISTINCT FROM and IS NOT DISTINCT FROM operators in SQL implementations …

sql sql-server tsql sql-server-2008-r2 ansi-sql
Database stuck in restoring state

Last night I had a database that had it's data and log files physically removed without first taking the proper …

database sql-server-2008-r2 database-restore repair
CTE very slow when Joined

I have posted something similar before, but I am approaching this from a different direction now so I opened a …

sql sql-server-2008-r2 common-table-expression