Click here to Skip to main content
15,891,136 members
Home / Discussions / Database
   

Database

 
GeneralRe: Deploying Stored Procedures in Visual Studio - GRANT EXECUTE Pin
Wendelius13-Feb-09 22:54
mentorWendelius13-Feb-09 22:54 
GeneralRe: Deploying Stored Procedures in Visual Studio - GRANT EXECUTE Pin
Mike Ellison17-Feb-09 5:59
Mike Ellison17-Feb-09 5:59 
GeneralRe: Deploying Stored Procedures in Visual Studio - GRANT EXECUTE Pin
Wendelius17-Feb-09 7:27
mentorWendelius17-Feb-09 7:27 
QuestionSELECT Question Pin
MarkB77711-Feb-09 11:21
MarkB77711-Feb-09 11:21 
AnswerRe: SELECT Question Pin
MarkB77711-Feb-09 11:39
MarkB77711-Feb-09 11:39 
QuestionIs it possible to restore sql2005 backup on sql2000????????? Pin
Aman786Singh11-Feb-09 4:52
Aman786Singh11-Feb-09 4:52 
AnswerRe: Is it possible to restore sql2005 backup on sql2000????????? Pin
Wendelius11-Feb-09 6:29
mentorWendelius11-Feb-09 6:29 
QuestionUsing XQuery to update an XML field in Sql Sever 2005 Pin
Rob Philpott11-Feb-09 3:30
Rob Philpott11-Feb-09 3:30 
XQuery - its a tricky beast.

Have a look at the script below, I'm creating a simple xml document in a single row in a temporary table. What I want to do is update EVERY value element and set it to D. There's three, A, B and C, and I want all three to be updated to D.

The script complains that I'm attempting to update more than one node. Does this mean I have to use some iterative approach to do this? Any ideas anyone?

CREATE TABLE #temp ( myXml xml )

INSERT INTO #temp VALUES ('<document><value>A</value><value>B</value><value>C</value></document>')

select * from #temp
update #temp set myXml.modify('replace value of (//value/text()) with "D"')

drop table #temp


Regards,
Rob Philpott.

AnswerRe: Using XQuery to update an XML field in Sql Sever 2005 Pin
Wendelius11-Feb-09 6:48
mentorWendelius11-Feb-09 6:48 
GeneralRe: Using XQuery to update an XML field in Sql Sever 2005 Pin
Rob Philpott11-Feb-09 22:00
Rob Philpott11-Feb-09 22:00 
GeneralRe: Using XQuery to update an XML field in Sql Sever 2005 Pin
Wendelius12-Feb-09 3:04
mentorWendelius12-Feb-09 3:04 
QuestionMulti Platform Database Pin
urbane.tiger10-Feb-09 14:57
urbane.tiger10-Feb-09 14:57 
AnswerRe: Multi Platform Database Pin
Wendelius10-Feb-09 18:48
mentorWendelius10-Feb-09 18:48 
GeneralRe: Multi Platform Database Pin
urbane.tiger10-Feb-09 23:08
urbane.tiger10-Feb-09 23:08 
GeneralRe: Multi Platform Database Pin
Wendelius11-Feb-09 1:03
mentorWendelius11-Feb-09 1:03 
GeneralRe: Multi Platform Database Pin
urbane.tiger11-Feb-09 1:47
urbane.tiger11-Feb-09 1:47 
Questioninstructor allocation! Pin
Learner52010-Feb-09 2:02
Learner52010-Feb-09 2:02 
AnswerRe: instructor allocation! Pin
J4amieC10-Feb-09 4:11
J4amieC10-Feb-09 4:11 
GeneralRe: instructor allocation Automatically! Pin
Learner52010-Feb-09 4:29
Learner52010-Feb-09 4:29 
GeneralRe: instructor allocation Automatically! Pin
J4amieC10-Feb-09 5:18
J4amieC10-Feb-09 5:18 
GeneralRe: instructor allocation Automatically! Pin
Learner52010-Feb-09 11:03
Learner52010-Feb-09 11:03 
QuestionStored procedure Pin
Karthick_gc10-Feb-09 0:34
Karthick_gc10-Feb-09 0:34 
AnswerRe: Stored procedure Pin
Rupesh Kumar Swami10-Feb-09 1:19
Rupesh Kumar Swami10-Feb-09 1:19 
AnswerRe: Stored procedure Pin
Wendelius10-Feb-09 1:23
mentorWendelius10-Feb-09 1:23 
AnswerRe: Stored procedure Pin
Ashfield10-Feb-09 1:38
Ashfield10-Feb-09 1:38 

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.