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

Get your favorite SSC scripts directly in SSMS with the free SQL Scripts addin. Search for scripts directly from SSMS, and instantly access any saved scripts 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: 511 | Views in the last 30 days: 1
 
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