Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


usp_createsnapshot


usp_createsnapshot

Author
Message
Wilfred van Dijk
Wilfred van Dijk
Ten Centuries
Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)

Group: General Forum Members
Points: 1025 Visits: 1352
Comments posted to this topic are about the item usp_createsnapshot

Wilfred
The best things in life are the simple things
Dave Dustin
Dave Dustin
SSC Rookie
SSC Rookie (47 reputation)SSC Rookie (47 reputation)SSC Rookie (47 reputation)SSC Rookie (47 reputation)SSC Rookie (47 reputation)SSC Rookie (47 reputation)SSC Rookie (47 reputation)SSC Rookie (47 reputation)

Group: General Forum Members
Points: 47 Visits: 131
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.

AucklandSQL User Group
Independent SQL Server Consultant
SQL Server MVP

Wilfred van Dijk
Wilfred van Dijk
Ten Centuries
Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)

Group: General Forum Members
Points: 1025 Visits: 1352
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?

Wilfred
The best things in life are the simple things
Dave Dustin
Dave Dustin
SSC Rookie
SSC Rookie (47 reputation)SSC Rookie (47 reputation)SSC Rookie (47 reputation)SSC Rookie (47 reputation)SSC Rookie (47 reputation)SSC Rookie (47 reputation)SSC Rookie (47 reputation)SSC Rookie (47 reputation)

Group: General Forum Members
Points: 47 Visits: 131
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

AucklandSQL User Group
Independent SQL Server Consultant
SQL Server MVP

Wilfred van Dijk
Wilfred van Dijk
Ten Centuries
Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)

Group: General Forum Members
Points: 1025 Visits: 1352
Try this key:

Set @RegPath = 'SOFTWARE\Microsoft\Microsoft SQL Server\' + @SQLInstance + '\Setup'
EXEC master..xp_regread 'HKEY_LOCAL_MACHINE', @RegPath, 'SQLDataRoot', @value=@DataPath OUTPUT

Wilfred
The best things in life are the simple things
Dave Dustin
Dave Dustin
SSC Rookie
SSC Rookie (47 reputation)SSC Rookie (47 reputation)SSC Rookie (47 reputation)SSC Rookie (47 reputation)SSC Rookie (47 reputation)SSC Rookie (47 reputation)SSC Rookie (47 reputation)SSC Rookie (47 reputation)

Group: General Forum Members
Points: 47 Visits: 131
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.

AucklandSQL User Group
Independent SQL Server Consultant
SQL Server MVP

Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search