Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...Just to let you know...what a great site you have. I posted a pretty generic question yesterday and have had 8 responses already, anyway thanks again and keep up the good work..."

Geography

Where in the world do Tek-Tips members come from?
tsquare1975 (IS/IT--Management)
8 May 12 7:30
I am working in ACCPAC 5.0 with SQL-Server Express. My server is getting slow and it takes a lot of time in executing crystal reports and queries. I want to fine tune DataBase just like DB tuning in oracle. plz tell me the tool/procedure to do the job.

Thanks
tuba2007 (Programmer)
8 May 12 8:12
1. Set the recovery model to simple (it should be already), and shrink the log
2. Rebuild your indexes, or do a Dddump/Dbload
vbdbcoder (Programmer)
8 May 12 8:49
1) Database Dump
2) Delete sql database files (mdf and log)
3) Re-create blank databases (company and system)
4) Database load
ramam1 (Programmer)
8 May 12 14:14
First off Rebuild / Reorg / Update statistics on your indexes - the easiest way to do it right is run a script like the following every day/week (no harm in running it daily if you do it off hours).
   http://sqlfool.com/2011/06/index-defrag-script-v4-1/

If that's not enough then add RAM to the DB server.

Based on your question I'd say between these two you're set. If that's not the case you need to bone up a bit on SqlServer so you can figure out why.

 
tuba2007 (Programmer)
8 May 12 14:26
Rebuilding indexes daily is not necessary, even if you're loading thousands of transactions each day.  Once a week is fine, and for small systems once a month.   
ramam1 (Programmer)
8 May 12 20:50
>Rebuilding indexes daily is not necessary

Total agree. That script doesn't rebuild the indexes. It looks at the indexes and chooses based on Microsoft defined best practices whether to update statistics, reorganize, or rebuild on an index by index basis.

 
tsquare1975 (IS/IT--Management)
26 May 12 4:26
I have following error during compilation of script for DB tunning

"Server: Msg 102, Level 15, State 1, Procedure dba_indexDefrag_sp, Line 464
Incorrect syntax near 'OBJECT_ID'."

please help in fixing it...thanx
tuba2007 (Programmer)
26 May 12 8:32
Call the person who wrote the script, it's wrong. And why are you using a script in the first place? Use the SQL studio's UI to build a maintenance plan.
ramam1 (Programmer)
27 May 12 15:03
There are a ton of users of that script so the issue is almost certainly tied to your environment (user permissions, server permissions). I haven't had an issue with it (sqlserver 2008 R2 SP1 developer edition x86, sqlserver 2008 R2 SP1 Standard 64bit)

Have you tried posting your issue on the authors blog?

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Back To Forum

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close