Click here to Skip to main content
15,894,410 members
Home / Discussions / Database
   

Database

 
GeneralRe: SQL Server Command Line Compile Pin
PIEBALDconsult30-Mar-12 3:08
mvePIEBALDconsult30-Mar-12 3:08 
QuestionHow do you lock records in Access 2007 Pin
Richard.Berry10029-Mar-12 9:34
Richard.Berry10029-Mar-12 9:34 
AnswerRe: How do you lock records in Access 2007 Pin
David Mujica29-Mar-12 9:51
David Mujica29-Mar-12 9:51 
GeneralRe: How do you lock records in Access 2007 Pin
Richard.Berry10029-Mar-12 10:18
Richard.Berry10029-Mar-12 10:18 
AnswerRe: How do you lock records in Access 2007 Pin
Mycroft Holmes29-Mar-12 13:09
professionalMycroft Holmes29-Mar-12 13:09 
QuestionXML data import to SQL Pin
milenalukic29-Mar-12 6:21
milenalukic29-Mar-12 6:21 
AnswerRe: XML data import to SQL Pin
jschell29-Mar-12 8:08
jschell29-Mar-12 8:08 
AnswerRe: XML data import to SQL Pin
PIEBALDconsult29-Mar-12 12:24
mvePIEBALDconsult29-Mar-12 12:24 
If the XML is something like:

<records>
  <record>
    <id>1</id>
    <name>foo</name>
  </record>
  <record>
    <id>2</id>
    <name>bar</name>
  </record>
</records>


and I don't yet a table for it, then my preference is to read the XML into an XmlDocument, iterate the records, iterate the children, cobble up appropriate CREATE TABLE and INSERT statements, execute the CREATE TABLE, then iterate the document again executing the INSERT for each record.

I have a console application to do this.
GeneralRe: XML data import to SQL Pin
milenalukic30-Mar-12 11:46
milenalukic30-Mar-12 11:46 
QuestionNew User. Pin
Abhishek kumar12129-Mar-12 4:24
Abhishek kumar12129-Mar-12 4:24 
AnswerRe: New User. Pin
Simon_Whale29-Mar-12 4:46
Simon_Whale29-Mar-12 4:46 
QuestionWhere .. IN ... Pin
eyalle27-Mar-12 20:47
eyalle27-Mar-12 20:47 
AnswerRe: Where .. IN ... Pin
Vipin_Arora27-Mar-12 20:57
Vipin_Arora27-Mar-12 20:57 
AnswerRe: Where .. IN ... Pin
Mycroft Holmes27-Mar-12 23:14
professionalMycroft Holmes27-Mar-12 23:14 
AnswerRe: Where .. IN ... Pin
Blue_Boy27-Mar-12 23:24
Blue_Boy27-Mar-12 23:24 
AnswerRe: Where .. IN ... Pin
Eddy Vluggen28-Mar-12 7:29
professionalEddy Vluggen28-Mar-12 7:29 
QuestionSQL query with multiples values(same column) Pin
OsiKosi27-Mar-12 15:47
professionalOsiKosi27-Mar-12 15:47 
AnswerRe: SQL query with multiples values(same column) Pin
Luc Pattyn27-Mar-12 16:18
sitebuilderLuc Pattyn27-Mar-12 16:18 
AnswerRe: SQL query with multiples values(same column) Pin
OsiKosi27-Mar-12 16:34
professionalOsiKosi27-Mar-12 16:34 
AnswerRe: SQL query with multiples values(same column) Pin
Luc Pattyn27-Mar-12 17:37
sitebuilderLuc Pattyn27-Mar-12 17:37 
GeneralRe: SQL query with multiples values(same column) Pin
Vipin_Arora27-Mar-12 21:06
Vipin_Arora27-Mar-12 21:06 
QuestionWhat is the best SQL Server disaster recovery solution? Pin
obarahmeh26-Mar-12 23:59
obarahmeh26-Mar-12 23:59 
AnswerRe: What is the best SQL Server disaster recovery solution? Pin
Corporal Agarn27-Mar-12 2:34
professionalCorporal Agarn27-Mar-12 2:34 
QuestionOracle, inserting date and time Pin
Chris_B8426-Mar-12 22:31
Chris_B8426-Mar-12 22:31 
AnswerRe: Oracle, inserting date and time Pin
Mycroft Holmes26-Mar-12 22:42
professionalMycroft Holmes26-Mar-12 22:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.