Click here to Skip to main content
15,918,258 members
Home / Discussions / Database
   

Database

 
Questionado.net Pin
ravikiranreddydharmannagari22-May-06 23:22
ravikiranreddydharmannagari22-May-06 23:22 
AnswerRe: ado.net Pin
dayakar_dn23-May-06 1:49
dayakar_dn23-May-06 1:49 
Questionhow to make one column as a index Pin
dayakar_dn22-May-06 20:58
dayakar_dn22-May-06 20:58 
AnswerRe: how to make one column as a index Pin
Eric Dahlvang23-May-06 9:21
Eric Dahlvang23-May-06 9:21 
QuestionAction Queries [modified] Pin
xfitr222-May-06 5:31
xfitr222-May-06 5:31 
AnswerRe: Action Queries [modified] Pin
Colin Angus Mackay22-May-06 6:49
Colin Angus Mackay22-May-06 6:49 
GeneralRe: Action Queries [modified] Pin
xfitr222-May-06 7:31
xfitr222-May-06 7:31 
QuestionSQL Performance problem need help Pin
Pallav Deshmukh22-May-06 3:32
Pallav Deshmukh22-May-06 3:32 
I have a sql problem.

suppose we have two tables ex. A and B which have A1,A2,A3 column and B has B1,B2,B3 Column A1 and B1 are primary key and B2 is foreign key of A(A1) Now B3 has some values in it which i wanted to map with column A3.

means i wanted to update column A3 as same as B3 where we have A1=B2 relationship. can we write this in a single sql statement. what i am doing is writing a cursor on table A which one by one retrieve value from table B(B3) and update table A(A3). But problem is that this process is very slow and lock the table at the time it perform operation so all other request will have to wait until this process terminate. otherwise some times sqlserver detects it as a deadlock condition and unconditionally terminate process. So my aim is improve performace of all such processes.
Error :

Transaction (Process ID 773) was deadlocked on lock | communication buffer resources with another process and has been chosen as the deadlock victim. Rerun the transaction.

I wanted some thing like as easy as
update A set A.a3= B.b3 where A.a1 =B.b2
which does not work in this case.

Table has bulk amount of data i. e. around 10-15 lacks records. I need some alternative solution for many of such process in which i have used same logic am working on. also the database is of prouction server so I cannot kept it busy for long time.



Pallav Deshmukh
AnswerRe: SQL Performance problem need help Pin
woudwijk22-May-06 5:23
woudwijk22-May-06 5:23 
GeneralRe: SQL Performance problem need help Pin
Pallav Deshmukh22-May-06 20:15
Pallav Deshmukh22-May-06 20:15 
AnswerRe: SQL Performance problem need help Pin
Colin Angus Mackay22-May-06 5:24
Colin Angus Mackay22-May-06 5:24 
GeneralRe: SQL Performance problem need help Pin
Pallav Deshmukh22-May-06 20:16
Pallav Deshmukh22-May-06 20:16 
QuestionAccess Database Manager Pin
Kschuler22-May-06 3:29
Kschuler22-May-06 3:29 
AnswerRe: Access Database Manager Pin
Eric Dahlvang22-May-06 8:08
Eric Dahlvang22-May-06 8:08 
GeneralRe: Access Database Manager Pin
Paul Conrad22-May-06 8:23
professionalPaul Conrad22-May-06 8:23 
QuestionRe: Access Database Manager Pin
Kschuler22-May-06 9:10
Kschuler22-May-06 9:10 
QuestionGroup by date Pin
Sasuko22-May-06 3:25
Sasuko22-May-06 3:25 
AnswerRe: Group by date Pin
Kschuler22-May-06 3:36
Kschuler22-May-06 3:36 
GeneralRe: Group by date Pin
Sasuko22-May-06 3:49
Sasuko22-May-06 3:49 
GeneralRe: Group by date Pin
Kschuler22-May-06 4:24
Kschuler22-May-06 4:24 
AnswerRe: Group by date Pin
Colin Angus Mackay22-May-06 5:21
Colin Angus Mackay22-May-06 5:21 
AnswerRe: Group by date Pin
Eric Dahlvang22-May-06 8:40
Eric Dahlvang22-May-06 8:40 
GeneralRe: Group by date Pin
Colin Angus Mackay22-May-06 11:28
Colin Angus Mackay22-May-06 11:28 
QuestionRe: Group by date Pin
Eric Dahlvang22-May-06 11:38
Eric Dahlvang22-May-06 11:38 
AnswerRe: Group by date Pin
Colin Angus Mackay22-May-06 12:10
Colin Angus Mackay22-May-06 12:10 

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.