SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 Transact-SQL (2008)
 MS SQL Speedproblem with update.
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

amun4
Starting Member

2 Posts

Posted - 10/29/2013 :  03:25:42  Show Profile  Reply with Quote
I just change an application from Firebird database to mssql 2008.
Generally mssql ist faster than Firebird.
But i have problems with some transact codes.

I have a table with 100000 records and 100 fields.

Here my problem :

update B_BT set BT_THM_AV=0

Firebird needs 2 seconds
MS SQL needs 67 seconds


Why?
Do I have to change the instruction of the codeline?

visakh16
Very Important crosS Applying yaK Herder

India
52325 Posts

Posted - 10/29/2013 :  03:36:02  Show Profile  Reply with Quote
does table have any indexes?

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/
https://www.facebook.com/VmBlogs
Go to Top of Page

amun4
Starting Member

2 Posts

Posted - 10/29/2013 :  03:58:16  Show Profile  Reply with Quote
Yes. the table has many indexes
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

India
52325 Posts

Posted - 10/29/2013 :  05:14:41  Show Profile  Reply with Quote
too many indexes can also be a problem when doing DML operations
See execution plan and check what are the costly steps

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/
https://www.facebook.com/VmBlogs
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.06 seconds. Powered By: Snitz Forums 2000