Click here to Skip to main content
16,006,001 members
Home / Discussions / XML / XSL
   

XML / XSL

 
GeneralRe: Unicode encoding problem Pin
teo_xp30-Jan-05 3:14
teo_xp30-Jan-05 3:14 
GeneralXML serialisation Pin
Member 157171627-Jan-05 22:11
Member 157171627-Jan-05 22:11 
GeneralXML 's Question Pin
jzb26-Jan-05 14:00
jzb26-Jan-05 14:00 
GeneralSQLXML3.0 Question Pin
mysorian26-Jan-05 11:59
professionalmysorian26-Jan-05 11:59 
GeneralRe: SQLXML3.0 Question Pin
DavidNohejl26-Jan-05 12:41
DavidNohejl26-Jan-05 12:41 
GeneralRe: SQLXML3.0 Question Pin
mysorian26-Jan-05 13:08
professionalmysorian26-Jan-05 13:08 
GeneralRe: SQLXML3.0 Question Pin
DavidNohejl26-Jan-05 13:38
DavidNohejl26-Jan-05 13:38 
GeneralRe: SQLXML3.0 Question Pin
mysorian26-Jan-05 17:58
professionalmysorian26-Jan-05 17:58 
David:

There is more to it than meets the eye...
-------------
 PROCEDURE dbo.GetEmployeesXml<br />
AS<br />
SELECT * FROM employees FOR XML AUTO<br />
RETURN

------------------------------
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load<br />
        'Put user code to initialize the page here<br />
        If Not IsPostBack Then<br />
            Dim sxcmd = New SqlXmlCommand("PROVIDER=SQLOLEDB.1;SERVER=XPHTEK;DATABASE=Northwind;INTEGRATED SECURITY=sspi;")<br />
            sxcmd.RootTag = "Employees"<br />
            sxcmd.CommandText = "EXEC GetEmployeesXml"<br />
            Dim xrdr As System.Xml.XmlReader<br />
<br />
            xrdr = sxcmd.ExecuteXmlReader()<br />
            Response.Write(xrdr.HasValue)<br />
            <br />
        End If<br />
    End Sub



----------------------------
Exception Details: System.Runtime.InteropServices.COMException: Exception from HRESULT: 0x80040E21.<br />
<br />
Source Error: <br />
Line 32:             Dim xrdr As System.Xml.XmlReader<br />
Line 33: <br />
Line 34:             xrdr = sxcmd.ExecuteXmlReader()--->error generted here<br />
Line 35:             Response.Write(xrdr.HasValue)<br />
Line 36:             While xrdr.Read

-----------------------
Now I substitute the 'stored procedure' by the statement used in the procedure, voila! No exception thrown.
GeneralInvalid Characters with MSXML Pin
Insert Cool Screen Name Here25-Jan-05 10:14
Insert Cool Screen Name Here25-Jan-05 10:14 
GeneralRe: Invalid Characters with MSXML Pin
DavidNohejl25-Jan-05 10:36
DavidNohejl25-Jan-05 10:36 
GeneralRe: Invalid Characters with MSXML Pin
Anonymous25-Jan-05 10:42
Anonymous25-Jan-05 10:42 
GeneralRe: Invalid Characters with MSXML Pin
Insert Cool Screen Name Here25-Jan-05 10:45
Insert Cool Screen Name Here25-Jan-05 10:45 
GeneralRe: Invalid Characters with MSXML Pin
DavidNohejl25-Jan-05 11:24
DavidNohejl25-Jan-05 11:24 
GeneralSimple Reports/ RTF output Pin
david@mindplay.com25-Jan-05 6:57
david@mindplay.com25-Jan-05 6:57 
GeneralRe: Simple Reports/ RTF output Pin
Mike Ellison25-Jan-05 8:27
Mike Ellison25-Jan-05 8:27 
GeneralRe: Simple Reports/ RTF output Pin
david@mindplay.com25-Jan-05 9:01
david@mindplay.com25-Jan-05 9:01 
GeneralRe: Simple Reports/ RTF output Pin
DavidNohejl25-Jan-05 10:13
DavidNohejl25-Jan-05 10:13 
GeneralRe: Simple Reports/ RTF output Pin
david@mindplay.com25-Jan-05 10:37
david@mindplay.com25-Jan-05 10:37 
GeneralRe: Simple Reports/ RTF output Pin
DavidNohejl25-Jan-05 11:21
DavidNohejl25-Jan-05 11:21 
GeneralRe: Simple Reports/ RTF output Pin
david@mindplay.com25-Jan-05 11:26
david@mindplay.com25-Jan-05 11:26 
QuestionHow to load data from XML String to tables Pin
Cuu24-Jan-05 6:00
Cuu24-Jan-05 6:00 
GeneralWSE 2.0 security... Pin
Jason Weibel21-Jan-05 10:56
Jason Weibel21-Jan-05 10:56 
Generalxml treeview using dataset Pin
ashushere21-Jan-05 8:17
ashushere21-Jan-05 8:17 
GeneralRe: xml treeview using dataset Pin
DavidNohejl21-Jan-05 12:19
DavidNohejl21-Jan-05 12:19 
GeneralWSE 2.0 - UsernameToken Pin
Jason Weibel20-Jan-05 9:22
Jason Weibel20-Jan-05 9:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.