Viewing 4 posts - 1 through 5 (of 5 total)
Yes, u are great guys.
The problem was in @xmlja.nodes(N'/CallAccountingList/CallAccounting') t(c);
Thanks a lot 🙂
April 10, 2009 at 2:59 am
i want to insert into one table.
SELECT c.value(N'(Accounting/ChargedUserID)[1]', N'nvarchar(100)') AS ChargedUserID,
c.value(N'(Accounting/ChargedUserType)[1]', N'nvarchar(100)') AS ChargedUserType,
c.value(N'(Accounting/SubscriberName)[1]', N'nvarchar(100)') AS SubscriberName,
c.value(N'(Accounting/TrunkID)[1]', N'int') AS TrunkID,
c.value(N'(Accounting/Date)[1]', N'datetime') AS Date,
c.value(N'(Accounting/Time)[1]', N'datetime') AS Time,...
April 10, 2009 at 2:31 am
declare @tabela1 table (
ChargedUserID int,
ChargedUserType varchar(100),
SubscriberName varchar(100),
TrunkID int,
Date datetime,
Time datetime,
CallDuration datetime,
DialledNumber varchar(100),
DiallingMode varchar(100)
)
this is my table.
i want to insert those data to each column,
this xml file is to small,...
April 10, 2009 at 2:24 am
Viewing 4 posts - 1 through 5 (of 5 total)