SQLPass Franken: Treffen der Regionalgruppe Franken am Dienstag, den 13. April 2010

Return Default SQL Server Folder

Below script will query registry settings to return folder informations (SQL Root, Data, Log and Backup).

I use this script to determine the default locations, put it in variables an use it for creating databases or backups.


DECLARE @SQLDataRoot nvarchar(512)
DECLARE @DefaultData nvarchar(512)
DECLARE @DefaultLog nvarchar(512)
DECLARE @BackupDirectory nvarchar(512)

-- check defaults
-- installation directory

-- sql server root
EXEC master.dbo.xp_instance_regread
N'HKEY_LOCAL_MACHINE',
N'Software\Microsoft\MSSQLServer\Setup',
N'SQLDataRoot',
@SQLDataRoot OUTPUT
-- 'data' directory
EXEC master.dbo.xp_instance_regread
N'HKEY_LOCAL_MACHINE',
N'Software\Microsoft\MSSQLServer\MSSQLServer',
N'DefaultData',
@DefaultData OUTPUT
-- 'log' directory
EXEC master.dbo.xp_instance_regread
N'HKEY_LOCAL_MACHINE',
N'Software\Microsoft\MSSQLServer\MSSQLServer',
N'DefaultLog',
@DefaultLog OUTPUT
-- 'backup' directory
EXEC master.dbo.xp_instance_regread
N'HKEY_LOCAL_MACHINE',
N'Software\Microsoft\MSSQLServer\MSSQLServer',
N'BackupDirectory',
@BackupDirectory OUTPUT

-- default locations set?
IF LEFT(REVERSE(@SQLDataRoot), 1) <> N'\'
SET @SQLDataRoot = @SQLDataRoot + N'\'
-- regkey = 0 then default root
SET @DefaultData = ISNULL(@DefaultData, @SQLDataRoot + 'DATA')
SET @DefaultLog = ISNULL(@DefaultLog, @SQLDataRoot + 'DATA')

--
PRINT '''Data'' - Directory : ' + @DefaultData
PRINT '''Log'' - Directory : ' + @DefaultLog
PRINT '''Backup'' - Directory : ' + @BackupDirectory

CU
tosc

Attachments:

Microsoft SQL Server 2008, 2005, 2000 and 7.0 Builds

In a earlier previous post - Which service pack do I have installed? - based on How to identify your SQL Server version and edition and using

EXEC xp_msver;

for a deep dive to SQL Server version information, the guys of http://sqlserverbuilds. blogspot. com
gives you an  unofficial build chart lists all of the known KB articles, hotfixes and other builds of MS SQL Server 2008, 2005, 2000 and 7.0 that have been released.


CU
tosc

Happy Pi day - the ratio π

Yes, it is Pi-Day!

The origninal song by Ken Ferrier and Antoni Chan: Mathematical Pi Song

Animation of the act of unrolling a circle's circumference, illustrating the ratio π.

 

CU
tosc

Service Pack SQL Server 2008 SP2 and SQL Server 2005 SP4 - Based on feedback from the community !!!

They will do it! Here is the statement of Matthias Berndt, Group Program Manager Microsoft SQL Server:

SQL Server Servicing plans

Hello Community, we appreciate your recent comments regarding the servicing needs of your current SQL Server configurations. We want to assure you that we are fully committed to our existing customer base, hence hereby clarification around our near term servicing deliverables:

* SQL Server 2008 SP2. Microsoft targets release in Q3/CY2010.
* SQL Server 2005 SP4. You overwhelmingly requested another servicing release for SQL Server 2005. Given your feedback Microsoft targets now such release in Q4/CY2010. Based on current support volume as well as the fact that SQL Server 2005 will enter into extended support on 4/13/2011 we anticipate this to be the last Service Pack release for this SQL Server version. Extended support for SQL Server 2005 will be available through 4/12/2016. Please see http://support.microsoft.com/lifecycle/ for specifics. As always, the SQL Server team will carefully monitor customer feedback as well as support volume to re-assess our decisions based on your needs.

SQL Server 2008 Service Pack 2 - Vote for

Service Pack 4 for SQL Server 2005 - Vote for

CU
tosc

SQL PASS Franken - Di 9.2.2010 18:30 Uhr - Sichern, Wiederherstellen, Integrity Check und Index Optimization

Cumulative Updates for SQL Server 2008 and SQL Server 2008 Service Pack 1

Mention, the CSS SQL Server Engineers blog listed a note that some end of support dates were coming up.

SQL Server 2008 RTM support ends on April 13, 2010. You should make plans to upgrade to SQL Server 2008 SP1 soon.

So I think, it is definitely time to start thinking about upgrading your instances to SQL Server 2008 SP1!

Cumulative Update 6 for SQL Server 2008 SP1 (KB #977443)
The SQL Server 2008 builds that were released after SQL Server 2008 Service Pack 1 was released

 

Cumulative Update 9 for SQL Server 2008 RTM (KB #977444)
The SQL Server 2008 builds that were released after SQL Server 2008 was released

 

AND I think It's time to vote at MS-Connect for Service Pack 2 for SQL Server 2008!

 

CU
tosc

CSS SQL Server Engineers - "End of Support” Dates

Last week the CSS SQL Server Engineers blog listed a note that some end of support dates were coming up. The end of support dates and products were:

  • SQL Server 2005 Service Pack 2 support ends next week January 12, 2010. You should upgrade to SQL 2005 SP3 or SQL 2008 SP1 immediately.
  • SQL Server 2008 RTM support ends on April 13, 2010. You should make plans to upgrade to SQL Server 2008 SP1 soon.

There for I guess we have to vote for:

CU
tosc

SQL Server 2008 Service Pack 2 - Vote for

It's time to vote at MS-Connect for Service Pack 2 for SQL Server 2008

When is SQL Server 2008 Service Pack 2 slated to be released? Many companies depend on these Service Packs to stay patched, being unwilling, and unable, to install CUs on a regular basis.

CU
tosc

Service Pack 4 for SQL Server 2005 - Vote for

It's time to vote at MS-Connect  for Service Pack 4 for SQL Server 2005

I am wondering when Service Pack 4 for SQL Server 2005 is slated to be released. Many companies will not install CUs, and depend on SPs to provide additional stability and patch their systems. Release Services has stated that there will be one SP a year, containing all CUs in it.

SQL Server 2005 SP3 was released on Dec 15, 2008. It is now over one year old.

CU
tosc