Home Microsoft SQL Server DigiMailing iRN Contact
    Keyword



sys.sp_SetInternalTableAccess

  No additional text.


Syntax

---------------------------- sp_MS_marksystemobject 
-- Internal usage only
-- Enable specified procedure to access internal tables thru dynamic TSQL
create procedure sys.sp_SetInternalTableAccess
	@object sysname,  -- object name
	@schema sysname = N'sys'	-- object schema name
as
	if (@schema <> N'sys')
	        raiserror(15165,-1,-1,@object)

	declare @objid int
	declare @objname nvarchar(517)
	select @objname = @schema + N'.' + @object

	BEGIN TRANSACTION
	select @objid = object_id(@objname)
	EXEC %%Object(MultiName = @objname).LockMatchID(ID = @objid, Exclusive = 1, BindInternal = 0)
	if @@error <> 0
	begin
		COMMIT TRANSACTION
		raiserror(15165,-1,-1,@object)
	end
	EXEC %%Module(ID = @objid).SetInternalTableAccess(Value = 1)
	COMMIT TRANSACTION

 
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