|
как получить Output параметер из StorageProcedure FOR XML RAW
|
|||
---|---|---|---|
#18+
With stSQLXML .Open , , adOpenStreamUnspecified .Charset = "Unicode" 'set command text .WriteText "<?xml version='1.0' ?>" .WriteText "<root xmlns:sql='urn:schemas-microsoft-com:xml-sql'>" .WriteText " <sql:header>" .WriteText " <sql:param name='Input'>%</sql:param>" .WriteText " <sql:param name='Output'>%</sql:param>" .WriteText " </sql:header>" .WriteText " <sql:query>" .WriteText " exec [ForXML] @Input,@Output" .WriteText " </sql:query>" .WriteText "</root>" .Position = 0 End With objCommand.Dialect = "{5D531CB2-E6Ed-11D2-B252-00C04F681B71}" ' set the comm you are going to run. Set objCommand.CommandStream = stSQLXML objCommand.CommandType = adCmdText objCommand.NamedParameters = True Set objParam = objCommand.CreateParameter("@Input", adVarChar, adParamInput, 15, "kuku") objCommand.Parameters.Append objParam Set objParam = objCommand.CreateParameter("@Output", adVarChar, adParamOutput, 15) objCommand.Parameters.Append objParam objConnection.ConnectionString = ConString objConnection.Open Set objCommand.ActiveConnection = objConnection ' run the command objCommand.Properties("Output Stream").Value = objXMLDoc objCommand.Properties("Output Encoding").Value = "UTF-16" Call objCommand.Execute(, , adExecuteStream) И получаю Empty для Output параметра!!! Что делать? ... |
|||
:
Нравится:
Не нравится:
|
|||
16.02.2003, 18:59 |
|
|
start [/forum/topic.php?fid=60&fpage=419&tid=2171420]: |
0ms |
get settings: |
11ms |
get forum list: |
14ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
28ms |
get topic data: |
13ms |
get forum data: |
3ms |
get page messages: |
29ms |
get tp. blocked users: |
2ms |
others: | 265ms |
total: | 373ms |
0 / 0 |