Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 

Get your favourite SSC scripts directly in SSMS with the free SQL Scripts addin. Search for scripts directly from SSMS, and instantly access any saved in your SSC briefcase from the favorites tab.
Download now (direct download link)

ITX_SP_BAK

By Sean Brian,

1) Change the Database Name below from YourDBName to the name of the target DB.

2) If XP_cmdshell is blocked, use the statement below to enable it.

--Use when XP_cmdshell gets blocked

-- To allow advanced options to be changed.

EXEC sp_configure 'show advanced options', 1

GO

-- To update the currently configured value for advanced options.

RECONFIGURE

GO

-- To enable the feature.

EXEC sp_configure 'xp_cmdshell', 1

GO

-- To update the currently configured value for this feature.

RECONFIGURE

GO

3) Run the statement on the Target DB.

4) Exec ITX_SP_BAK A file will be created on the target server's c drive.

@P INT, --Back up Procs 1=yes 0=no

@FN INT, --Back up Functions 1=yes 0=no

@V INT --Back up Views 1=yes 0=no

Total article views: 509 | Views in the last 30 days: 3
 
Related Articles
FORUM

trying to enable xp_cmdshell on sql 2000

The configuration option 'xp_cmdshell' does not exist, or it may be an advanced option.

FORUM

SHOW ADVANCED OPTION

when i give the sp_configure 'show advanced option', 1 after that sql give the error Msg 5832,

FORUM

Grant.... with admin option..... (xp_cmdshell)

Grant.... with admin option..... (xp_cmdshell)

BLOG

Configure Windows Server 8 ISCSI Target

In part 4 will configure Windows Server 8 ISCSI Target to complete SQL Server 2012 Next Gen HADR lab...

FORUM

xp_cmdshell not supported in SQL 2005 Express Edition

The specified option 'xp_cmdshell' is not supported by this edition of SQL Server and cannot be chan...

 
Contribute

Join the most active online SQL Server Community

SQL knowledge, delivered daily, free:

Email address:  

You make SSC a better place

As a member of SQLServerCentral, you get free access to loads of fresh content: thousands of articles and SQL scripts, a library of free eBooks, a weekly database news roundup, a great Q & A platform… And it’s our huge, buzzing community of SQL Server Professionals that makes it such a success.

Join us!

Steve Jones
Editor, SQLServerCentral.com

Already a member? Jump in:

Email address:   Password:   Remember me: Forgotten your password?
Steve Jones