... node -- returns STAFF
SELECT
(
SELECT
c.value('local-name(.)', 'nvarchar(50)')
FROM
Event_XML.nodes('/*') AS r(c)
) AS RootParent
FROM [dbo].[XML_EVENTS]
-- to get name of immediate ...
... You can put a distinct on it (not forgetting the collate).
This example is expanded in a further article called "Search a database with soundex":
/* USING A CURSOR */
DECLARE @SqlToExecute nvarchar(max);
DECLARE ...
... 'dbo.usp_MakeTableTemp', 'P' ) IS NOT NULL
DROP PROCEDURE dbo.usp_MakeTableTemp;
GO
-- Create Stored Procedure
CREATE PROCEDURE dbo.usp_MakeTableTemp
@SchemaTableName nvarchar(100)
AS
BEGIN
...
This was called a Data-Scrambling Function but it depends on what you mean by "scrambling". This is a function which merely uses the same characters but switches their order randomly, so I've renamed ...
... as to what this database is and how it populates its data.
View: ExecutionLog
InstanceName nvarchar(38) NOT NULL Name of the report server instance that handled the request. Usually YOURSERVERNAME\MSSQLSERVER ...
We use cookies to improve your experience on our website. By browsing this website, you agree to our use of cookies. Read more about our Privacy Policy.