Hi,
i need to pass large xml file to sp in sql, tried:
- cant send xml file as parameter with adoConnection.parameters - no xml type in ado data types
- cant put command like EXEC function(XMLDoc.xml) cause nav crashes saying that text length exceeds string buffer size, also execute command form ado connection doesnt accept BigText
- tried to pass array of 1024 length text strings as ado parameter but then nav says array must be the same dimension, no matter if i set dimension to 10 [10x1024] or 1024 [1024x1024]
- tried to set adoCommand.CommandText(EXEC proc XmlDoc.xml) but also got an errror about string buffer size overflow
Did you guys find a solution to the similar problem? Any help will be very useful.
Regards
0
Comments
- Mark
Regards
you mean changing field type in nav from blob to binary? Then it's only 250 chars..
Can you please explain this in more detail? Thank you
If you're using a newer/current version of SQL, use varchar(max) instead of text - it also has 2GB storage.
Procedure gets the record from navision table which has i.e field MyXml and converts that field to xml and does some stuff with it.
Point is, MyXml field can't be a blob, i can fit whole xml in it but can't convert it to xml in sql procedure cause blob is an image type in sql
Binary field in Navision is only 250 chars so it's to small.
What type of field in navsion do you mean?
Regards
|To-Increase|
LastNo is ans int value, xml no.
Procedure:
through sql mgmt studio on the same user and with the same argument everything works perfectly.
Any hints?
Thank you guys