Welcome to dbFreaks.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

XML Datatype Problem

 
   Database Help (Home) -> XML RSS
Next:  Least privilege to execute stored procedures  
Author Message
LPJ

External


Since: Nov 06, 2008
Posts: 7



(Msg. 1) Posted: Thu Nov 06, 2008 3:53 pm
Post subject: XML Datatype Problem
Archived from groups: microsoft>public>sqlserver>xml (more info?)

Hi all..Martin help´s me to do this query

WITH XMLNAMESPACES (DEFAULT
'http://schemas.microsoft.com/powershell/2004/04')
SELECT valores.value('(/Objs/Obj/Props/S[@N = "MachineName"])[1]',
'nvarchar(20)') AS MachineName ,
valores.value('(/Objs/Obj/Props/S[@N = "AnotherField"])[1]',
'nvarchar(20)') AS AnotherField
FROM diario.eventlog;

It´s works fine...
But in my column valores i have a node MachineName and i have a lot of
"MachineName" informations..and i have only 4 lines in table.
This select not shows up all MachineNames this shows up 4 lines with first
value of the node S[@N = "MachineName"]..I want to see all machinesnames of
the first table line , all machinesnames of the second table line...

There´s anyway to do this ?

 >> Stay informed about: XML Datatype Problem 
Back to top
Login to vote
Martin Honnen

External


Since: Apr 20, 2007
Posts: 48



(Msg. 2) Posted: Fri Nov 07, 2008 7:25 am
Post subject: Re: XML Datatype Problem [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

LPJ wrote:

> But in my column valores i have a node MachineName and i have a lot of
> "MachineName" informations..and i have only 4 lines in table.
> This select not shows up all MachineNames this shows up 4 lines with first
> value of the node S[@N = "MachineName"]..I want to see all machinesnames of
> the first table line , all machinesnames of the second table line...

Please post the XML you are trying to query.


--

Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/

 >> Stay informed about: XML Datatype Problem 
Back to top
Login to vote
LPJ

External


Since: Nov 06, 2008
Posts: 7



(Msg. 3) Posted: Fri Nov 07, 2008 7:25 am
Post subject: Re: XML Datatype Problem [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Thanks Amrtin..again...

the XML

<Objs xmlns="http://schemas.microsoft.com/powershell/2004/04" Version="1.1">
<Obj RefId="RefId-0">
<TN RefId="RefId-0">
<T>System.Diagnostics.EventLogEntry</T>
<T>System.ComponentModel.Component</T>
<T>System.MarshalByRefObject</T>
<T>System.Object</T>
</TN>
<Props>
<S N="MachineName">WINDOWS-6D9049D</S>
<BA
N="Data">4iYAABAAAAAeAAAAVwBJAE4ARABPAFcAUwAtADYARAA5ADAANAA5AEQAXABNAFMAUwBRAEwAUwBFAFIAVgBFAFIAXwAxAAAAAAAAAA==</BA>
<I32 N="Index">1847</I32>
<S N="Category">Server</S>
<I16 N="CategoryNumber">2</I16>
<I32 N="EventID">9954</I32>
<Obj N="EntryType" RefId="RefId-1">
<TN RefId="RefId-1">
<T>System.Diagnostics.EventLogEntryType</T>
<T>System.Enum</T>
<T>System.ValueType</T>
<T>System.Object</T>
</TN>
<ToString>Error</ToString>
<I32>1</I32>
</Obj>
<S N="Message">SQL Server failed to communicate with filter daemon
launch service (Windows error: O serviço não pode ser iniciado porque está
desativado ou não tem dispositivos ativados associados. ). Full-Text filter
daemon process failed to start. Full-text search functionality will not be
available.</S>
<S N="Source">MSSQL$MSSQLSERVER_1</S>
<Obj N="ReplacementStrings" RefId="RefId-2">
<TN RefId="RefId-2">
<T>System.String[]</T>
<T>System.Array</T>
<T>System.Object</T>
</TN>
<LST>
<S>O serviço não pode ser iniciado porque está desativado ou não
tem dispositivos ativados associados. </S>
</LST>
</Obj>
<I64 N="InstanceId">3221235426</I64>
<DT N="TimeGenerated">2008-10-28T21:37:39-02:00</DT>
<DT N="TimeWritten">2008-10-28T21:37:39-02:00</DT>
<Nil N="UserName" />
<Nil N="Site" />
<Nil N="Container" />
</Props>
</Obj>
<Obj RefId="RefId-0">
<TNRef RefId="RefId-0" />
<Props>
<S N="MachineName">WINDOWS-6D9049D</S>
<BA
N="Data">I0MAABAAAAAeAAAAVwBJAE4ARABPAFcAUwAtADYARAA5ADAANAA5AEQAXABNAFMAUwBRAEwAUwBFAFIAVgBFAFIAXwAxAAAAAAAAAA==</BA>
<I32 N="Index">2042</I32>
<S N="Category">Logon</S>
<I16 N="CategoryNumber">4</I16>
<I32 N="EventID">17187</I32>
<Obj N="EntryType" RefId="RefId-1">
<TNRef RefId="RefId-1" />
<ToString>Error</ToString>
<I32>1</I32>
</Obj>
<S N="Message">SQL Server is not ready to accept new client
connections. Wait a few minutes before trying again. If you have access to
the error log, look for the informational message that indicates that SQL
Server is ready before trying to connect again. [CLIENT: 201.76.81.26]</S>
<S N="Source">MSSQL$MSSQLSERVER_1</S>
<Obj N="ReplacementStrings" RefId="RefId-2">
<TNRef RefId="RefId-2" />
<LST>
<S> [CLIENT: 201.76.81.26]</S>
</LST>
</Obj>
<I64 N="InstanceId">3221242659</I64>
<DT N="TimeGenerated">2008-10-30T17:43:42-02:00</DT>
<DT N="TimeWritten">2008-10-30T17:43:42-02:00</DT>
<Nil N="UserName" />
<Nil N="Site" />
<Nil N="Container" />
</Props>
</Obj>
<Obj RefId="RefId-0">
<TNRef RefId="RefId-0" />
<Props>
<S N="MachineName">WINDOWS-6D9049D</S>
<BA
N="Data">I0MAABAAAAAeAAAAVwBJAE4ARABPAFcAUwAtADYARAA5ADAANAA5AEQAXABNAFMAUwBRAEwAUwBFAFIAVgBFAFIAXwAxAAAAAAAAAA==</BA>
<I32 N="Index">2043</I32>
<S N="Category">Logon</S>
<I16 N="CategoryNumber">4</I16>
<I32 N="EventID">17187</I32>
<Obj N="EntryType" RefId="RefId-1">
<TNRef RefId="RefId-1" />
<ToString>Error</ToString>
<I32>1</I32>
</Obj>
<S N="Message">SQL Server is not ready to accept new client
connections. Wait a few minutes before trying again. If you have access to
the error log, look for the informational message that indicates that SQL
Server is ready before trying to connect again. [CLIENT: 201.76.81.26]</S>
<S N="Source">MSSQL$MSSQLSERVER_1</S>
<Obj N="ReplacementStrings" RefId="RefId-2">
<TNRef RefId="RefId-2" />
<LST>
<S> [CLIENT: 201.76.81.26]</S>
</LST>
</Obj>
<I64 N="InstanceId">3221242659</I64>
<DT N="TimeGenerated">2008-10-30T17:43:42-02:00</DT>
<DT N="TimeWritten">2008-10-30T17:43:42-02:00</DT>
<Nil N="UserName" />
<Nil N="Site" />
<Nil N="Container" />
</Props>
</Obj>
<Obj RefId="RefId-0">
<TNRef RefId="RefId-0" />
<Props>
<S N="MachineName">WINDOWS-6D9049D</S>
<BA
N="Data">4iYAABAAAAAeAAAAVwBJAE4ARABPAFcAUwAtADYARAA5ADAANAA5AEQAXABNAFMAUwBRAEwAUwBFAFIAVgBFAFIAXwAxAAAAAAAAAA==</BA>
<I32 N="Index">2060</I32>
<S N="Category">Server</S>
<I16 N="CategoryNumber">2</I16>
<I32 N="EventID">9954</I32>
<Obj N="EntryType" RefId="RefId-1">
<TNRef RefId="RefId-1" />
<ToString>Error</ToString>
<I32>1</I32>
</Obj>
<S N="Message">SQL Server failed to communicate with filter daemon
launch service (Windows error: O serviço não pode ser iniciado porque está
desativado ou não tem dispositivos ativados associados. ). Full-Text filter
daemon process failed to start. Full-text search functionality will not be
available.</S>
<S N="Source">MSSQL$MSSQLSERVER_1</S>
<Obj N="ReplacementStrings" RefId="RefId-2">
<TNRef RefId="RefId-2" />
<LST>
<S>O serviço não pode ser iniciado porque está desativado ou não
tem dispositivos ativados associados. </S>
</LST>
</Obj>
<I64 N="InstanceId">3221235426</I64>
<DT N="TimeGenerated">2008-10-30T17:43:46-02:00</DT>
<DT N="TimeWritten">2008-10-30T17:43:46-02:00</DT>
<Nil N="UserName" />
<Nil N="Site" />
<Nil N="Container" />
</Props>
</Obj>
<Obj RefId="RefId-0">
<TNRef RefId="RefId-0" />
<Props>
<S N="MachineName">WINDOWS-6D9049D</S>
<BA N="Data" />
<I32 N="Index">2087</I32>
<S N="Category">Gerenciamento</S>
<I16 N="CategoryNumber">5</I16>
<I32 N="EventID">107</I32>
<Obj N="EntryType" RefId="RefId-1">
<TNRef RefId="RefId-1" />
<ToString>Error</ToString>
<I32>1</I32>
</Obj>
<S N="Message">Report Server Windows Service (MSSQLSERVER_1) não pode
se conectar ao banco de dados do servidor de relatório.</S>
<S N="Source">Report Server Windows Service (MSSQLSERVER_1)</S>
<Obj N="ReplacementStrings" RefId="RefId-2">
<TNRef RefId="RefId-2" />
<LST>
<S>Report Server Windows Service (MSSQLSERVER_1)</S>
</LST>
</Obj>
<I64 N="InstanceId">107</I64>
<DT N="TimeGenerated">2008-10-30T17:44:01-02:00</DT>
<DT N="TimeWritten">2008-10-30T17:44:01-02:00</DT>
<Nil N="UserName" />
<Nil N="Site" />
<Nil N="Container" />
</Props>
</Obj>
<Obj RefId="RefId-0">
<TNRef RefId="RefId-0" />
<Props>
<S N="MachineName">WINDOWS-6D9049D</S>
<BA
N="Data">4iYAABAAAAAeAAAAVwBJAE4ARABPAFcAUwAtADYARAA5ADAANAA5AEQAXABNAFMAUwBRAEwAUwBFAFIAVgBFAFIAXwAxAAAAAAAAAA==</BA>
<I32 N="Index">2241</I32>
<S N="Category">Server</S>
<I16 N="CategoryNumber">2</I16>
<I32 N="EventID">9954</I32>
<Obj N="EntryType" RefId="RefId-1">
<TNRef RefId="RefId-1" />
<ToString>Error</ToString>
<I32>1</I32>
</Obj>
<S N="Message">SQL Server failed to communicate with filter daemon
launch service (Windows error: O serviço não pode ser iniciado porque está
desativado ou não tem dispositivos ativados associados. ). Full-Text filter
daemon process failed to start. Full-text search functionality will not be
available.</S>
<S N="Source">MSSQL$MSSQLSERVER_1</S>
<Obj N="ReplacementStrings" RefId="RefId-2">
<TNRef RefId="RefId-2" />
<LST>
<S>O serviço não pode ser iniciado porque está desativado ou não
tem dispositivos ativados associados. </S>
</LST>
</Obj>
<I64 N="InstanceId">3221235426</I64>
<DT N="TimeGenerated">2008-11-01T21:30:23-02:00</DT>
<DT N="TimeWritten">2008-11-01T21:30:23-02:00</DT>
<Nil N="UserName" />
<Nil N="Site" />
<Nil N="Container" />
</Props>
</Obj>
<Obj RefId="RefId-0">
<TNRef RefId="RefId-0" />
<Props>
<S N="MachineName">WINDOWS-6D9049D</S>
<BA N="Data" />
<I32 N="Index">2261</I32>
<S N="Category">Gerenciamento</S>
<I16 N="CategoryNumber">5</I16>
<I32 N="EventID">107</I32>
<Obj N="EntryType" RefId="RefId-1">
<TNRef RefId="RefId-1" />
<ToString>Error</ToString>
<I32>1</I32>
</Obj>
<S N="Message">Report Server Windows Service (MSSQLSERVER_1) não pode
se conectar ao banco de dados do servidor de relatório.</S>
<S N="Source">Report Server Windows Service (MSSQLSERVER_1)</S>
<Obj N="ReplacementStrings" RefId="RefId-2">
<TNRef RefId="RefId-2" />
<LST>
<S>Report Server Windows Service (MSSQLSERVER_1)</S>
</LST>
</Obj>
<I64 N="InstanceId">107</I64>
<DT N="TimeGenerated">2008-11-01T21:30:30-02:00</DT>
<DT N="TimeWritten">2008-11-01T21:30:30-02:00</DT>
<Nil N="UserName" />
<Nil N="Site" />
<Nil N="Container" />
</Props>
</Obj>
<Obj RefId="RefId-0">
<TNRef RefId="RefId-0" />
<Props>
<S N="MachineName">WINDOWS-6D9049D</S>
<BA
N="Data">I0MAABAAAAAeAAAAVwBJAE4ARABPAFcAUwAtADYARAA5ADAANAA5AEQAXABNAFMAUwBRAEwAUwBFAFIAVgBFAFIAXwAxAAAAAAAAAA==</BA>
<I32 N="Index">2606</I32>
<S N="Category">Logon</S>
<I16 N="CategoryNumber">4</I16>
<I32 N="EventID">17187</I32>
<Obj N="EntryType" RefId="RefId-1">
<TNRef RefId="RefId-1" />
<ToString>Error</ToString>
<I32>1</I32>
</Obj>
<S N="Message">SQL Server is not ready to accept new client
connections. Wait a few minutes before trying again. If you have access to
the error log, look for the informational message that indicates that SQL
Server is ready before trying to connect again. [CLIENT: 200.211.152.48]</S>
<S N="Source">MSSQL$MSSQLSERVER_1</S>
<Obj N="ReplacementStrings" RefId="RefId-2">
<TNRef RefId="RefId-2" />
<LST>
<S> [CLIENT: 200.211.152.48]</S>
</LST>
</Obj>
<I64 N="InstanceId">3221242659</I64>
<DT N="TimeGenerated">2008-11-04T07:54:45-02:00</DT>
<DT N="TimeWritten">2008-11-04T07:54:45-02:00</DT>
<Nil N="UserName" />
<Nil N="Site" />
<Nil N="Container" />
</Props>
</Obj>
<Obj RefId="RefId-0">
<TNRef RefId="RefId-0" />
<Props>
<S N="MachineName">WINDOWS-6D9049D</S>
<BA
N="Data">I0MAABAAAAAeAAAAVwBJAE4ARABPAFcAUwAtADYARAA5ADAANAA5AEQAXABNAFMAUwBRAEwAUwBFAFIAVgBFAFIAXwAxAAAAAAAAAA==</BA>
<I32 N="Index">2607</I32>
<S N="Category">Logon</S>
<I16 N="CategoryNumber">4</I16>
<I32 N="EventID">17187</I32>
<Obj N="EntryType" RefId="RefId-1">
<TNRef RefId="RefId-1" />
<ToString>Error</ToString>
<I32>1</I32>
</Obj>
<S N="Message">SQL Server is not ready to accept new client
connections. Wait a few minutes before trying again. If you have access to
the error log, look for the informational message that indicates that SQL
Server is ready before trying to connect again. [CLIENT: 200.211.152.48]</S>
<S N="Source">MSSQL$MSSQLSERVER_1</S>
<Obj N="ReplacementStrings" RefId="RefId-2">
<TNRef RefId="RefId-2" />
<LST>
<S> [CLIENT: 200.211.152.48]</S>
</LST>
</Obj>
<I64 N="InstanceId">3221242659</I64>
<DT N="TimeGenerated">2008-11-04T07:54:45-02:00</DT>
<DT N="TimeWritten">2008-11-04T07:54:45-02:00</DT>
<Nil N="UserName" />
<Nil N="Site" />
<Nil N="Container" />
</Props>
</Obj>
<Obj RefId="RefId-0">
<TNRef RefId="RefId-0" />
<Props>
<S N="MachineName">WINDOWS-6D9049D</S>
<BA
N="Data">4iYAABAAAAAeAAAAVwBJAE4ARABPAFcAUwAtADYARAA5ADAANAA5AEQAXABNAFMAUwBRAEwAUwBFAFIAVgBFAFIAXwAxAAAAAAAAAA==</BA>
<I32 N="Index">2620</I32>
<S N="Category">Server</S>
<I16 N="CategoryNumber">2</I16>
<I32 N="EventID">9954</I32>
<Obj N="EntryType" RefId="RefId-1">
<TNRef RefId="RefId-1" />
<ToString>Error</ToString>
<I32>1</I32>
</Obj>
<S N="Message">SQL Server failed to communicate with filter daemon
launch service (Windows error: O serviço não pode ser iniciado porque está
desativado ou não tem dispositivos ativados associados. ). Full-Text filter
daemon process failed to start. Full-text search functionality will not be
available.</S>
<S N="Source">MSSQL$MSSQLSERVER_1</S>
<Obj N="ReplacementStrings" RefId="RefId-2">
<TNRef RefId="RefId-2" />
<LST>
<S>O serviço não pode ser iniciado porque está desativado ou não
tem dispositivos ativados associados. </S>
</LST>
</Obj>
<I64 N="InstanceId">3221235426</I64>
<DT N="TimeGenerated">2008-11-04T07:54:46-02:00</DT>
<DT N="TimeWritten">2008-11-04T07:54:46-02:00</DT>
<Nil N="UserName" />
<Nil N="Site" />
<Nil N="Container" />
</Props>
</Obj>
<Obj RefId="RefId-0">
<TNRef RefId="RefId-0" />
<Props>
<S N="MachineName">WINDOWS-6D9049D</S>
<BA N="Data" />
<I32 N="Index">2632</I32>
<S N="Category">Gerenciamento</S>
<I16 N="CategoryNumber">5</I16>
<I32 N="EventID">107</I32>
<Obj N="EntryType" RefId="RefId-1">
<TNRef RefId="RefId-1" />
<ToString>Error</ToString>
<I32>1</I32>
</Obj>
<S N="Message">Report Server Windows Service (MSSQLSERVER_1) não pode
se conectar ao banco de dados do servidor de relatório.</S>
<S N="Source">Report Server Windows Service (MSSQLSERVER_1)</S>
<Obj N="ReplacementStrings" RefId="RefId-2">
<TNRef RefId="RefId-2" />
<LST>
<S>Report Server Windows Service (MSSQLSERVER_1)</S>
</LST>
</Obj>
<I64 N="InstanceId">107</I64>
<DT N="TimeGenerated">2008-11-04T07:54:47-02:00</DT>
<DT N="TimeWritten">2008-11-04T07:54:47-02:00</DT>
<Nil N="UserName" />
<Nil N="Site" />
<Nil N="Container" />
</Props>
</Obj>
<Obj RefId="RefId-0">
<TNRef RefId="RefId-0" />
<Props>
<S N="MachineName">WINDOWS-6D9049D</S>
<BA
N="Data">I0MAABAAAAAeAAAAVwBJAE4ARABPAFcAUwAtADYARAA5ADAANAA5AEQAXABNAFMAUwBRAEwAUwBFAFIAVgBFAFIAXwAxAAAAAAAAAA==</BA>
<I32 N="Index">2786</I32>
<S N="Category">Logon</S>
<I16 N="CategoryNumber">4</I16>
<I32 N="EventID">17187</I32>
<Obj N="EntryType" RefId="RefId-1">
<TNRef RefId="RefId-1" />
<ToString>Error</ToString>
<I32>1</I32>
</Obj>
<S N="Message">SQL Server is not ready to accept new client
connections. Wait a few minutes before trying again. If you have access to
the error log, look for the informational message that indicates that SQL
Server is ready before trying to connect again. [CLIENT: <local machine>]</S>
<S N="Source">MSSQL$MSSQLSERVER_1</S>
<Obj N="ReplacementStrings" RefId="RefId-2">
<TNRef RefId="RefId-2" />
<LST>
<S> [CLIENT: <local machine>]</S>
</LST>
</Obj>
<I64 N="InstanceId">3221242659</I64>
<DT N="TimeGenerated">2008-11-04T08:34:47-02:00</DT>
<DT N="TimeWritten">2008-11-04T08:34:47-02:00</DT>
<Nil N="UserName" />
<Nil N="Site" />
<Nil N="Container" />
</Props>
</Obj>
<Obj RefId="RefId-0">
<TNRef RefId="RefId-0" />
<Props>
<S N="MachineName">WINDOWS-6D9049D</S>
<BA
N="Data">4iYAABAAAAAeAAAAVwBJAE4ARABPAFcAUwAtADYARAA5ADAANAA5AEQAXABNAFMAUwBRAEwAUwBFAFIAVgBFAFIAXwAxAAAAAAAAAA==</BA>
<I32 N="Index">2797</I32>
<S N="Category">Server</S>
<I16 N="CategoryNumber">2</I16>
<I32 N="EventID">9954</I32>
<Obj N="EntryType" RefId="RefId-1">
<TNRef RefId="RefId-1" />
<ToString>Error</ToString>
<I32>1</I32>
</Obj>
<S N="Message">SQL Server failed to communicate with filter daemon
launch service (Windows error: O serviço não pode ser iniciado porque está
desativado ou não tem dispositivos ativados associados. ). Full-Text filter
daemon process failed to start. Full-text search functionality will not be
available.</S>
<S N="Source">MSSQL$MSSQLSERVER_1</S>
<Obj N="ReplacementStrings" RefId="RefId-2">
<TNRef RefId="RefId-2" />
<LST>
<S>O serviço não pode ser iniciado porque está desativado ou não
tem dispositivos ativados associados. </S>
</LST>
</Obj>
<I64 N="InstanceId">3221235426</I64>
<DT N="TimeGenerated">2008-11-04T08:34:50-02:00</DT>
<DT N="TimeWritten">2008-11-04T08:34:50-02:00</DT>
<Nil N="UserName" />
<Nil N="Site" />
<Nil N="Container" />
</Props>
</Obj>
<Obj RefId="RefId-0">
<TNRef RefId="RefId-0" />
<Props>
<S N="MachineName">WINDOWS-6D9049D</S>
<BA N="Data" />
<I32 N="Index">2807</I32>
<S N="Category">Gerenciamento</S>
<I16 N="CategoryNumber">5</I16>
<I32 N="EventID">107</I32>
<Obj N="EntryType" RefId="RefId-1">
<TNRef RefId="RefId-1" />
<ToString>Error</ToString>
<I32>1</I32>
</Obj>
<S N="Message">Report Server Windows Service (MSSQLSERVER_1) não pode
se conectar ao banco de dados do servidor de relatório.</S>
<S N="Source">Report Server Windows Service (MSSQLSERVER_1)</S>
<Obj N="ReplacementStrings" RefId="RefId-2">
<TNRef RefId="RefId-2" />
<LST>
<S>Report Server Windows Service (MSSQLSERVER_1)</S>
</LST>
</Obj>
<I64 N="InstanceId">107</I64>
<DT N="TimeGenerated">2008-11-04T08:34:50-02:00</DT>
<DT N="TimeWritten">2008-11-04T08:34:50-02:00</DT>
<Nil N="UserName" />
<Nil N="Site" />
<Nil N="Container" />
</Props>
</Obj>
<Obj RefId="RefId-0">
<TNRef RefId="RefId-0" />
<Props>
<S N="MachineName">WINDOWS-6D9049D</S>
<BA
N="Data">I0MAABAAAAAeAAAAVwBJAE4ARABPAFcAUwAtADYARAA5ADAANAA5AEQAXABNAFMAUwBRAEwAUwBFAFIAVgBFAFIAXwAxAAAAAAAAAA==</BA>
<I32 N="Index">3185</I32>
<S N="Category">Logon</S>
<I16 N="CategoryNumber">4</I16>
<I32 N="EventID">17187</I32>
<Obj N="EntryType" RefId="RefId-1">
<TNRef RefId="RefId-1" />
<ToString>Error</ToString>
<I32>1</I32>
</Obj>
<S N="Message">SQL Server is not ready to accept new client
connections. Wait a few minutes before trying again. If you have access to
the error log, look for the informational message that indicates that SQL
Server is ready before trying to connect again. [CLIENT: <local machine>]</S>
<S N="Source">MSSQL$MSSQLSERVER_1</S>
<Obj N="ReplacementStrings" RefId="RefId-2">
<TNRef RefId="RefId-2" />
<LST>
<S> [CLIENT: <local machine>]</S>
</LST>
</Obj>
<I64 N="InstanceId">3221242659</I64>
<DT N="TimeGenerated">2008-11-06T13:33:42-02:00</DT>
<DT N="TimeWritten">2008-11-06T13:33:42-02:00</DT>
<Nil N="UserName" />
<Nil N="Site" />
<Nil N="Container" />
</Props>
</Obj>
<Obj RefId="RefId-0">
<TNRef RefId="RefId-0" />
<Props>
<S N="MachineName">WINDOWS-6D9049D</S>
<BA
N="Data">4iYAABAAAAAeAAAAVwBJAE4ARABPAFcAUwAtADYARAA5ADAANAA5AEQAXABNAFMAUwBRAEwAUwBFAFIAVgBFAFIAXwAxAAAAAAAAAA==</BA>
<I32 N="Index">3196</I32>
<S N="Category">Server</S>
<I16 N="CategoryNumber">2</I16>
<I32 N="EventID">9954</I32>
<Obj N="EntryType" RefId="RefId-1">
<TNRef RefId="RefId-1" />
<ToString>Error</ToString>
<I32>1</I32>
</Obj>
<S N="Message">SQL Server failed to communicate with filter daemon
launch service (Windows error: O serviço não pode ser iniciado porque está
desativado ou não tem dispositivos ativados associados. ). Full-Text filter
daemon process failed to start. Full-text search functionality will not be
available.</S>
<S N="Source">MSSQL$MSSQLSERVER_1</S>
<Obj N="ReplacementStrings" RefId="RefId-2">
<TNRef RefId="RefId-2" />
<LST>
<S>O serviço não pode ser iniciado porque está desativado ou não
tem dispositivos ativados associados. </S>
</LST>
</Obj>
<I64 N="InstanceId">3221235426</I64>
<DT N="TimeGenerated">2008-11-06T13:33:42-02:00</DT>
<DT N="TimeWritten">2008-11-06T13:33:42-02:00</DT>
<Nil N="UserName" />
<Nil N="Site" />
<Nil N="Container" />
</Props>
</Obj>
<Obj RefId="RefId-0">
<TNRef RefId="RefId-0" />
<Props>
<S N="MachineName">WINDOWS-6D9049D</S>
<BA N="Data" />
<I32 N="Index">3208</I32>
<S N="Category">Gerenciamento</S>
<I16 N="CategoryNumber">5</I16>
<I32 N="EventID">107</I32>
<Obj N="EntryType" RefId="RefId-1">
<TNRef RefId="RefId-1" />
<ToString>Error</ToString>
<I32>1</I32>
</Obj>
<S N="Message">Report Server Windows Service (MSSQLSERVER_1) não pode
se conectar ao banco de dados do servidor de relatório.</S>
<S N="Source">Report Server Windows Service (MSSQLSERVER_1)</S>
<Obj N="ReplacementStrings" RefId="RefId-2">
<TNRef RefId="RefId-2" />
<LST>
<S>Report Server Windows Service (MSSQLSERVER_1)</S>
</LST>
</Obj>
<I64 N="InstanceId">107</I64>
<DT N="TimeGenerated">2008-11-06T13:33:43-02:00</DT>
<DT N="TimeWritten">2008-11-06T13:33:43-02:00</DT>
<Nil N="UserName" />
<Nil N="Site" />
<Nil N="Container" />
</Props>
</Obj>
</Objs>

This is a column in my sqls server table, call "valores".. I have 4 lines in
this table...but you can see i have a lot information inside de XML..i want
to return this informations...to every line, i have much information in
XML..how can i do this ?
 >> Stay informed about: XML Datatype Problem 
Back to top
Login to vote
Martin Honnen

External


Since: Apr 20, 2007
Posts: 48



(Msg. 4) Posted: Fri Nov 07, 2008 8:26 am
Post subject: Re: XML Datatype Problem [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

LPJ wrote:

> <S N="Message">SQL Server is not ready to accept new client
> connections. Wait a few minutes before trying again. If you have access to
> the error log, look for the informational message that indicates that SQL
> Server is ready before trying to connect again. [CLIENT: <local machine>]</S>
^^^^^^^^^^^^
That is not well-formed XML.

> <S N="Source">MSSQL$MSSQLSERVER_1</S>
> <Obj N="ReplacementStrings" RefId="RefId-2">
> <TNRef RefId="RefId-2" />
> <LST>
> <S> [CLIENT: <local machine>]</S>
^^^^^^^^^^^^^^^
Nor is that.



> This is a column in my sqls server table, call "valores".. I have 4 lines in
> this table...but you can see i have a lot information inside de XML..i want
> to return this informations...to every line, i have much information in
> XML..how can i do this ?

You can use the nodes function on the XML column. Here is an example:

CREATE TABLE t5 (
valores XML
);
GO
INSERT INTO t5 (valores) VALUES(N'<Objs
xmlns="http://schemas.microsoft.com/powershell/2004/04" Version="1.1">
<Obj RefId="RefId-0">
<TN RefId="RefId-0">
<T>System.Diagnostics.EventLogEntry</T>
<T>System.ComponentModel.Component</T>
<T>System.MarshalByRefObject</T>
<T>System.Object</T>
</TN>
<Props>
<S N="MachineName">WINDOWS-6D9049D</S>
<BA
N="Data">4iYAABAAAAAeAAAAVwBJAE4ARABPAFcAUwAtADYARAA5ADAANAA5AEQAXABNAFMAUwBRAEwAUwBFAFIAVgBFAFIAXwAxAAAAAAAAAA==</BA>
<I32 N="Index">1847</I32>
<S N="Category">Server</S>
<I16 N="CategoryNumber">2</I16>
<I32 N="EventID">9954</I32>
<Obj N="EntryType" RefId="RefId-1">
<TN RefId="RefId-1">
<T>System.Diagnostics.EventLogEntryType</T>
<T>System.Enum</T>
<T>System.ValueType</T>
<T>System.Object</T>
</TN>
<ToString>Error</ToString>
<I32>1</I32>
</Obj>
<S N="Message">SQL Server failed to communicate with filter daemon
launch service (Windows error: O serviço não pode ser iniciado porque está
desativado ou não tem dispositivos ativados associados. ). Full-Text filter
daemon process failed to start. Full-text search functionality will not be
available.</S>
<S N="Source">MSSQL$MSSQLSERVER_1</S>
<Obj N="ReplacementStrings" RefId="RefId-2">
<TN RefId="RefId-2">
<T>System.String[]</T>
<T>System.Array</T>
<T>System.Object</T>
</TN>
<LST>
<S>O serviço não pode ser iniciado porque está desativado ou não
tem dispositivos ativados associados. </S>
</LST>
</Obj>
<I64 N="InstanceId">3221235426</I64>
<DT N="TimeGenerated">2008-10-28T21:37:39-02:00</DT>
<DT N="TimeWritten">2008-10-28T21:37:39-02:00</DT>
<Nil N="UserName" />
<Nil N="Site" />
<Nil N="Container" />
</Props>
</Obj>
<Obj RefId="RefId-0">
<TNRef RefId="RefId-0" />
<Props>
<S N="MachineName">WINDOWS-6D9049D</S>
<BA
N="Data">I0MAABAAAAAeAAAAVwBJAE4ARABPAFcAUwAtADYARAA5ADAANAA5AEQAXABNAFMAUwBRAEwAUwBFAFIAVgBFAFIAXwAxAAAAAAAAAA==</BA>
<I32 N="Index">2042</I32>
<S N="Category">Logon</S>
<I16 N="CategoryNumber">4</I16>
<I32 N="EventID">17187</I32>
<Obj N="EntryType" RefId="RefId-1">
<TNRef RefId="RefId-1" />
<ToString>Error</ToString>
<I32>1</I32>
</Obj>
<S N="Message">SQL Server is not ready to accept new client
connections. Wait a few minutes before trying again. If you have access to
the error log, look for the informational message that indicates that SQL
Server is ready before trying to connect again. [CLIENT: 201.76.81.26]</S>
<S N="Source">MSSQL$MSSQLSERVER_1</S>
<Obj N="ReplacementStrings" RefId="RefId-2">
<TNRef RefId="RefId-2" />
<LST>
<S> [CLIENT: 201.76.81.26]</S>
</LST>
</Obj>
<I64 N="InstanceId">3221242659</I64>
<DT N="TimeGenerated">2008-10-30T17:43:42-02:00</DT>
<DT N="TimeWritten">2008-10-30T17:43:42-02:00</DT>
<Nil N="UserName" />
<Nil N="Site" />
<Nil N="Container" />
</Props>
</Obj>
<Obj RefId="RefId-0">
<TNRef RefId="RefId-0" />
<Props>
<S N="MachineName">WINDOWS-6D9049D</S>
<BA
N="Data">I0MAABAAAAAeAAAAVwBJAE4ARABPAFcAUwAtADYARAA5ADAANAA5AEQAXABNAFMAUwBRAEwAUwBFAFIAVgBFAFIAXwAxAAAAAAAAAA==</BA>
<I32 N="Index">2043</I32>
<S N="Category">Logon</S>
<I16 N="CategoryNumber">4</I16>
<I32 N="EventID">17187</I32>
<Obj N="EntryType" RefId="RefId-1">
<TNRef RefId="RefId-1" />
<ToString>Error</ToString>
<I32>1</I32>
</Obj>
<S N="Message">SQL Server is not ready to accept new client
connections. Wait a few minutes before trying again. If you have access to
the error log, look for the informational message that indicates that SQL
Server is ready before trying to connect again. [CLIENT: 201.76.81.26]</S>
<S N="Source">MSSQL$MSSQLSERVER_1</S>
<Obj N="ReplacementStrings" RefId="RefId-2">
<TNRef RefId="RefId-2" />
<LST>
<S> [CLIENT: 201.76.81.26]</S>
</LST>
</Obj>
<I64 N="InstanceId">3221242659</I64>
<DT N="TimeGenerated">2008-10-30T17:43:42-02:00</DT>
<DT N="TimeWritten">2008-10-30T17:43:42-02:00</DT>
<Nil N="UserName" />
<Nil N="Site" />
<Nil N="Container" />
</Props>
</Obj>
<Obj RefId="RefId-0">
<TNRef RefId="RefId-0" />
<Props>
<S N="MachineName">WINDOWS-6D9049D</S>
<BA
N="Data">4iYAABAAAAAeAAAAVwBJAE4ARABPAFcAUwAtADYARAA5ADAANAA5AEQAXABNAFMAUwBRAEwAUwBFAFIAVgBFAFIAXwAxAAAAAAAAAA==</BA>
<I32 N="Index">2060</I32>
<S N="Category">Server</S>
<I16 N="CategoryNumber">2</I16>
<I32 N="EventID">9954</I32>
<Obj N="EntryType" RefId="RefId-1">
<TNRef RefId="RefId-1" />
<ToString>Error</ToString>
<I32>1</I32>
</Obj>
<S N="Message">SQL Server failed to communicate with filter daemon
launch service (Windows error: O serviço não pode ser iniciado porque está
desativado ou não tem dispositivos ativados associados. ). Full-Text filter
daemon process failed to start. Full-text search functionality will not be
available.</S>
<S N="Source">MSSQL$MSSQLSERVER_1</S>
<Obj N="ReplacementStrings" RefId="RefId-2">
<TNRef RefId="RefId-2" />
<LST>
<S>O serviço não pode ser iniciado porque está desativado ou não
tem dispositivos ativados associados. </S>
</LST>
</Obj>
<I64 N="InstanceId">3221235426</I64>
<DT N="TimeGenerated">2008-10-30T17:43:46-02:00</DT>
<DT N="TimeWritten">2008-10-30T17:43:46-02:00</DT>
<Nil N="UserName" />
<Nil N="Site" />
<Nil N="Container" />
</Props>
</Obj>
<Obj RefId="RefId-0">
<TNRef RefId="RefId-0" />
<Props>
<S N="MachineName">WINDOWS-6D9049D</S>
<BA N="Data" />
<I32 N="Index">2087</I32>
<S N="Category">Gerenciamento</S>
<I16 N="CategoryNumber">5</I16>
<I32 N="EventID">107</I32>
<Obj N="EntryType" RefId="RefId-1">
<TNRef RefId="RefId-1" />
<ToString>Error</ToString>
<I32>1</I32>
</Obj>
<S N="Message">Report Server Windows Service (MSSQLSERVER_1) não
pode
se conectar ao banco de dados do servidor de relatório.</S>
<S N="Source">Report Server Windows Service (MSSQLSERVER_1)</S>
<Obj N="ReplacementStrings" RefId="RefId-2">
<TNRef RefId="RefId-2" />
<LST>
<S>Report Server Windows Service (MSSQLSERVER_1)</S>
</LST>
</Obj>
<I64 N="InstanceId">107</I64>
<DT N="TimeGenerated">2008-10-30T17:44:01-02:00</DT>
<DT N="TimeWritten">2008-10-30T17:44:01-02:00</DT>
<Nil N="UserName" />
<Nil N="Site" />
<Nil N="Container" />
</Props>
</Obj>
<Obj RefId="RefId-0">
<TNRef RefId="RefId-0" />
<Props>
<S N="MachineName">WINDOWS-6D9049D</S>
<BA
N="Data">4iYAABAAAAAeAAAAVwBJAE4ARABPAFcAUwAtADYARAA5ADAANAA5AEQAXABNAFMAUwBRAEwAUwBFAFIAVgBFAFIAXwAxAAAAAAAAAA==</BA>
<I32 N="Index">2241</I32>
<S N="Category">Server</S>
<I16 N="CategoryNumber">2</I16>
<I32 N="EventID">9954</I32>
<Obj N="EntryType" RefId="RefId-1">
<TNRef RefId="RefId-1" />
<ToString>Error</ToString>
<I32>1</I32>
</Obj>
<S N="Message">SQL Server failed to communicate with filter daemon
launch service (Windows error: O serviço não pode ser iniciado porque está
desativado ou não tem dispositivos ativados associados. ). Full-Text filter
daemon process failed to start. Full-text search functionality will not be
available.</S>
<S N="Source">MSSQL$MSSQLSERVER_1</S>
<Obj N="ReplacementStrings" RefId="RefId-2">
<TNRef RefId="RefId-2" />
<LST>
<S>O serviço não pode ser iniciado porque está desativado ou não
tem dispositivos ativados associados. </S>
</LST>
</Obj>
<I64 N="InstanceId">3221235426</I64>
<DT N="TimeGenerated">2008-11-01T21:30:23-02:00</DT>
<DT N="TimeWritten">2008-11-01T21:30:23-02:00</DT>
<Nil N="UserName" />
<Nil N="Site" />
<Nil N="Container" />
</Props>
</Obj>
<Obj RefId="RefId-0">
<TNRef RefId="RefId-0" />
<Props>
<S N="MachineName">WINDOWS-6D9049D</S>
<BA N="Data" />
<I32 N="Index">2261</I32>
<S N="Category">Gerenciamento</S>
<I16 N="CategoryNumber">5</I16>
<I32 N="EventID">107</I32>
<Obj N="EntryType" RefId="RefId-1">
<TNRef RefId="RefId-1" />
<ToString>Error</ToString>
<I32>1</I32>
</Obj>
<S N="Message">Report Server Windows Service (MSSQLSERVER_1) não
pode
se conectar ao banco de dados do servidor de relatório.</S>
<S N="Source">Report Server Windows Service (MSSQLSERVER_1)</S>
<Obj N="ReplacementStrings" RefId="RefId-2">
<TNRef RefId="RefId-2" />
<LST>
<S>Report Server Windows Service (MSSQLSERVER_1)</S>
</LST>
</Obj>
<I64 N="InstanceId">107</I64>
<DT N="TimeGenerated">2008-11-01T21:30:30-02:00</DT>
<DT N="TimeWritten">2008-11-01T21:30:30-02:00</DT>
<Nil N="UserName" />
<Nil N="Site" />
<Nil N="Container" />
</Props>
</Obj>
<Obj RefId="RefId-0">
<TNRef RefId="RefId-0" />
<Props>
<S N="MachineName">WINDOWS-6D9049D</S>
<BA
N="Data">I0MAABAAAAAeAAAAVwBJAE4ARABPAFcAUwAtADYARAA5ADAANAA5AEQAXABNAFMAUwBRAEwAUwBFAFIAVgBFAFIAXwAxAAAAAAAAAA==</BA>
<I32 N="Index">2606</I32>
<S N="Category">Logon</S>
<I16 N="CategoryNumber">4</I16>
<I32 N="EventID">17187</I32>
<Obj N="EntryType" RefId="RefId-1">
<TNRef RefId="RefId-1" />
<ToString>Error</ToString>
<I32>1</I32>
</Obj>
<S N="Message">SQL Server is not ready to accept new client
connections. Wait a few minutes before trying again. If you have access to
the error log, look for the informational message that indicates that SQL
Server is ready before trying to connect again. [CLIENT:
200.211.152.48]</S>
<S N="Source">MSSQL$MSSQLSERVER_1</S>
<Obj N="ReplacementStrings" RefId="RefId-2">
<TNRef RefId="RefId-2" />
<LST>
<S> [CLIENT: 200.211.152.48]</S>
</LST>
</Obj>
<I64 N="InstanceId">3221242659</I64>
<DT N="TimeGenerated">2008-11-04T07:54:45-02:00</DT>
<DT N="TimeWritten">2008-11-04T07:54:45-02:00</DT>
<Nil N="UserName" />
<Nil N="Site" />
<Nil N="Container" />
</Props>
</Obj>
<Obj RefId="RefId-0">
<TNRef RefId="RefId-0" />
<Props>
<S N="MachineName">WINDOWS-6D9049D</S>
<BA
N="Data">I0MAABAAAAAeAAAAVwBJAE4ARABPAFcAUwAtADYARAA5ADAANAA5AEQAXABNAFMAUwBRAEwAUwBFAFIAVgBFAFIAXwAxAAAAAAAAAA==</BA>
<I32 N="Index">2607</I32>
<S N="Category">Logon</S>
<I16 N="CategoryNumber">4</I16>
<I32 N="EventID">17187</I32>
<Obj N="EntryType" RefId="RefId-1">
<TNRef RefId="RefId-1" />
<ToString>Error</ToString>
<I32>1</I32>
</Obj>
<S N="Message">SQL Server is not ready to accept new client
connections. Wait a few minutes before trying again. If you have access to
the error log, look for the informational message that indicates that SQL
Server is ready before trying to connect again. [CLIENT:
200.211.152.48]</S>
<S N="Source">MSSQL$MSSQLSERVER_1</S>
<Obj N="ReplacementStrings" RefId="RefId-2">
<TNRef RefId="RefId-2" />
<LST>
<S> [CLIENT: 200.211.152.48]</S>
</LST>
</Obj>
<I64 N="InstanceId">3221242659</I64>
<DT N="TimeGenerated">2008-11-04T07:54:45-02:00</DT>
<DT N="TimeWritten">2008-11-04T07:54:45-02:00</DT>
<Nil N="UserName" />
<Nil N="Site" />
<Nil N="Container" />
</Props>
</Obj>
<Obj RefId="RefId-0">
<TNRef RefId="RefId-0" />
<Props>
<S N="MachineName">WINDOWS-6D9049D</S>
<BA
N="Data">4iYAABAAAAAeAAAAVwBJAE4ARABPAFcAUwAtADYARAA5ADAANAA5AEQAXABNAFMAUwBRAEwAUwBFAFIAVgBFAFIAXwAxAAAAAAAAAA==</BA>
<I32 N="Index">2620</I32>
<S N="Category">Server</S>
<I16 N="CategoryNumber">2</I16>
<I32 N="EventID">9954</I32>
<Obj N="EntryType" RefId="RefId-1">
<TNRef RefId="RefId-1" />
<ToString>Error</ToString>
<I32>1</I32>
</Obj>
<S N="Message">SQL Server failed to communicate with filter daemon
launch service (Windows error: O serviço não pode ser iniciado porque está
desativado ou não tem dispositivos ativados associados. ). Full-Text filter
daemon process failed to start. Full-text search functionality will not be
available.</S>
<S N="Source">MSSQL$MSSQLSERVER_1</S>
<Obj N="ReplacementStrings" RefId="RefId-2">
<TNRef RefId="RefId-2" />
<LST>
<S>O serviço não pode ser iniciado porque está desativado ou não
tem dispositivos ativados associados. </S>
</LST>
</Obj>
<I64 N="InstanceId">3221235426</I64>
<DT N="TimeGenerated">2008-11-04T07:54:46-02:00</DT>
<DT N="TimeWritten">2008-11-04T07:54:46-02:00</DT>
<Nil N="UserName" />
<Nil N="Site" />
<Nil N="Container" />
</Props>
</Obj>
<Obj RefId="RefId-0">
<TNRef RefId="RefId-0" />
<Props>
<S N="MachineName">WINDOWS-6D9049D</S>
<BA N="Data" />
<I32 N="Index">2632</I32>
<S N="Category">Gerenciamento</S>
<I16 N="CategoryNumber">5</I16>
<I32 N="EventID">107</I32>
<Obj N="EntryType" RefId="RefId-1">
<TNRef RefId="RefId-1" />
<ToString>Error</ToString>
<I32>1</I32>
</Obj>
<S N="Message">Report Server Windows Service (MSSQLSERVER_1) não
pode
se conectar ao banco de dados do servidor de relatório.</S>
<S N="Source">Report Server Windows Service (MSSQLSERVER_1)</S>
<Obj N="ReplacementStrings" RefId="RefId-2">
<TNRef RefId="RefId-2" />
<LST>
<S>Report Server Windows Service (MSSQLSERVER_1)</S>
</LST>
</Obj>
<I64 N="InstanceId">107</I64>
<DT N="TimeGenerated">2008-11-04T07:54:47-02:00</DT>
<DT N="TimeWritten">2008-11-04T07:54:47-02:00</DT>
<Nil N="UserName" />
<Nil N="Site" />
<Nil N="Container" />
</Props>
</Obj>
<Obj RefId="RefId-0">
<TNRef RefId="RefId-0" />
<Props>
<S N="MachineName">WINDOWS-6D9049D</S>
<BA
N="Data">I0MAABAAAAAeAAAAVwBJAE4ARABPAFcAUwAtADYARAA5ADAANAA5AEQAXABNAFMAUwBRAEwAUwBFAFIAVgBFAFIAXwAxAAAAAAAAAA==</BA>
<I32 N="Index">2786</I32>
<S N="Category">Logon</S>
<I16 N="CategoryNumber">4</I16>
<I32 N="EventID">17187</I32>
<Obj N="EntryType" RefId="RefId-1">
<TNRef RefId="RefId-1" />
<ToString>Error</ToString>
<I32>1</I32>
</Obj>
<S N="Message">SQL Server is not ready to accept new client
connections. Wait a few minutes before trying again. If you have access to
the error log, look for the informational message that indicates that SQL
Server is ready before trying to connect again. </S>
<S N="Source">MSSQL$MSSQLSERVER_1</S>
<Obj N="ReplacementStrings" RefId="RefId-2">
<TNRef RefId="RefId-2" />
<LST>
<S> </S>
</LST>
</Obj>
<I64 N="InstanceId">3221242659</I64>
<DT N="TimeGenerated">2008-11-04T08:34:47-02:00</DT>
<DT N="TimeWritten">2008-11-04T08:34:47-02:00</DT>
<Nil N="UserName" />
<Nil N="Site" />
<Nil N="Container" />
</Props>
</Obj>
<Obj RefId="RefId-0">
<TNRef RefId="RefId-0" />
<Props>
<S N="MachineName">WINDOWS-6D9049D</S>
<BA
N="Data">4iYAABAAAAAeAAAAVwBJAE4ARABPAFcAUwAtADYARAA5ADAANAA5AEQAXABNAFMAUwBRAEwAUwBFAFIAVgBFAFIAXwAxAAAAAAAAAA==</BA>
<I32 N="Index">2797</I32>
<S N="Category">Server</S>
<I16 N="CategoryNumber">2</I16>
<I32 N="EventID">9954</I32>
<Obj N="EntryType" RefId="RefId-1">
<TNRef RefId="RefId-1" />
<ToString>Error</ToString>
<I32>1</I32>
</Obj>
<S N="Message">SQL Server failed to communicate with filter daemon
launch service (Windows error: O serviço não pode ser iniciado porque está
desativado ou não tem dispositivos ativados associados. ). Full-Text filter
daemon process failed to start. Full-text search functionality will not be
available.</S>
<S N="Source">MSSQL$MSSQLSERVER_1</S>
<Obj N="ReplacementStrings" RefId="RefId-2">
<TNRef RefId="RefId-2" />
<LST>
<S>O serviço não pode ser iniciado porque está desativado ou não
tem dispositivos ativados associados. </S>
</LST>
</Obj>
<I64 N="InstanceId">3221235426</I64>
<DT N="TimeGenerated">2008-11-04T08:34:50-02:00</DT>
<DT N="TimeWritten">2008-11-04T08:34:50-02:00</DT>
<Nil N="UserName" />
<Nil N="Site" />
<Nil N="Container" />
</Props>
</Obj>
<Obj RefId="RefId-0">
<TNRef RefId="RefId-0" />
<Props>
<S N="MachineName">WINDOWS-6D9049D</S>
<BA N="Data" />
<I32 N="Index">2807</I32>
<S N="Category">Gerenciamento</S>
<I16 N="CategoryNumber">5</I16>
<I32 N="EventID">107</I32>
<Obj N="EntryType" RefId="RefId-1">
<TNRef RefId="RefId-1" />
<ToString>Error</ToString>
<I32>1</I32>
</Obj>
<S N="Message">Report Server Windows Service (MSSQLSERVER_1) não
pode
se conectar ao banco de dados do servidor de relatório.</S>
<S N="Source">Report Server Windows Service (MSSQLSERVER_1)</S>
<Obj N="ReplacementStrings" RefId="RefId-2">
<TNRef RefId="RefId-2" />
<LST>
<S>Report Server Windows Service (MSSQLSERVER_1)</S>
</LST>
</Obj>
<I64 N="InstanceId">107</I64>
<DT N="TimeGenerated">2008-11-04T08:34:50-02:00</DT>
<DT N="TimeWritten">2008-11-04T08:34:50-02:00</DT>
<Nil N="UserName" />
<Nil N="Site" />
<Nil N="Container" />
</Props>
</Obj>
<Obj RefId="RefId-0">
<TNRef RefId="RefId-0" />
<Props>
<S N="MachineName">WINDOWS-6D9049D</S>
<BA
N="Data">I0MAABAAAAAeAAAAVwBJAE4ARABPAFcAUwAtADYARAA5ADAANAA5AEQAXABNAFMAUwBRAEwAUwBFAFIAVgBFAFIAXwAxAAAAAAAAAA==</BA>
<I32 N="Index">3185</I32>
<S N="Category">Logon</S>
<I16 N="CategoryNumber">4</I16>
<I32 N="EventID">17187</I32>
<Obj N="EntryType" RefId="RefId-1">
<TNRef RefId="RefId-1" />
<ToString>Error</ToString>
<I32>1</I32>
</Obj>
<S N="Message">SQL Server is not ready to accept new client
connections. Wait a few minutes before trying again. If you have access to
the error log, look for the informational message that indicates that SQL
Server is ready before trying to connect again. </S>
<S N="Source">MSSQL$MSSQLSERVER_1</S>
<Obj N="ReplacementStrings" RefId="RefId-2">
<TNRef RefId="RefId-2" />
<LST>
<S> [CLIENT: ]</S>
</LST>
</Obj>
<I64 N="InstanceId">3221242659</I64>
<DT N="TimeGenerated">2008-11-06T13:33:42-02:00</DT>
<DT N="TimeWritten">2008-11-06T13:33:42-02:00</DT>
<Nil N="UserName" />
<Nil N="Site" />
<Nil N="Container" />
</Props>
</Obj>
<Obj RefId="RefId-0">
<TNRef RefId="RefId-0" />
<Props>
<S N="MachineName">WINDOWS-6D9049D</S>
<BA
N="Data">4iYAABAAAAAeAAAAVwBJAE4ARABPAFcAUwAtADYARAA5ADAANAA5AEQAXABNAFMAUwBRAEwAUwBFAFIAVgBFAFIAXwAxAAAAAAAAAA==</BA>
<I32 N="Index">3196</I32>
<S N="Category">Server</S>
<I16 N="CategoryNumber">2</I16>
<I32 N="EventID">9954</I32>
<Obj N="EntryType" RefId="RefId-1">
<TNRef RefId="RefId-1" />
<ToString>Error</ToString>
<I32>1</I32>
</Obj>
<S N="Message">SQL Server failed to communicate with filter daemon
launch service (Windows error: O serviço não pode ser iniciado porque está
desativado ou não tem dispositivos ativados associados. ). Full-Text filter
daemon process failed to start. Full-text search functionality will not be
available.</S>
<S N="Source">MSSQL$MSSQLSERVER_1</S>
<Obj N="ReplacementStrings" RefId="RefId-2">
<TNRef RefId="RefId-2" />
<LST>
<S>O serviço não pode ser iniciado porque está desativado ou não
tem dispositivos ativados associados. </S>
</LST>
</Obj>
<I64 N="InstanceId">3221235426</I64>
<DT N="TimeGenerated">2008-11-06T13:33:42-02:00</DT>
<DT N="TimeWritten">2008-11-06T13:33:42-02:00</DT>
<Nil N="UserName" />
<Nil N="Site" />
<Nil N="Container" />
</Props>
</Obj>
<Obj RefId="RefId-0">
<TNRef RefId="RefId-0" />
<Props>
<S N="MachineName">WINDOWS-6D9049D</S>
<BA N="Data" />
<I32 N="Index">3208</I32>
<S N="Category">Gerenciamento</S>
<I16 N="CategoryNumber">5</I16>
<I32 N="EventID">107</I32>
<Obj N="EntryType" RefId="RefId-1">
<TNRef RefId="RefId-1" />
<ToString>Error</ToString>
<I32>1</I32>
</Obj>
<S N="Message">Report Server Windows Service (MSSQLSERVER_1) não
pode
se conectar ao banco de dados do servidor de relatório.</S>
<S N="Source">Report Server Windows Service (MSSQLSERVER_1)</S>
<Obj N="ReplacementStrings" RefId="RefId-2">
<TNRef RefId="RefId-2" />
<LST>
<S>Report Server Windows Service (MSSQLSERVER_1)</S>
</LST>
</Obj>
<I64 N="InstanceId">107</I64>
<DT N="TimeGenerated">2008-11-06T13:33:43-02:00</DT>
<DT N="TimeWritten">2008-11-06T13:33:43-02:00</DT>
<Nil N="UserName" />
<Nil N="Site" />
<Nil N="Container" />
</Props>
</Obj>
</Objs>');

GO

WITH XMLNAMESPACES (DEFAULT
'http://schemas.microsoft.com/powershell/2004/04')
SELECT
T.obj.value('(Props/S[@N = "MachineName"])[1]', 'nvarchar(20)') AS
MachineName
FROM t5 CROSS APPLY t5.valores.nodes('/Objs/Obj') AS T(obj);

Results looks as follows:

WINDOWS-6D9049D
WINDOWS-6D9049D
WINDOWS-6D9049D
WINDOWS-6D9049D
WINDOWS-6D9049D
WINDOWS-6D9049D
WINDOWS-6D9049D
WINDOWS-6D9049D
WINDOWS-6D9049D
WINDOWS-6D9049D
WINDOWS-6D9049D
WINDOWS-6D9049D
WINDOWS-6D9049D
WINDOWS-6D9049D
WINDOWS-6D9049D
WINDOWS-6D9049D
WINDOWS-6D9049D
--

Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
 >> Stay informed about: XML Datatype Problem 
Back to top
Login to vote
LPJ

External


Since: Nov 06, 2008
Posts: 7



(Msg. 5) Posted: Fri Nov 07, 2008 8:26 am
Post subject: Re: XML Datatype Problem [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Yeahhhh Martin..this is what i need..Thanks Again

"Martin Honnen" wrote:

> LPJ wrote:
>
> > <S N="Message">SQL Server is not ready to accept new client
> > connections. Wait a few minutes before trying again. If you have access to
> > the error log, look for the informational message that indicates that SQL
> > Server is ready before trying to connect again. [CLIENT: <local machine>]</S>
> ^^^^^^^^^^^^
> That is not well-formed XML.
>
> > <S N="Source">MSSQL$MSSQLSERVER_1</S>
> > <Obj N="ReplacementStrings" RefId="RefId-2">
> > <TNRef RefId="RefId-2" />
> > <LST>
> > <S> [CLIENT: <local machine>]</S>
> ^^^^^^^^^^^^^^^
> Nor is that.
>
>
>
> > This is a column in my sqls server table, call "valores".. I have 4 lines in
> > this table...but you can see i have a lot information inside de XML..i want
> > to return this informations...to every line, i have much information in
> > XML..how can i do this ?
>
> You can use the nodes function on the XML column. Here is an example:
>
> CREATE TABLE t5 (
> valores XML
> );
> GO
> INSERT INTO t5 (valores) VALUES(N'<Objs
> xmlns="http://schemas.microsoft.com/powershell/2004/04" Version="1.1">
> <Obj RefId="RefId-0">
> <TN RefId="RefId-0">
> <T>System.Diagnostics.EventLogEntry</T>
> <T>System.ComponentModel.Component</T>
> <T>System.MarshalByRefObject</T>
> <T>System.Object</T>
> </TN>
> <Props>
> <S N="MachineName">WINDOWS-6D9049D</S>
> <BA
> N="Data">4iYAABAAAAAeAAAAVwBJAE4ARABPAFcAUwAtADYARAA5ADAANAA5AEQAXABNAFMAUwBRAEwAUwBFAFIAVgBFAFIAXwAxAAAAAAAAAA==</BA>
> <I32 N="Index">1847</I32>
> <S N="Category">Server</S>
> <I16 N="CategoryNumber">2</I16>
> <I32 N="EventID">9954</I32>
> <Obj N="EntryType" RefId="RefId-1">
> <TN RefId="RefId-1">
> <T>System.Diagnostics.EventLogEntryType</T>
> <T>System.Enum</T>
> <T>System.ValueType</T>
> <T>System.Object</T>
> </TN>
> <ToString>Error</ToString>
> <I32>1</I32>
> </Obj>
> <S N="Message">SQL Server failed to communicate with filter daemon
> launch service (Windows error: O serviço não pode ser iniciado porque está
> desativado ou não tem dispositivos ativados associados. ). Full-Text filter
> daemon process failed to start. Full-text search functionality will not be
> available.</S>
> <S N="Source">MSSQL$MSSQLSERVER_1</S>
> <Obj N="ReplacementStrings" RefId="RefId-2">
> <TN RefId="RefId-2">
> <T>System.String[]</T>
> <T>System.Array</T>
> <T>System.Object</T>
> </TN>
> <LST>
> <S>O serviço não pode ser iniciado porque está desativado ou não
> tem dispositivos ativados associados. </S>
> </LST>
> </Obj>
> <I64 N="InstanceId">3221235426</I64>
> <DT N="TimeGenerated">2008-10-28T21:37:39-02:00</DT>
> <DT N="TimeWritten">2008-10-28T21:37:39-02:00</DT>
> <Nil N="UserName" />
> <Nil N="Site" />
> <Nil N="Container" />
> </Props>
> </Obj>
> <Obj RefId="RefId-0">
> <TNRef RefId="RefId-0" />
> <Props>
> <S N="MachineName">WINDOWS-6D9049D</S>
> <BA
> N="Data">I0MAABAAAAAeAAAAVwBJAE4ARABPAFcAUwAtADYARAA5ADAANAA5AEQAXABNAFMAUwBRAEwAUwBFAFIAVgBFAFIAXwAxAAAAAAAAAA==</BA>
> <I32 N="Index">2042</I32>
> <S N="Category">Logon</S>
> <I16 N="CategoryNumber">4</I16>
> <I32 N="EventID">17187</I32>
> <Obj N="EntryType" RefId="RefId-1">
> <TNRef RefId="RefId-1" />
> <ToString>Error</ToString>
> <I32>1</I32>
> </Obj>
> <S N="Message">SQL Server is not ready to accept new client
> connections. Wait a few minutes before trying again. If you have access to
> the error log, look for the informational message that indicates that SQL
> Server is ready before trying to connect again. [CLIENT: 201.76.81.26]</S>
> <S N="Source">MSSQL$MSSQLSERVER_1</S>
> <Obj N="ReplacementStrings" RefId="RefId-2">
> <TNRef RefId="RefId-2" />
> <LST>
> <S> [CLIENT: 201.76.81.26]</S>
> </LST>
> </Obj>
> <I64 N="InstanceId">3221242659</I64>
> <DT N="TimeGenerated">2008-10-30T17:43:42-02:00</DT>
> <DT N="TimeWritten">2008-10-30T17:43:42-02:00</DT>
> <Nil N="UserName" />
> <Nil N="Site" />
> <Nil N="Container" />
> </Props>
> </Obj>
> <Obj RefId="RefId-0">
> <TNRef RefId="RefId-0" />
> <Props>
> <S N="MachineName">WINDOWS-6D9049D</S>
> <BA
> N="Data">I0MAABAAAAAeAAAAVwBJAE4ARABPAFcAUwAtADYARAA5ADAANAA5AEQAXABNAFMAUwBRAEwAUwBFAFIAVgBFAFIAXwAxAAAAAAAAAA==</BA>
> <I32 N="Index">2043</I32>
> <S N="Category">Logon</S>
> <I16 N="CategoryNumber">4</I16>
> <I32 N="EventID">17187</I32>
> <Obj N="EntryType" RefId="RefId-1">
> <TNRef RefId="RefId-1" />
> <ToString>Error</ToString>
> <I32>1</I32>
> </Obj>
> <S N="Message">SQL Server is not ready to accept new client
> connections. Wait a few minutes before trying again. If you have access to
> the error log, look for the informational message that indicates that SQL
> Server is ready before trying to connect again. [CLIENT: 201.76.81.26]</S>
> <S N="Source">MSSQL$MSSQLSERVER_1</S>
> <Obj N="ReplacementStrings" RefId="RefId-2">
> <TNRef RefId="RefId-2" />
> <LST>
> <S> [CLIENT: 201.76.81.26]</S>
> </LST>
> </Obj>
> <I64 N="InstanceId">3221242659</I64>
> <DT N="TimeGenerated">2008-10-30T17:43:42-02:00</DT>
> <DT N="TimeWritten">2008-10-30T17:43:42-02:00</DT>
> <Nil N="UserName" />
> <Nil N="Site" />
> <Nil N="Container" />
> </Props>
> </Obj>
> <Obj RefId="RefId-0">
> <TNRef RefId="RefId-0" />
> <Props>
> <S N="MachineName">WINDOWS-6D9049D</S>
> <BA
> N="Data">4iYAABAAAAAeAAAAVwBJAE4ARABPAFcAUwAtADYARAA5ADAANAA5AEQAXABNAFMAUwBRAEwAUwBFAFIAVgBFAFIAXwAxAAAAAAAAAA==</BA>
> <I32 N="Index">2060</I32>
> <S N="Category">Server</S>
> <I16 N="CategoryNumber">2</I16>
> <I32 N="EventID">9954</I32>
> <Obj N="EntryType" RefId="RefId-1">
> <TNRef RefId="RefId-1" />
> <ToString>Error</ToString>
> <I32>1</I32>
> </Obj>
> <S N="Message">SQL Server failed to communicate with filter daemon
> launch service (Windows error: O serviço não pode ser iniciado porque está
> desativado ou não tem dispositivos ativados associados. ). Full-Text filter
> daemon process failed to start. Full-text search functionality will not be
> available.</S>
> <S N="Source">MSSQL$MSSQLSERVER_1</S>
> <Obj N="ReplacementStrings" RefId="RefId-2">
> <TNRef RefId="RefId-2" />
> <LST>
> <S>O serviço não pode ser iniciado porque está desativado ou não
> tem dispositivos ativados associados. </S>
> </LST>
> </Obj>
> <I64 N="InstanceId">3221235426</I64>
> <DT N="TimeGenerated">2008-10-30T17:43:46-02:00</DT>
> <DT N="TimeWritten">2008-10-30T17:43:46-02:00</DT>
> <Nil N="UserName" />
> <Nil N="Site" />
> <Nil N="Container" />
> </Props>
> </Obj>
> <Obj RefId="RefId-0">
> <TNRef RefId="RefId-0" />
> <Props>
> <S N="MachineName">WINDOWS-6D9049D</S>
> <BA N="Data" />
> <I32 N="Index">2087</I32>
> <S N="Category">Gerenciamento</S>
> <I16 N="CategoryNumber">5</I16>
> <I32 N="EventID">107</I32>
> <Obj N="EntryType" RefId="RefId-1">
> <TNRef RefId="RefId-1" />
> <ToString>Error</ToString>
> <I32>1</I32>
> </Obj>
> <S N="Message">Report Server Windows Service (MSSQLSERVER_1) não
> pode
> se conectar ao banco de dados do servidor de relatório.</S>
> <S N="Source">Report Server Windows Service (MSSQLSERVER_1)</S>
> <Obj N="ReplacementStrings" RefId="RefId-2">
> <TNRef RefId="RefId-2" />
> <LST>
> <S>Report Server Windows Service (MSSQLSERVER_1)</S>
> </LST>
> </Obj>
> <I64 N="InstanceId">107</I64>
> <DT N="TimeGenerated">2008-10-30T17:44:01-02:00</DT>
> <DT N="TimeWritten">2008-10-30T17:44:01-02:00</DT>
> <Nil N="UserName" />
> <Nil N="Site" />
> <Nil N="Container" />
> </Props>
> </Obj>
> <Obj RefId="RefId-0">
> <TNRef RefId="RefId-0" />
> <Props>
> <S N="MachineName">WINDOWS-6D9049D</S>
> <BA
> N="Data">4iYAABAAAAAeAAAAVwBJAE4ARABPAFcAUwAtADYARAA5ADAANAA5AEQAXABNAFMAUwBRAEwAUwBFAFIAVgBFAFIAXwAxAAAAAAAAAA==</BA>
> <I32 N="Index">2241</I32>
> <S N="Category">Server</S>
> <I16 N="CategoryNumber">2</I16>
> <I32 N="EventID">9954</I32>
> <Obj N="EntryType" RefId="RefId-1">
> <TNRef RefId="RefId-1" />
> <ToString>Error</ToString>
> <I32>1</I32>
> </Obj>
> <S N="Message">SQL Server failed to communicate with filter daemon
> launch service (Windows error: O serviço não pode ser iniciado porque está
> desativado ou não tem dispositivos ativados associados. ). Full-Text filter
> daemon process failed to start. Full-text search functionality will not be
> available.</S>
> <S N="Source">MSSQL$MSSQLSERVER_1</S>
> <Obj N="ReplacementStrings" RefId="RefId-2">
> <TNRef RefId="RefId-2" />
> <LST>
> <S>O serviço não pode ser iniciado porque está desativado ou não
> tem dispositivos ativados associados. </S>
> </LST>
> </Obj>
> <I64 N="InstanceId">3221235426</I64>
> <DT N="TimeGenerated">2008-11-01T21:30:23-02:00</DT>
> <DT N="TimeWritten">2008-11-01T21:30:23-02:00</DT>
> <Nil N="UserName" />
> <Nil N="Site" />
> <Nil N="Container" />
> </Props>
> </Obj>
> <Obj RefId="RefId-0">
> <TNRef RefId="RefId-0" />
> <Props>
> <S N="MachineName">WINDOWS-6D9049D</S>
> <BA N="Data" />
> <I32 N="Index">2261</I32>
> <S N="Category">Gerenciamento</S>
> <I16 N="CategoryNumber">5</I16>
> <I32 N="EventID">107</I32>
> <Obj N="EntryType" RefId="RefId-1">
> <TNRef RefId="RefId-1" />
> <ToString>Error</ToString>
> <I32>1</I32>
> </Obj>
> <S N="Message">Report Server Windows Service (MSSQLSERVER_1) não
> pode
> se conectar ao banco de dados do servidor de relatório.</S>
> <S N="Source">Report Server Windows Service (MSSQLSERVER_1)</S>
> <Obj N="ReplacementStrings" RefId="RefId-2">
> <TNRef RefId="RefId-2" />
> <LST>
> <S>Report Server Windows Service (MSSQLSERVER_1)</S>
> </LST>
> </Obj>
> <I64 N="InstanceId">107</I64>
> <DT N="TimeGenerated">2008-11-01T21:30:30-02:00</DT>
> <DT N="TimeWritten">2008-11-01T21:30:30-02:00</DT>
> <Nil N="UserName" />
> <Nil N="Site" />
> <Nil N="Container" />
> </Props>
> </Obj>
> <Obj RefId="RefId-0">
> <TNRef RefId="RefId-0" />
> <Props>
> <S N="MachineName">WINDOWS-6D9049D</S>
> <BA
> N="Data">I0MAABAAAAAeAAAAVwBJAE4ARABPAFcAUwAtADYARAA5ADAANAA5AEQAXABNAFMAUwBRAEwAUwBFAFIAVgBFAFIAXwAxAAAAAAAAAA==</BA>
> <I32 N="Index">2606</I32>
> <S N="Category">Logon</S>
> <I16 N="CategoryNumber">4</I16>
> <I32 N="EventID">17187</I32>
> <Obj N="EntryType" RefId="RefId-1">
> <TNRef RefId="RefId-1" />
> <ToString>Error</ToString>
> <I32>1</I32>
 >> Stay informed about: XML Datatype Problem 
Back to top
Login to vote
LPJ

External


Since: Nov 06, 2008
Posts: 7



(Msg. 6) Posted: Fri Nov 07, 2008 8:26 am
Post subject: Re: XML Datatype Problem [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Martin,

If i do what you did, copy the xml and create a new tabel and insert..its
works...But in my real table doesnt. Nothing appears
I copy the table to another..not works too
What possible happened ?

"LPJ" wrote:

> Yeahhhh Martin..this is what i need..Thanks Again
>
> "Martin Honnen" wrote:
>
> > LPJ wrote:
> >
> > > <S N="Message">SQL Server is not ready to accept new client
> > > connections. Wait a few minutes before trying again. If you have access to
> > > the error log, look for the informational message that indicates that SQL
> > > Server is ready before trying to connect again. [CLIENT: <local machine>]</S>
> > ^^^^^^^^^^^^
> > That is not well-formed XML.
> >
> > > <S N="Source">MSSQL$MSSQLSERVER_1</S>
> > > <Obj N="ReplacementStrings" RefId="RefId-2">
> > > <TNRef RefId="RefId-2" />
> > > <LST>
> > > <S> [CLIENT: <local machine>]</S>
> > ^^^^^^^^^^^^^^^
> > Nor is that.
> >
> >
> >
> > > This is a column in my sqls server table, call "valores".. I have 4 lines in
> > > this table...but you can see i have a lot information inside de XML..i want
> > > to return this informations...to every line, i have much information in
> > > XML..how can i do this ?
> >
> > You can use the nodes function on the XML column. Here is an example:
> >
> > CREATE TABLE t5 (
> > valores XML
> > );
> > GO
> > INSERT INTO t5 (valores) VALUES(N'<Objs
> > xmlns="http://schemas.microsoft.com/powershell/2004/04" Version="1.1">
> > <Obj RefId="RefId-0">
> > <TN RefId="RefId-0">
> > <T>System.Diagnostics.EventLogEntry</T>
> > <T>System.ComponentModel.Component</T>
> > <T>System.MarshalByRefObject</T>
> > <T>System.Object</T>
> > </TN>
> > <Props>
> > <S N="MachineName">WINDOWS-6D9049D</S>
> > <BA
> > N="Data">4iYAABAAAAAeAAAAVwBJAE4ARABPAFcAUwAtADYARAA5ADAANAA5AEQAXABNAFMAUwBRAEwAUwBFAFIAVgBFAFIAXwAxAAAAAAAAAA==</BA>
> > <I32 N="Index">1847</I32>
> > <S N="Category">Server</S>
> > <I16 N="CategoryNumber">2</I16>
> > <I32 N="EventID">9954</I32>
> > <Obj N="EntryType" RefId="RefId-1">
> > <TN RefId="RefId-1">
> > <T>System.Diagnostics.EventLogEntryType</T>
> > <T>System.Enum</T>
> > <T>System.ValueType</T>
> > <T>System.Object</T>
> > </TN>
> > <ToString>Error</ToString>
> > <I32>1</I32>
> > </Obj>
> > <S N="Message">SQL Server failed to communicate with filter daemon
> > launch service (Windows error: O serviço não pode ser iniciado porque está
> > desativado ou não tem dispositivos ativados associados. ). Full-Text filter
> > daemon process failed to start. Full-text search functionality will not be
> > available.</S>
> > <S N="Source">MSSQL$MSSQLSERVER_1</S>
> > <Obj N="ReplacementStrings" RefId="RefId-2">
> > <TN RefId="RefId-2">
> > <T>System.String[]</T>
> > <T>System.Array</T>
> > <T>System.Object</T>
> > </TN>
> > <LST>
> > <S>O serviço não pode ser iniciado porque está desativado ou não
> > tem dispositivos ativados associados. </S>
> > </LST>
> > </Obj>
> > <I64 N="InstanceId">3221235426</I64>
> > <DT N="TimeGenerated">2008-10-28T21:37:39-02:00</DT>
> > <DT N="TimeWritten">2008-10-28T21:37:39-02:00</DT>
> > <Nil N="UserName" />
> > <Nil N="Site" />
> > <Nil N="Container" />
> > </Props>
> > </Obj>
> > <Obj RefId="RefId-0">
> > <TNRef RefId="RefId-0" />
> > <Props>
> > <S N="MachineName">WINDOWS-6D9049D</S>
> > <BA
> > N="Data">I0MAABAAAAAeAAAAVwBJAE4ARABPAFcAUwAtADYARAA5ADAANAA5AEQAXABNAFMAUwBRAEwAUwBFAFIAVgBFAFIAXwAxAAAAAAAAAA==</BA>
> > <I32 N="Index">2042</I32>
> > <S N="Category">Logon</S>
> > <I16 N="CategoryNumber">4</I16>
> > <I32 N="EventID">17187</I32>
> > <Obj N="EntryType" RefId="RefId-1">
> > <TNRef RefId="RefId-1" />
> > <ToString>Error</ToString>
> > <I32>1</I32>
> > </Obj>
> > <S N="Message">SQL Server is not ready to accept new client
> > connections. Wait a few minutes before trying again. If you have access to
> > the error log, look for the informational message that indicates that SQL
> > Server is ready before trying to connect again. [CLIENT: 201.76.81.26]</S>
> > <S N="Source">MSSQL$MSSQLSERVER_1</S>
> > <Obj N="ReplacementStrings" RefId="RefId-2">
> > <TNRef RefId="RefId-2" />
> > <LST>
> > <S> [CLIENT: 201.76.81.26]</S>
> > </LST>
> > </Obj>
> > <I64 N="InstanceId">3221242659</I64>
> > <DT N="TimeGenerated">2008-10-30T17:43:42-02:00</DT>
> > <DT N="TimeWritten">2008-10-30T17:43:42-02:00</DT>
> > <Nil N="UserName" />
> > <Nil N="Site" />
> > <Nil N="Container" />
> > </Props>
> > </Obj>
> > <Obj RefId="RefId-0">
> > <TNRef RefId="RefId-0" />
> > <Props>
> > <S N="MachineName">WINDOWS-6D9049D</S>
> > <BA
> > N="Data">I0MAABAAAAAeAAAAVwBJAE4ARABPAFcAUwAtADYARAA5ADAANAA5AEQAXABNAFMAUwBRAEwAUwBFAFIAVgBFAFIAXwAxAAAAAAAAAA==</BA>
> > <I32 N="Index">2043</I32>
> > <S N="Category">Logon</S>
> > <I16 N="CategoryNumber">4</I16>
> > <I32 N="EventID">17187</I32>
> > <Obj N="EntryType" RefId="RefId-1">
> > <TNRef RefId="RefId-1" />
> > <ToString>Error</ToString>
> > <I32>1</I32>
> > </Obj>
> > <S N="Message">SQL Server is not ready to accept new client
> > connections. Wait a few minutes before trying again. If you have access to
> > the error log, look for the informational message that indicates that SQL
> > Server is ready before trying to connect again. [CLIENT: 201.76.81.26]</S>
> > <S N="Source">MSSQL$MSSQLSERVER_1</S>
> > <Obj N="ReplacementStrings" RefId="RefId-2">
> > <TNRef RefId="RefId-2" />
> > <LST>
> > <S> [CLIENT: 201.76.81.26]</S>
> > </LST>
> > </Obj>
> > <I64 N="InstanceId">3221242659</I64>
> > <DT N="TimeGenerated">2008-10-30T17:43:42-02:00</DT>
> > <DT N="TimeWritten">2008-10-30T17:43:42-02:00</DT>
> > <Nil N="UserName" />
> > <Nil N="Site" />
> > <Nil N="Container" />
> > </Props>
> > </Obj>
> > <Obj RefId="RefId-0">
> > <TNRef RefId="RefId-0" />
> > <Props>
> > <S N="MachineName">WINDOWS-6D9049D</S>
> > <BA
> > N="Data">4iYAABAAAAAeAAAAVwBJAE4ARABPAFcAUwAtADYARAA5ADAANAA5AEQAXABNAFMAUwBRAEwAUwBFAFIAVgBFAFIAXwAxAAAAAAAAAA==</BA>
> > <I32 N="Index">2060</I32>
> > <S N="Category">Server</S>
> > <I16 N="CategoryNumber">2</I16>
> > <I32 N="EventID">9954</I32>
> > <Obj N="EntryType" RefId="RefId-1">
> > <TNRef RefId="RefId-1" />
> > <ToString>Error</ToString>
> > <I32>1</I32>
> > </Obj>
> > <S N="Message">SQL Server failed to communicate with filter daemon
> > launch service (Windows error: O serviço não pode ser iniciado porque está
> > desativado ou não tem dispositivos ativados associados. ). Full-Text filter
> > daemon process failed to start. Full-text search functionality will not be
> > available.</S>
> > <S N="Source">MSSQL$MSSQLSERVER_1</S>
> > <Obj N="ReplacementStrings" RefId="RefId-2">
> > <TNRef RefId="RefId-2" />
> > <LST>
> > <S>O serviço não pode ser iniciado porque está desativado ou não
> > tem dispositivos ativados associados. </S>
> > </LST>
> > </Obj>
> > <I64 N="InstanceId">3221235426</I64>
> > <DT N="TimeGenerated">2008-10-30T17:43:46-02:00</DT>
> > <DT N="TimeWritten">2008-10-30T17:43:46-02:00</DT>
> > <Nil N="UserName" />
> > <Nil N="Site" />
> > <Nil N="Container" />
> > </Props>
> > </Obj>
> > <Obj RefId="RefId-0">
> > <TNRef RefId="RefId-0" />
> > <Props>
> > <S N="MachineName">WINDOWS-6D9049D</S>
> > <BA N="Data" />
> > <I32 N="Index">2087</I32>
> > <S N="Category">Gerenciamento</S>
> > <I16 N="CategoryNumber">5</I16>
> > <I32 N="EventID">107</I32>
> > <Obj N="EntryType" RefId="RefId-1">
> > <TNRef RefId="RefId-1" />
> > <ToString>Error</ToString>
> > <I32>1</I32>
> > </Obj>
> > <S N="Message">Report Server Windows Service (MSSQLSERVER_1) não
> > pode
> > se conectar ao banco de dados do servidor de relatório.</S>
> > <S N="Source">Report Server Windows Service (MSSQLSERVER_1)</S>
> > <Obj N="ReplacementStrings" RefId="RefId-2">
> > <TNRef RefId="RefId-2" />
> > <LST>
> > <S>Report Server Windows Service (MSSQLSERVER_1)</S>
> > </LST>
> > </Obj>
> > <I64 N="InstanceId">107</I64>
> > <DT N="TimeGenerated">2008-10-30T17:44:01-02:00</DT>
> > <DT N="TimeWritten">2008-10-30T17:44:01-02:00</DT>
> > <Nil N="UserName" />
> > <Nil N="Site" />
> > <Nil N="Container" />
> > </Props>
> > </Obj>
> > <Obj RefId="RefId-0">
> > <TNRef RefId="RefId-0" />
> > <Props>
> > <S N="MachineName">WINDOWS-6D9049D</S>
> > <BA
> > N="Data">4iYAABAAAAAeAAAAVwBJAE4ARABPAFcAUwAtADYARAA5ADAANAA5AEQAXABNAFMAUwBRAEwAUwBFAFIAVgBFAFIAXwAxAAAAAAAAAA==</BA>
> > <I32 N="Index">2241</I32>
> > <S N="Category">Server</S>
> > <I16 N="CategoryNumber">2</I16>
> > <I32 N="EventID">9954</I32>
> > <Obj N="EntryType" RefId="RefId-1">
> > <TNRef RefId="RefId-1" />
> > <ToString>Error</ToString>
> > <I32>1</I32>
> > </Obj>
> > <S N="Message">SQL Server failed to communicate with filter daemon
> > launch service (Windows error: O serviço não pode ser iniciado porque está
> > desativado ou não tem dispositivos ativados associados. ). Full-Text filter
> > daemon process failed to start. Full-text search functionality will not be
> > available.</S>
> > <S N="Source">MSSQL$MSSQLSERVER_1</S>
> > <Obj N="ReplacementStrings" RefId="RefId-2">
> > <TNRef RefId="RefId-2" />
> > <LST>
> > <S>O serviço não pode ser iniciado porque está desativado ou não
> > tem dispositivos ativados associados. </S>
> > </LST>
> > </Obj>
> > <I64 N="InstanceId">3221235426</I64>
> > <DT N="TimeGenerated">2008-11-01T21:30:23-02:00</DT>
> > <DT N="TimeWritten">2008-11-01T21:30:23-02:00</DT>
> > <Nil N="UserName" />
> > <Nil N="Site" />
> > <Nil N="Container" />
> > </Props>
> > </Obj>
> > <Obj RefId="RefId-0">
> > <TNRef RefId="RefId-0" />
> > <Props>
> > <S N="MachineName">WINDOWS-6D9049D</S>
> > <BA N="Data" />
> > <I32 N="Index">2261</I32>
> > <S N="Category">Gerenciamento</S>
> > <I16 N="CategoryNumber">5</I16>
> > <I32 N="EventID">107</I32>
> > <Obj N="EntryType" RefId="RefId-1">
> > <TNRef RefId="RefId-1" />
> > <ToString>Error</ToString>
> > <I32>1</I32>
> > </Obj>
> > <S N="Message">Report Server Windows Service (MSSQLSERVER_1) não
> > pode
> > se conectar ao banco de dados do servidor de relatório.</S>
> > <S N="Source">Report Server Windows Service (MSSQLSERVER_1)</S>
> > <Obj N="ReplacementStrings" RefId="RefId-2">
> > <TNRef RefId="RefId-2" />
> > <LST>
> > <S>Report Server Windows Service (MSSQLSERVER_1)</S>
> > </LST>
> > </Obj>
> > <I64 N="InstanceId">107</I64>
> > <DT N="TimeGenerated">2008-11-01T21:30:30-02:00</DT>
> > <DT N="TimeWritten">2008-11-01T21:30:30-02:00</DT>
> > <Nil N="UserName" />
> > <Nil N="Site" />
> > <Nil N="Container" />
> > </Props>
> > </Obj>
> > <Obj RefId="RefId-0">
> > <TNRef RefId="RefId-0" />
> > <Props>
> > <S N="MachineName">WINDOWS-6D9049D</S>
> > <BA
> > N="Data">I0MAABAAAAAeAAAAVwBJAE4ARABPAFcAUwAtADYARAA5ADAANAA5AEQAXABNAFMAUwBRAEwAUwBFAFIAVgBFAFIAXwAxAAAAAAAAAA==</BA>
> > <I32 N="Index">2606</I32>
> > <S N="Category">Logon</S>
> > <I16 N="CategoryNumber">4</I16>
> > <I32 N="EventID">17187</I32>
 >> Stay informed about: XML Datatype Problem 
Back to top
Login to vote
Martin Honnen

External


Since: Apr 20, 2007
Posts: 48



(Msg. 7) Posted: Fri Nov 07, 2008 9:25 am
Post subject: Re: XML Datatype Problem [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

LPJ wrote:

> If i do what you did, copy the xml and create a new tabel and insert..its
> works...But in my real table doesnt. Nothing appears
> I copy the table to another..not works too
> What possible happened ?

I don't know. Show us the table definition and your query then we can
hopefully say more.

--

Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
 >> Stay informed about: XML Datatype Problem 
Back to top
Login to vote
LPJ

External


Since: Nov 06, 2008
Posts: 7



(Msg. 8) Posted: Fri Nov 07, 2008 9:25 am
Post subject: Re: XML Datatype Problem [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

OK..Table definition

USE [DBA]
GO

/****** Object: Table [Diario].[eventlog] Script Date: 11/07/2008
12:04:14 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

SET ANSI_PADDING ON
GO

CREATE TABLE [Diario].[eventlog](
[servidor] [varchar](50) NULL,
[data] [datetime] NULL,
[valores] [xml] NULL
) ON [PRIMARY]

GO

SET ANSI_PADDING OFF
GO


This table contains server, date and the xml. The xml contains the
information about every server eventviewer what found the word
"error|warning" and the soucer is "*SQL*".....sql server errors events.. This
informations i take up with powershell scripts..the inputs made in PS scripts

I input the XML with "insert into" in this table..like you did..and works
too..but if use the script not works.. I think is something when insert by PS
script...but i take the XML manually inputed and XML PS inputed...are
identical...

Anyway....my real question you answered...but if you have any ideia what
when inputed by PS script not works i appreciate...

"Martin Honnen" wrote:

> LPJ wrote:
>
> > If i do what you did, copy the xml and create a new tabel and insert..its
> > works...But in my real table doesnt. Nothing appears
> > I copy the table to another..not works too
> > What possible happened ?
>
> I don't know. Show us the table definition and your query then we can
> hopefully say more.
>
> --
>
> Martin Honnen --- MVP XML
> http://JavaScript.FAQTs.com/
>
 >> Stay informed about: XML Datatype Problem 
Back to top
Login to vote
Martin Honnen

External


Since: Apr 20, 2007
Posts: 48



(Msg. 9) Posted: Fri Nov 07, 2008 10:27 am
Post subject: Re: XML Datatype Problem [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

LPJ wrote:

> CREATE TABLE [Diario].[eventlog](
> [servidor] [varchar](50) NULL,
> [data] [datetime] NULL,
> [valores] [xml] NULL
> ) ON [PRIMARY]

So that is the table definition.
How does the exact query look that does not return any results?

> This table contains server, date and the xml. The xml contains the
> information about every server eventviewer what found the word
> "error|warning" and the soucer is "*SQL*".....sql server errors events.. This
> informations i take up with powershell scripts..the inputs made in PS scripts
>
> I input the XML with "insert into" in this table..like you did..and works
> too..but if use the script not works.. I think is something when insert by PS
> script...but i take the XML manually inputed and XML PS inputed...are
> identical...

Well there must be a difference, we just need to find it.


--

Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
 >> Stay informed about: XML Datatype Problem 
Back to top
Login to vote
LPJ

External


Since: Nov 06, 2008
Posts: 7



(Msg. 10) Posted: Fri Nov 07, 2008 10:27 am
Post subject: Re: XML Datatype Problem [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

yeah...where ? i dont know...hehehehe
Anyway..you help me a lot Thanks

"Martin Honnen" wrote:

> LPJ wrote:
>
> > CREATE TABLE [Diario].[eventlog](
> > [servidor] [varchar](50) NULL,
> > [data] [datetime] NULL,
> > [valores] [xml] NULL
> > ) ON [PRIMARY]
>
> So that is the table definition.
> How does the exact query look that does not return any results?
>
> > This table contains server, date and the xml. The xml contains the
> > information about every server eventviewer what found the word
> > "error|warning" and the soucer is "*SQL*".....sql server errors events.. This
> > informations i take up with powershell scripts..the inputs made in PS scripts
> >
> > I input the XML with "insert into" in this table..like you did..and works
> > too..but if use the script not works.. I think is something when insert by PS
> > script...but i take the XML manually inputed and XML PS inputed...are
> > identical...
>
> Well there must be a difference, we just need to find it.
>
>
> --
>
> Martin Honnen --- MVP XML
> http://JavaScript.FAQTs.com/
>
 >> Stay informed about: XML Datatype Problem 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Like in XML datatype - Is there any way we can do like in xml datatype field? Thanks

SQL Server 2000 - openxml on table column with text datatype - Hi, How can I open an xml document with openxml on SQL Server 2000 that is stored in a text column? The XML will be much larger than the 8000 varchar limit so I cannot assign the column to a local varchar variable. This is proving a real problem. Please...

new to xQuery -- problem - Hello All, I am new to XQuery and also to SQL 2005. I am going through some tutorials on how to select xml nodes out of the database and i have run into a problem i can't figure out. So here is the Xml document that has been stored in the database ..

XQUERY big problem - Hello I try import data from XML file to MSSQL2005 using XQUERY xml like: <start> <section> <data1> </data1> <data2> </data2> <data3> </data3> <person> P1 </person> <pers...

Problem with bulk insert - Hi all, I am newbie in all the stuff about xml importing into sql server. What I try to do is simple. It is take an xml file and drop it into a table. I am using VS2005, SQLXML 4.0 and SQL Server 2000 (I think there is no problem of compatibility) Whe...
   Database Help (Home) -> XML All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]