Click here to Skip to main content
15,912,837 members
Home / Discussions / Database
   

Database

 
Questionsqlite problem Pin
mirko8620-Feb-09 5:47
mirko8620-Feb-09 5:47 
AnswerRe: sqlite problem Pin
Wendelius20-Feb-09 5:56
mentorWendelius20-Feb-09 5:56 
GeneralRe: sqlite problem Pin
mirko8620-Feb-09 6:17
mirko8620-Feb-09 6:17 
GeneralRe: sqlite problem Pin
Wendelius20-Feb-09 20:48
mentorWendelius20-Feb-09 20:48 
AnswerRe: sqlite problem Pin
Ennis Ray Lynch, Jr.20-Feb-09 6:50
Ennis Ray Lynch, Jr.20-Feb-09 6:50 
QuestionHow to Retrive XMLdata into database Table Pin
chinni119-Feb-09 20:36
chinni119-Feb-09 20:36 
AnswerRe: How to Retrive XMLdata into database Table Pin
Vimalsoft(Pty) Ltd19-Feb-09 21:02
professionalVimalsoft(Pty) Ltd19-Feb-09 21:02 
AnswerRe: How to Retrive XMLdata into database Table Pin
Wendelius19-Feb-09 21:27
mentorWendelius19-Feb-09 21:27 
You can use OPENROWSET[^] function. Something like:
SELECT * 
FROM OPENROWSET(BULK 'path\file', SINGLE_BLOB) AS alias

You can place the result into a variable and then use CONVERT[^] to convert the data to XML (or you can do the convert in the select statement). After that you can insert the data into the table. If you want, you can compress this to one statement, but it will be harder to find errors if such occur.
INSERT INTO targetTable (targetColumn)
SELECT CONVERT(xml, alias.sourcecolumn)
FROM OPENROWSET(BULK 'path\file', SINGLE_BLOB) AS alias


The need to optimize rises from a bad design.My articles[^]

Questionquery for between dates Pin
icanmakeiteasy19-Feb-09 19:27
icanmakeiteasy19-Feb-09 19:27 
AnswerRe: query for between dates Pin
Wendelius19-Feb-09 19:51
mentorWendelius19-Feb-09 19:51 
GeneralRe: query for between dates Pin
icanmakeiteasy19-Feb-09 19:57
icanmakeiteasy19-Feb-09 19:57 
GeneralRe: query for between dates Pin
Wendelius19-Feb-09 21:28
mentorWendelius19-Feb-09 21:28 
QuestionRestore database Pin
aratireddy19-Feb-09 17:45
aratireddy19-Feb-09 17:45 
AnswerRe: Restore database Pin
Wendelius19-Feb-09 18:21
mentorWendelius19-Feb-09 18:21 
GeneralRe: Restore database Pin
aratireddy19-Feb-09 18:46
aratireddy19-Feb-09 18:46 
GeneralRe: Restore database Pin
Wendelius19-Feb-09 18:54
mentorWendelius19-Feb-09 18:54 
GeneralRe: Restore database Pin
venu65619-Feb-09 20:15
venu65619-Feb-09 20:15 
QuestionSearch Stored Procedure Pin
Paul McGann19-Feb-09 3:07
professionalPaul McGann19-Feb-09 3:07 
AnswerRe: Search Stored Procedure Pin
Ennis Ray Lynch, Jr.19-Feb-09 4:48
Ennis Ray Lynch, Jr.19-Feb-09 4:48 
AnswerRe: Search Stored Procedure Pin
Mycroft Holmes19-Feb-09 13:39
professionalMycroft Holmes19-Feb-09 13:39 
AnswerRe: Search Stored Procedure Pin
pmpdesign23-Feb-09 18:37
pmpdesign23-Feb-09 18:37 
QuestionLogging report export Pin
Giorgi Dalakishvili18-Feb-09 22:31
mentorGiorgi Dalakishvili18-Feb-09 22:31 
AnswerI don't use the control Pin
Ennis Ray Lynch, Jr.19-Feb-09 7:44
Ennis Ray Lynch, Jr.19-Feb-09 7:44 
GeneralRe: I don't use the control Pin
Giorgi Dalakishvili19-Feb-09 7:49
mentorGiorgi Dalakishvili19-Feb-09 7:49 
GeneralRe: I don't use the control Pin
Mycroft Holmes19-Feb-09 13:34
professionalMycroft Holmes19-Feb-09 13:34 

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.