|
|
|
SSChasing Mays
      
Group: General Forum Members
Last Login: 2 days ago @ 2:48 AM
Points: 706,
Visits: 803
|
|
|
|
|
|
Grasshopper
      
Group: General Forum Members
Last Login: Wednesday, September 16, 2009 4:28 PM
Points: 19,
Visits: 29
|
|
Snapshots are supported on Developer Edition, not just Enterprise Edition.
Also, the call to master..xp_regread doesn't work with my x64 install. Can't find the path in the registry.
|
|
|
|
|
SSChasing Mays
      
Group: General Forum Members
Last Login: 2 days ago @ 2:48 AM
Points: 706,
Visits: 803
|
|
Thanks for your reply. Just extend the edition check to:
/* Snapshots are only supported on Developer and Enterprise editions */ if CAST(serverproperty('Edition') AS VARCHAR) not like 'Enterprise%' and CAST(serverproperty('Edition') AS VARCHAR) not like 'Developer%' begin if @verbose = 1 raiserror('This SQL Server edition does not support snapshots',10,1) return 1 end
(I'll post an updated version later) I don't know why the registry check isn't working on your server. Do you have a different instancename? Have you checked your registry?
|
|
|
|
|
Grasshopper
      
Group: General Forum Members
Last Login: Wednesday, September 16, 2009 4:28 PM
Points: 19,
Visits: 29
|
|
Wilfred van Dijk (7/9/2008) I don't know why the registry check isn't working on your server. Do you have a different instancename? Have you checked your registry?It's a standard default instance install.
I've checked and there is no node for HKEY_LOCAL_MACHINE\Microsoft\Microsoft SQL Server\MSSQL.1
|
|
|
|
|
SSChasing Mays
      
Group: General Forum Members
Last Login: 2 days ago @ 2:48 AM
Points: 706,
Visits: 803
|
|
Try this key:
Set @RegPath = 'SOFTWARE\Microsoft\Microsoft SQL Server\' + @SQLInstance + '\Setup' EXEC master..xp_regread 'HKEY_LOCAL_MACHINE', @RegPath, 'SQLDataRoot', @value=@DataPath OUTPUT
|
|
|
|
|
Grasshopper
      
Group: General Forum Members
Last Login: Wednesday, September 16, 2009 4:28 PM
Points: 19,
Visits: 29
|
|
Sorry, I made typo in my previous post. There are no instances nodes under HKLM\Software\Microsoft\Microsoft SQL Server.
However, I did find it under: HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Microsoft SQL Server\MSSQL.1
It would appear that the 32bit version of SQL2005 was installed on the 64bit OS, which is why it got confused.
Will have to check which media was used for the install, because I thought it was just the standard MSDN DVD installer which should hopefully have installed the right edition.
|
|
|
|