I have a System.XML.XMLDOCUMENT and I'm looking to pass the xml as a parameter to sql.
I created a dataaccess class, but I am getting invalid cast.
So here's some sample code
I've tried
Both give me a invalid cast.
I'd really appriciate any help I can get!
Thanks!
I created a dataaccess class, but I am getting invalid cast.
So here's some sample code
VB.NET:
dim x as new system.xml.document
x.load("C:\MyXML.xml")
dim adapt as new mydataAdaptors.OneoofMyStoredProcedureAdaptors
dim t as new oneofMyStoreProcedureTables
'Here is where it is expecting the XML type in sql, but in vb it just says type OBJECT.
'I am thinking I need to somehow send the steam or something.
adapt.fill(t,x)
I've tried
VB.NET:
adapt.fill(t,x)
'and
adapt.fill(t,x.outerXML)
Both give me a invalid cast.
I'd really appriciate any help I can get!
Thanks!