Click here to Skip to main content
15,884,473 members
Home / Discussions / Database
   

Database

 
GeneralRe: Varbinary field comparisons Pin
Jon Rista15-Sep-04 7:16
Jon Rista15-Sep-04 7:16 
GeneralRe: Varbinary field comparisons Pin
cpritt15-Sep-04 8:54
cpritt15-Sep-04 8:54 
GeneralRe: Varbinary field comparisons Pin
Jon Rista30-Sep-04 18:52
Jon Rista30-Sep-04 18:52 
GeneralExtreme performance issues (SQL Server 2000/ADO.NET/C#) Pin
Jon Rista14-Sep-04 8:14
Jon Rista14-Sep-04 8:14 
GeneralRe: Extreme performance issues (SQL Server 2000/ADO.NET/C#) Pin
Steven Campbell14-Sep-04 9:34
Steven Campbell14-Sep-04 9:34 
GeneralRe: Extreme performance issues (SQL Server 2000/ADO.NET/C#) Pin
Steven Campbell14-Sep-04 9:35
Steven Campbell14-Sep-04 9:35 
GeneralRe: Extreme performance issues (SQL Server 2000/ADO.NET/C#) Pin
Jon Rista14-Sep-04 13:13
Jon Rista14-Sep-04 13:13 
GeneralRe: Extreme performance issues (SQL Server 2000/ADO.NET/C#) Pin
Steven Campbell14-Sep-04 14:08
Steven Campbell14-Sep-04 14:08 
Usually, if anything, transactions will speed things up. Everything in SQL is a transaction, so it is only the size that differs when you make "large" transactions.

The reason I asked about ADO.NET transactions, is that sometimes it is best to just stick to one type. So, if you are using SQL transactions, then just use that. If you are using ADO.NET transactions, then try and avoid SQL transactions.

Deadlocks can also be a problem when using transactions. Usually though, these will come back as errors. While your queries are running, you can run the command sp_who2 in Query analyzer, to see if any queries are being blocked. This can either be a deadlock situation, or just some other process that is also trying to do stuff.

I don't know how much it would help in this scenario, but for optimizing queries, my best tip is to use the "optimizer hints". For example, DELETE MyTable (TABLOCKX) WHERE X = 1. The TABLOCKX hint tells the query to make a single exclusive lock on the table, rather than using the default page-style locking. In certain queries, this can improve performance tremendously. (It applies to all types of queries, not just deletes).


my blog
GeneralRe: Extreme performance issues (SQL Server 2000/ADO.NET/C#) Pin
Jon Rista14-Sep-04 14:26
Jon Rista14-Sep-04 14:26 
GeneralWorking with a database Pin
Britnt714-Sep-04 2:17
Britnt714-Sep-04 2:17 
QuestionHow to display message when record is not found? Pin
DotNet13-Sep-04 23:00
DotNet13-Sep-04 23:00 
AnswerRe: How to display message when record is not found? Pin
Colin Angus Mackay14-Sep-04 2:52
Colin Angus Mackay14-Sep-04 2:52 
GeneralRe: How to display message when record is not found? Pin
DotNet14-Sep-04 2:59
DotNet14-Sep-04 2:59 
GeneralRe: How to display message when record is not found? Pin
Steven Campbell14-Sep-04 4:35
Steven Campbell14-Sep-04 4:35 
GeneralRe: How to display message when record is not found? Pin
DotNet14-Sep-04 4:56
DotNet14-Sep-04 4:56 
GeneralSQL Server/Access Import Issue Pin
Ossmer13-Sep-04 21:45
Ossmer13-Sep-04 21:45 
GeneralNew data row in data set- without disturbing IIS ! Pin
aBaste13-Sep-04 20:58
aBaste13-Sep-04 20:58 
GeneralRe: New data row in data set- without disturbing IIS ! Pin
Steven Campbell14-Sep-04 8:13
Steven Campbell14-Sep-04 8:13 
GeneralOdbcDataAdapter OR OleDbDataAdapter Pin
Salil Khedkar13-Sep-04 2:54
Salil Khedkar13-Sep-04 2:54 
GeneralRe: OdbcDataAdapter OR OleDbDataAdapter Pin
David Salter13-Sep-04 3:33
David Salter13-Sep-04 3:33 
GeneralRe: OdbcDataAdapter OR OleDbDataAdapter Pin
Salil Khedkar13-Sep-04 20:43
Salil Khedkar13-Sep-04 20:43 
GeneralRe: OdbcDataAdapter OR OleDbDataAdapter Pin
David Salter14-Sep-04 10:59
David Salter14-Sep-04 10:59 
GeneralRe: OdbcDataAdapter OR OleDbDataAdapter Pin
cmk14-Sep-04 15:58
cmk14-Sep-04 15:58 
GeneralRe: OdbcDataAdapter OR OleDbDataAdapter Pin
Salil Khedkar14-Sep-04 20:19
Salil Khedkar14-Sep-04 20:19 
GeneralRe: OdbcDataAdapter OR OleDbDataAdapter Pin
Salil Khedkar14-Sep-04 22:32
Salil Khedkar14-Sep-04 22:32 

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.