Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2008 Forums
 Transact-SQL (2008)
 parsing in .NET vs parsing in SQL

Author  Topic 

mike123
Master Smack Fu Yak Hacker

1462 Posts

Posted - 2010-06-06 : 05:32:20
I am wondering if anyone has an idea which is faster ?


I am designing an app that will have millions of rows inserted and then also values based on parsed information....

should I parse it in the .NET code, or on the SQL for better performance?

Any ideas ? any input is greatly appreciated !


thanks!
Mike

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2010-06-06 : 06:36:58
Again, it depends on the data.
If the data is XML, using SPARSE columns and a column set is really fast! I insert about 250,000 records using INSERT ... SELECT within 1 minute using SPARSE columns and a column set.



N 56°04'39.26"
E 12°55'05.63"
Go to Top of Page
   

- Advertisement -