Inserting XML data into SQL table using OPENXML
From: Rahul Chatterjee (rahul_at_benesysinc.com)
Date: 03/17/04
- Next message: Anith Sen: "Re: Can CHARINDEX Expression2 be a UDF?"
- Previous message: sqlgirl: "Re: a view based on stored procedure"
- Next in thread: Narayana Vyas Kondreddi: "Re: Inserting XML data into SQL table using OPENXML"
- Reply: Narayana Vyas Kondreddi: "Re: Inserting XML data into SQL table using OPENXML"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 17 Mar 2004 17:31:42 -0500
Hello
In a scenario like below, is there any way to specify default values for the
columns without actually sending it from the DOM.
Thanks
INSERT TBLUPLOADTABLE
select * from openXML(@idoc,'CONTRACTOR/LINEITEM',1)
WITH (GROUPID int,
CONTRNUM char(9),
SSN char(9),
LNAME char(30),
FNAME char(20),
MI char(1),
HRSW decimal,
HRSPD decimal,
GROSS decimal,
INSDATE datetime,
PROCFLAG char(1),
SUB bit ,
Pension bit,
Insurance bit,
Vacation bit,
Annuity bit,
TTF bit,
WDD bit,
EIAP bit,
LLMCC bit)
- Next message: Anith Sen: "Re: Can CHARINDEX Expression2 be a UDF?"
- Previous message: sqlgirl: "Re: a view based on stored procedure"
- Next in thread: Narayana Vyas Kondreddi: "Re: Inserting XML data into SQL table using OPENXML"
- Reply: Narayana Vyas Kondreddi: "Re: Inserting XML data into SQL table using OPENXML"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|