我写了以下内容procedure
......如何date 101 format
在这里转换
ALTER PROCEDURE [dbo].[PenDataIns]
--[Begin]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
(
@xmlData ntext = null
) As
--[Begin]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Declare @DocHandle int --Doc handle for P1
DECLARE @Data_ins_error int
BEGIN TRANSACTION
--[Load data into respective XML document handle before processing]~~~~~~~~~~~~~~
EXECUTE sp_xml_preparedocument @DocHandle OUTPUT, @xmlData
--[Ecsstru]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/* Begin data transfer */
BEGIN
INSERT INTO AG_Data([PPO],
[NUM],[TYPE],[DOB],[DOA],[DOR])
SELECT * FROM OPENXML (@DocHandle, '/root/NewDataSet/Table',8)
WITH
(
[PPO] varchar(8) './PPO',
[NUM] numeric(1,0) './NUM',
[TYPE] varchar(3) './TYPE',
[DOB] date './DOB',
[DOA] date './DOA',
[DOR] date './DOR')
end