Home Microsoft SQL Server DigiMailing iRN Contact
    Keyword



sys.sp_setbuildresource

  No additional text.


Syntax

---------------------------- sp_setbuildresource 

-- Special db characteristic sp_* name resolution implemented to look in resource database first
CREATE PROCEDURE sys.sp_setbuildresource
	@fset bit
AS
	SET NOCOUNT ON
	IF @@TRANCOUNT > 0
	BEGIN
		RAISERROR(15002,-1,-1,'sp_setbuildresource')
		RETURN (1)
	END
	IF IS_SRVROLEMEMBER('sysadmin') = 0
	BEGIN
		RAISERROR(15003, -1, -1, 'sysadmin')
		RETURN (1)
	END

	-- If in build and turning it off, set db as read-only
	IF ISNULL(@fset,0) = 0
	BEGIN
		DBCC TRACEOFF(3801,-1)	-- allow usedb stmt
		EXEC ('USE mssqlsystemresource CHECKPOINT')
		ALTER DATABASE mssqlsystemresource SET READ_ONLY
	END
	ELSE
	BEGIN
		ALTER DATABASE mssqlsystemresource SET READ_WRITE
		DBCC TRACEON(3801,-1)	-- disallow usedb stmt
	END

 
Last revision 2008RTM
News

  Query a named instance
Sybase+ASE+silent+install
SQL 2008 R2
Deprecated procedures in SQL2008
Reporting Services item-level role definitions
Create all your missing indexes
Converting datetime field
Start MSSQL Server Profiler at time
Replicating MSSQL Server views
Exploring Microsoft Sharepoint
The OLE DB provider "SQLNCLI10" for linked server indicates.
Mobile solar charger
Oracle to SQL Server replication
Cannot insert the value NULL into column
Undocumented Microsoft SQL Server 2008
VMware
Zoekmachine optimalisatie
SQL Servers hidden objects
FckEditor
Flash in Ajax
De hype die AJAX heet
Barcode scannen
MySQL; Gratis, makkelijk en snel!
PHP
sIFR; de combinatie tussen HTML en Flash