Click here to Skip to main content
15,914,642 members
Home / Discussions / Database
   

Database

 
GeneralRe: Looking for good ADO book suggestion Pin
Colin Angus Mackay21-Dec-03 14:50
Colin Angus Mackay21-Dec-03 14:50 
GeneralMicrosoft SQL Server - Bulk Update Lock Pin
CillyMe19-Dec-03 21:36
CillyMe19-Dec-03 21:36 
QuestionWhat's the best Desktop Database for Windows Forms Apps? Pin
bJoeyLouie19-Dec-03 8:51
bJoeyLouie19-Dec-03 8:51 
AnswerRe: What's the best Desktop Database for Windows Forms Apps? Pin
SimonS26-Dec-03 21:19
SimonS26-Dec-03 21:19 
GeneralRe: What's the best Desktop Database for Windows Forms Apps? Pin
Mike Dimmick5-Jan-04 5:50
Mike Dimmick5-Jan-04 5:50 
GeneralRe: What's the best Desktop Database for Windows Forms Apps? Pin
DaveMcL5-Jan-04 14:02
DaveMcL5-Jan-04 14:02 
GeneralQuery Optimization - MCAD question. Pin
CillyMe18-Dec-03 4:09
CillyMe18-Dec-03 4:09 
GeneralRe: Query Optimization - MCAD question. Pin
Jeff Varszegi18-Dec-03 14:49
professionalJeff Varszegi18-Dec-03 14:49 
I'm not an expert DBA, just a programmer with some decent database experience, mostly from the design side, but here's my take:

Question 1:

Can a clustered index be fragmented? I always thought that a clustered index was special because the physical ordering of the rows in the data pages IS the index order. It can be expensive for inserts in the middle (think of inserting in the middle of an array-- gotta shift stuff) but it means that you have fewer levels of index to wade through to reach a record, and also that the index doesn't get fragmented.

Now, if the server didn't realize that the pages containing certain values were being accessed very frequently, it wouldn't always cache the correct things in memory AND it wouldn't be able to figure out the best way to go about fetching certain rows. You get the idea.

Question 2:

That's some freaky sh*t there. I've never used a LOOP join (and I don't even remember studying it, either), and I use SQL Server every day now to good effect. Two other SQL Server DBAs I know have always said that it's best to let the query optimizer do its thing, and I've always done that.

I am studying Oracle now, and it has much richer hint support. A colleague who has Oracle experience says that hint knowledge is essential for an Oracle DBA. In SQL Server, I've always just found it most valuable to keep a clear head when constructing queries, construct indexes correctly, keep statistics up to date, etc. About the freakiest I've gotten in my quest for performance has been to use DBCC PINTABLE in a few cases, but I think that all such tricks are rendered of negligible value in a database that's well-constructed and set up on a database that has the disks set up correctly, enough RAM, etc.

Question 3:

You got me there. I agree with you-- I've never learned how to use index hints in SQL Server, and I don't even remember seeing anything about 'em in the docs.

Regards,

Jeff Varszegi
GeneralRe: Query Optimization - MCAD question. Pin
CillyMe18-Dec-03 16:00
CillyMe18-Dec-03 16:00 
GeneralRe: Query Optimization - MCAD question. Pin
Jeff Varszegi18-Dec-03 17:00
professionalJeff Varszegi18-Dec-03 17:00 
GeneralRe: Query Optimization - MCAD question. Pin
CillyMe18-Dec-03 22:04
CillyMe18-Dec-03 22:04 
GeneralRe: Query Optimization - MCAD question. Pin
Jeff Varszegi19-Dec-03 6:12
professionalJeff Varszegi19-Dec-03 6:12 
GeneralRe: Query Optimization - MCAD question. Pin
Jeff Varszegi19-Dec-03 6:17
professionalJeff Varszegi19-Dec-03 6:17 
GeneralRe: Query Optimization - MCAD question. Pin
CillyMe19-Dec-03 15:42
CillyMe19-Dec-03 15:42 
GeneralRe: Query Optimization - MCAD question. Pin
Mike Dimmick5-Jan-04 6:20
Mike Dimmick5-Jan-04 6:20 
GeneralSqlException in ADO.NET Pin
Y. Liu18-Dec-03 4:02
Y. Liu18-Dec-03 4:02 
GeneralRe: SqlException in ADO.NET Pin
Jeff Varszegi18-Dec-03 14:50
professionalJeff Varszegi18-Dec-03 14:50 
GeneralRe: SqlException in ADO.NET Pin
Y. Liu19-Dec-03 4:36
Y. Liu19-Dec-03 4:36 
GeneralRe: SqlException in ADO.NET Pin
Jeff Varszegi19-Dec-03 5:43
professionalJeff Varszegi19-Dec-03 5:43 
GeneralRe: SqlException in ADO.NET Pin
SimonS24-Dec-03 8:31
SimonS24-Dec-03 8:31 
GeneralDataSet Pin
Large Data File17-Dec-03 20:40
Large Data File17-Dec-03 20:40 
GeneralRe: DataSet Pin
Not Active18-Dec-03 2:53
mentorNot Active18-Dec-03 2:53 
GeneralSql question Pin
pankajdaga17-Dec-03 7:18
pankajdaga17-Dec-03 7:18 
GeneralRe: Sql question Pin
Not Active17-Dec-03 8:22
mentorNot Active17-Dec-03 8:22 
GeneralRe: Sql question Pin
pankajdaga17-Dec-03 9:24
pankajdaga17-Dec-03 9:24 

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.