Views on Using XML as a Proc Stored Parameter and Return Type

This is new to me. I have a new boss at work who insists that every request we make now is a sproc with XML serialized parameters and return types.

I haven't run any tests yet, but it hits me like an excess and possibly a performance killer in many ways. What is your experience?

+3
source share
8 answers

Although it is an obvious performance killer (imagine that parsing a few megabytes of XML is coming back from sproc), it further enhances performance, scalability, and a killer for performance. Working with XML in T-SQL is not entirely painless or seamless. Support will be a nightmare: imagine adding one column to the result set, which will lead to an avalanche of modifications to the serialization and deserialization code.

In addition, you cannot use either ORM tools or simple graphical agents (iBATIS or BLToolkit).

+4
source

( proc ), , .

, .

+3

, ; -p

, . Xml , TDS (.. ) . CSV (split by udf), (SQL 2008).

Sql/xml 2005+ , openxml - , , , xml ( xml), , , .

, .

+3

, , , . // Xml, , SProc , . - - ...

, ?

+2

(: messy) , , , .

- , . - , , , XML . , , , XML , : , XML , , TDD .

, - , : "XML , ?" , .

+1

. SQL - ., xml? (, , procs)

, procs, , xml. , "" .

+1

, : .

XML - , : , , (, ) .

, , , . XML .

, ( ) , . XML , , , . . .

, , , , . , , , . , , XML.

, , ? , , ?

, , , XML Everywhere , . , , , , , , , , . , , , .

+1

(Browser) -. , ​​ -. XML , - , HTML. XML - -, , -, .

+1

Source: https://habr.com/ru/post/1703336/


All Articles