Home Microsoft SQL Server DigiMailing iRN Contact


  No additional text.

CREATE VIEW sys.plan_guides AS
		plan_guide_id 	= g.id,
		name 		= g.name,
		create_date 	= g.created,
		modify_date 	= g.modified,
		is_disabled 	= sysconv(bit, g.status & 1),
		query_text 	= convert(nvarchar(max), p.stmt),
		scope_type 	= g.scopetype,
		scope_type_desc 	= convert(nvarchar(60), case g.scopetype
								when  1 then 'OBJECT'
								when  2 then 'SQL'
								else 'TEMPLATE' end),
		scope_object_id = sysconv(int, case g.scopetype when 1 then g.scopeid end), -- object-id is non-NULL only for module-scoped guide
		scope_batch 	= convert(nvarchar(max), p.batch), -- for single-stmt batch, batch_text is always NULL
		parameters 		= convert(nvarchar(max), p.params),
		hints 			= convert(nvarchar(max), p.hints)
	FROM sys.syssqlguides g CROSS APPLY OpenRowset(TABLE PLANGUIDES, g.id, g.scopeid, g.scopetype) p	
	WHERE g.scopeid <> 0 -- filter-out batch entries

Last revision 2008RTM

  Query a named instance
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
Zoekmachine optimalisatie
SQL Servers hidden objects
Flash in Ajax
De hype die AJAX heet
Barcode scannen
MySQL; Gratis, makkelijk en snel!
sIFR; de combinatie tussen HTML en Flash