Click here to Skip to main content
15,916,280 members
Home / Discussions / Database
   

Database

 
AnswerRe: datareader Pin
cbhkenshin28-Mar-06 22:06
cbhkenshin28-Mar-06 22:06 
GeneralRe: datareader Pin
sood_is_in28-Mar-06 22:29
sood_is_in28-Mar-06 22:29 
GeneralRe: datareader Pin
cbhkenshin28-Mar-06 23:03
cbhkenshin28-Mar-06 23:03 
QuestionADO.NET Pin
HARI RAGHVENDRA .N.28-Mar-06 19:16
HARI RAGHVENDRA .N.28-Mar-06 19:16 
AnswerRe: ADO.NET Pin
Colin Angus Mackay28-Mar-06 23:01
Colin Angus Mackay28-Mar-06 23:01 
Questionmysql / maxdb Windows 2003 Server x64 Nightmare Pin
SMAction28-Mar-06 13:29
SMAction28-Mar-06 13:29 
Questionhow to get the current row in DataGrid? Pin
Dimkov28-Mar-06 8:53
Dimkov28-Mar-06 8:53 
Questionupdating multiple rows in sqlserver2005 at one hit Pin
sandeep kumar pundhir28-Mar-06 3:48
sandeep kumar pundhir28-Mar-06 3:48 
hi ,

i want ot update multiple rows in the sqlserver2005 database by calling a single procedure from the frontend (ASP.NET). I m passing an xml string to stored procedure for that.

Table name is UnicomUser, UnicomUserId is rowID for which updation is to be done, status is the column to be updated

The procedure written is:

CREATE PROC UnicomUI_DistrubutionGroupAdmin_ApproveUser
@UnicomUserId varchar(500)-- string containing xml tags passed as parameters
AS
DECLARE @hDoc int
exec sp_xml_preparedocument @hDoc OUTPUT,@UnicomUserId
UPDATE UnicomUser
SET
UnicomUser.status = 4
FROM OPENXML(@hDoc,'/items/item')
WITH UnicomUser XMLUser

WHERE UnicomUser.UnicomUserId = XMLUser.UnicomUserId
EXEC sp_xml_removedocument @hDoc

It is executing but not updating.

Another thing, it it runs ok, then will it update all the rows at one hit or cursors is required to navigate thru the rows.

Is there anyother way to achieve the target

thanx

sandeep
Questioninsert data from asp.net page to dabase using c#,ADO.net.. Pin
muthukumaar28-Mar-06 1:42
muthukumaar28-Mar-06 1:42 
AnswerRe: insert data from asp.net page to dabase using c#,ADO.net.. Pin
albCode28-Mar-06 2:33
albCode28-Mar-06 2:33 
QuestionVisio - Reverse Engineering > Code Generation Pin
devvvy28-Mar-06 0:45
devvvy28-Mar-06 0:45 
AnswerRe: Visio - Reverse Engineering > Code Generation Pin
Steve Maier28-Mar-06 8:37
professionalSteve Maier28-Mar-06 8:37 
GeneralRe: Visio - Reverse Engineering > Code Generation Pin
devvvy28-Mar-06 12:25
devvvy28-Mar-06 12:25 
GeneralRe: Visio - Reverse Engineering > Code Generation Pin
Steve Maier28-Mar-06 15:42
professionalSteve Maier28-Mar-06 15:42 
GeneralRe: Visio - Reverse Engineering > Code Generation Pin
devvvy29-Mar-06 4:37
devvvy29-Mar-06 4:37 
QuestionCan i use view Pin
papa198027-Mar-06 22:57
papa198027-Mar-06 22:57 
QuestionCreating a new user in SQL Server 2005 Pin
Brendan Vogt27-Mar-06 22:33
Brendan Vogt27-Mar-06 22:33 
Questiondaab transaction Pin
silverP27-Mar-06 22:08
silverP27-Mar-06 22:08 
QuestionHow to restore Backup file from remote PC to SQL Server? Pin
Sachin Gedam27-Mar-06 17:35
Sachin Gedam27-Mar-06 17:35 
Questionquery send between .net and ms access Pin
agentmikie27-Mar-06 13:03
agentmikie27-Mar-06 13:03 
QuestionHow to get Windows NT Logged User Name using Query Analyzer ****** URGENT Pin
GV Ramana27-Mar-06 8:51
GV Ramana27-Mar-06 8:51 
AnswerRe: How to get Windows NT Logged User Name using Query Analyzer ****** URGENT Pin
Eric Dahlvang29-Mar-06 8:50
Eric Dahlvang29-Mar-06 8:50 
Questionline1 : Incorrect syntax near ','. Pin
Amit R27-Mar-06 5:38
Amit R27-Mar-06 5:38 
AnswerRe: line1 : Incorrect syntax near ','. Pin
rccnh27-Mar-06 9:30
rccnh27-Mar-06 9:30 
AnswerRe: line1 : Incorrect syntax near ','. Pin
rccnh27-Mar-06 9:33
rccnh27-Mar-06 9:33 

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.