Click here to Skip to main content
15,906,333 members
Home / Discussions / Database
   

Database

 
GeneralRe: How to convert diagrams to SqlServer 2005? Pin
Reza Raad17-Jul-06 0:03
Reza Raad17-Jul-06 0:03 
QuestionWhy can't use 2 DataReader with same connection Pin
Heinz_16-Jul-06 21:41
Heinz_16-Jul-06 21:41 
AnswerRe: Why can't use 2 DataReader with same connection Pin
Colin Angus Mackay16-Jul-06 23:00
Colin Angus Mackay16-Jul-06 23:00 
GeneralRe: Why can't use 2 DataReader with same connection Pin
Heinz_17-Jul-06 9:26
Heinz_17-Jul-06 9:26 
GeneralRe: Why can't use 2 DataReader with same connection Pin
Colin Angus Mackay17-Jul-06 9:32
Colin Angus Mackay17-Jul-06 9:32 
GeneralTo clarify Pin
Ennis Ray Lynch, Jr.17-Jul-06 9:37
Ennis Ray Lynch, Jr.17-Jul-06 9:37 
GeneralRe: To clarify Pin
Colin Angus Mackay17-Jul-06 11:01
Colin Angus Mackay17-Jul-06 11:01 
GeneralRe: To clarify [modified] Pin
Heinz_18-Jul-06 8:25
Heinz_18-Jul-06 8:25 
Understood.

I was trying to use only one connection to gain performance but now i replaced the second connection with a subquery in a command of the original connection, check this tasty and parameter rich query:

"select SUM(t1.total - COALESCE(t2sum,0)) from ventas as t1 left join (select venta, SUM(cantidad_pagada) as t2sum from pagos_ventas where fecha_pago='" + CDC.Global.SetDBdate(hoy) + "' and metodo_pago<>1 and metodo_pago<>7 group by venta) as t2 on t2.venta=t1.id where t1.nula=0 and t1.pagada=0 and t1.fecha='" + CDC.Global.SetDBdate(hoy) + "'"

Bye.

-- modified at 15:29 Tuesday 18th July, 2006
GeneralRe: To clarify Pin
Colin Angus Mackay18-Jul-06 12:31
Colin Angus Mackay18-Jul-06 12:31 
GeneralRe: To clarify Pin
Heinz_18-Jul-06 13:59
Heinz_18-Jul-06 13:59 
AnswerRe: Why can't use 2 DataReader with same connection Pin
sampathkumarg19-Jul-06 8:34
sampathkumarg19-Jul-06 8:34 
QuestionSave Changes Pin
slSoftware16-Jul-06 21:25
slSoftware16-Jul-06 21:25 
AnswerRe: Save Changes Pin
Colin Angus Mackay16-Jul-06 22:58
Colin Angus Mackay16-Jul-06 22:58 
QuestionSQL Server Management Studio Express and Locks Pin
Kuira16-Jul-06 14:07
Kuira16-Jul-06 14:07 
AnswerRe: SQL Server Management Studio Express and Locks Pin
Frank Kerrigan18-Jul-06 1:59
Frank Kerrigan18-Jul-06 1:59 
Questioncorrupted database [modified] Pin
illusionFinder16-Jul-06 3:55
illusionFinder16-Jul-06 3:55 
AnswerRe: corrupted database Pin
Paul Conrad17-Jul-06 8:08
professionalPaul Conrad17-Jul-06 8:08 
AnswerRe: corrupted database Pin
ra ra ra ra17-Jul-06 22:42
ra ra ra ra17-Jul-06 22:42 
QuestionReturn 0 when no rows [modified] Pin
Heinz_15-Jul-06 13:49
Heinz_15-Jul-06 13:49 
AnswerRe: Return 0 when no rows Pin
ra ra ra ra16-Jul-06 23:26
ra ra ra ra16-Jul-06 23:26 
GeneralRe: Return 0 when no rows [modified] Pin
Heinz_17-Jul-06 9:30
Heinz_17-Jul-06 9:30 
GeneralRe: Return 0 when no rows Pin
Ennis Ray Lynch, Jr.17-Jul-06 12:42
Ennis Ray Lynch, Jr.17-Jul-06 12:42 
GeneralRe: Return 0 when no rows [modified] Pin
ra ra ra ra17-Jul-06 22:22
ra ra ra ra17-Jul-06 22:22 
GeneralRe: Return 0 when no rows [modified] Pin
Heinz_18-Jul-06 8:27
Heinz_18-Jul-06 8:27 
Questioncan we create stored procedures in MS Access database Pin
ChennaiBabu14-Jul-06 21:15
ChennaiBabu14-Jul-06 21:15 

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.