Posts tonen met het label SQL 2008 R2. Alle posts tonen
Posts tonen met het label SQL 2008 R2. Alle posts tonen

woensdag 27 februari 2013

Change SQL backup location

During the installation of a SQL instance, you'll have the ability to define some folders
These locations can be defined:
  • User database directory
  • User database lof directory
  • Temp DB directory
  • Temp DB log directory
  • Backup directory


Within SQL Server Management Studio you have the ability to change the default location for your Data and Log files for all new databases. Just  right click on the server name and select properties, navigate to the Database Settings page. Here you can find a section Database default locations for changing the data and log directories.



But if you search through all of the pages under Database Settings you will not find anything that shows the default backup directory.  To find this we need to look in the registry.

Open the registry tool REGEDIT and navigate to following key:
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL10_50.BTSTPTST1\MSSQLServer

Or something similar for your instance of SQL server. The registry key BackupDirectory is the one you'll need to change to set another default Backup Directory.


Changing the registry can also be done with a T-SQL query command. To do so, you'll be using the extended stored procedures XP_REGREAD and XP_REGWRITE.

Reading the falue in registry can be done by using this command:

DECLARE @BackupDirectory VARCHAR(100)
EXEC master..xp_regread @rootkey='HKEY_LOCAL_MACHINE',
  
@key='SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL10_50.BTSTPTST1\MSSQLServer'
,
  
@value_name='BackupDirectory'
,
  
@BackupDirectory=@BackupDirectory 
OUTPUT SELECT @BackupDirectory

This will result in something similar as this:


Changing the default folder can be done by using the following command

EXEC master..xp_regwrite
     
@rootkey='HKEY_LOCAL_MACHINE'
,
     
@key='SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL10_50.BTSTPTST1\MSSQLServer'
,
     
@value_name='BackupDirectory'
,
     
@type='REG_SZ'
,
     
@value='C:\Program Files\Microsoft SQL Server\MSSQL10_50.BTSTPTST\MSSQL\Backup'


maandag 7 januari 2013

Error: The self-extracting zip file is part of a multidisk zip file

I tried to install the Cumulative update package 14 for SQL Server 2008 R2.

After requesting the update on http://support.microsoft.com/kb/2703280, I got an email containing a link to download the file 449383_intl_x64_zip.exe. After downloading the file an trying to run the self extracting zip file, I got following error:

This self-extracting zip file is part of a multidisk zip file. Please insert the last disk of the set.


There is no other option than pressing the OK-button.And after pressing the OK-button 3 times, I got following error message:


An error occured while unzipping. One or more files were not succesfully unzipped. The error code is 110.


The solution for this seemed to be to just download the file from the given link in my email again.
After this I could succesfully run the self-extracting zip file an install my cumulative update package.





woensdag 28 november 2012

SQL Server Configuration Manager - Error 0x80041010

When opening the SQL Server Configuration manager (for SQL Server 2008 R2 in my case), I kept getting following error:

Cannot connect to WMI provider. You do not have permission or the server is unreachable. Note that you can only manage SQL Server 2005 and later servers with SQL Server Configuration Manager. Invalid class [0x80041010]


The solution to resolve this turned out to be quite simple. Just open a command prompt and execute following command:

C:\Program Files\Microsoft SQL Server\100\Shared>mofcomp "C:\Program Files\Microsoft SQL Server\100\Shared\sqlmgmproviderxpsp2up.mof"

Depending on the SQL version installed the path to the file could also be something like C:\Program Files\Microsoft SQL Server\90\Shared\sqlmgmproviderxpsp2up.mof

donderdag 14 juli 2011

Released: Microsoft SQL Server 2008 R2 SP1 and SQL Server Denali CTP3

This week is packed with big announcements: Microsoft released SQL Server Code Name “Denali” Community Technology Preview 3 (CTP3) with breakthrough innovations that will help our customers to shape their Business Intelligence (BI) future; and Microsoft also released SQL Server 2008 R2 Service Pack 1 with important improvements of our existing technologies.

Also PowerPivot for Microsoft Excel 2010 was updated as a separate download.

Source: Released: Microsoft SQL Server 2008 R2 Service Pack 1 - Analysis Services and PowerPivot Team Blog - Site Home - MSDN Blogs

woensdag 18 mei 2011

Microsoft SQL Server 2008 R2 Service Pack 1

Service Pack 1 is available for SQL Server 2008 R2.

What’s New in SQL Server 2008 R2 Service Pack 1
  • Dynamic Management Views for increased supportability:
    sys.dm_exec_query_stats DMV is extended with additional columns to improve supportabilities over troubleshooting long-running queries. New DMVs and XEvents on select performance counters are introduced to monitor OS configurations and resource conditions related to the SQL Server instance.
  • ForceSeek for improved querying performance :
    Syntax for FORCESEEK index hint has been modified to take optional parameters allowing it to control the access method on the index even further. Using old style syntax for FORCESEEK remains unmodified and works as before. In addition to that, a new query hint, FORCESCAN has been added. It complements the FORCESEEK hint allowing specifying ‘scan’ as the access method to the index. No changes to applications are necessary if you do not plan to use this new functionality.
  • Data-tier Application Component Framework (DAC Fx) for improved database upgrades:
    The new Data-tier Application (DAC) Framework v1.1 and DAC upgrade wizard enable the new in-place upgrade service for database schema management. The new in-place upgrade service will upgrade the schema for an existing database in SQL Azure and the versions of SQL Server supported by DAC. A DAC is an entity that contains all of the database objects and instance objects used by an application. A DAC provides a single unit for authoring, deploying, and managing the data-tier objects. For more information, see Designing and Implementing Data-tier Applications.
  • Disk space control for PowerPivot:
    This update introduces two new configuration settings that let you determine how long cached data stays in the system. In the new Disk Cache section on the PowerPivot configuration page, you can specify how long an inactive database remains in memory before it is unloaded. You can also limit how long a cached file is kept on disk before it is deleted.

    Source:Download details: Microsoft® SQL Server® 2008 R2 Service Pack 1 Community Technology Preview
  • SQL Server 2008 Developer Training Kit

    Learning how to develop with the rich data types, programming models and new development paradigms in SQL Server 2008?
    Microsoft has a training kit available to do this with slides, demos and hands-on labs.

    DOWNLOAD: SQL Server 2008 Developer Training Kit

    Since Januari 2011 there is also an update available.

    New Content: Build Your First Microsoft BI Solution with SQL Server 2008 R2
    This update includes a rich new set of content designed for developers who want to learn how to build their first Microsoft Business Intelligence solution with SQL Server 2008 R2. Microsoft BI solutions leverage your existing technology investments in .NET, SQL Server and Office to develop rich integrated reporting and analytics experiences that empower users to gain access to accurate, up-to-date information for better, more relevant decision making. This content is a complete training course that contains eleven units covering all the key aspects of Microsoft BI solution development. You can find it by navigating to the Getting Started - BI Developers page. Here is a summary of what’s included:
    31 presentations (PowerPoint slides, videos and transcripts included)
    27 demos (installer scripts, videos and transcripts included)
    12 hands on labs (installer scripts included)

    More Info + Download: SQL Server 2008 R2 Update for Developers Training Kit

    dinsdag 10 mei 2011

    interesting vids

    I've been to the Microsoft Techdays a few weeks ago.It's been an amazing experience and learned some new things.

    Too bad though that some interesting sessions took place on the exact same moment. So I could only follow one of them.
    Luckily however, they announced that all sessions would be recorded and placed on the channel 9 web site to view later.

    Well, I'm still waiting for those sessions to appear on the website...
    I've found some other Microsoft technology event sessions of this year that were on channel 9 already. So for now, I won't have any evenings not knowing what to do :).

  • Devdays 2011 Netherlands
  • MIX 2011 Las Vegas
  • techdays 2011 Belgium (only developer keynote on line yet)
  • woensdag 2 maart 2011

    SQL Server training

    24 Hours of PASS wants to celebrate women in Technology.

    It brings an exceptional lineup of women SQL and BI experts from around the world.
    Join for 24 webcasts over two days starting at 12:00 GMT (UTC) on March 15.
    Visit www.sqlpass.org/24hours for more info.

    this event consists of several live meetings on SQL Server.
    Regestration for some (or all) of the meetings can be done here.

    vrijdag 21 januari 2011

    SQL Server 2008 R2 Update for Developers Training Kit (January 2011 Update)

    The SQL Server 2008 R2 Update For Developers Training Kit January 2011 Update is released. This is a great resource for developers, trainers, consultants and evangelists who need to understand the key improvements introduced in SQL Server 2008 R2 from a developer perspective. It contains a rich set of presentations, demos, hands-on labs and videos that are perfect for self-paced learning or for conducting your own training.

    You can download the training kit now at the following URL:

    http://go.microsoft.com/?linkid=9710868