ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Help with a sproc using a xml input parm (https://www.excelbanter.com/excel-programming/324610-help-sproc-using-xml-input-parm.html)

Pedro Moreno

Help with a sproc using a xml input parm
 


I’m new to Vb.net or VB in general and need help executing a sproc with
a well-formed XML input

Here is the short version of it


Alter procedure dob.RTC_Customer_Update
( @XMLData ntext = null,

@vUser varchar(10))


as
declare @nError int
declare @sMode varchar(10)
declare @vnName varchar(100)
declare @sErrorDesc varchar(100)
declare @dTodate datetime,
@XMLHnd int

declare @TMp table (NCUSTKEY
numeric ( 6 ) ,
VCNTRYCODE
varchar ( 2 ) ,
VIDTYPE
varchar ( 1 ) ,
..
..
..
..
..
..
..
..
..
..
..
..
..
Mode
int)

begin transaction
set nocount on
if @XMLData is null
begin
select @nError=5
end

select @dToday = getdate()
EXEC sp_xml_preparedocument @XMLHnd OUTPUT, @XMLData
Inset into @Tmp (NCUSTKEY ,
VCNTRYCODE ,
VIDTYPE ,


All times are GMT +1. The time now is 12:22 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com