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 2000 Forums
 SQL Server Development (2000)
 Data Warehousing code question

Author  Topic 

natureman
Starting Member

3 Posts

Posted - 2006-03-27 : 09:50:35
I have a question concerning coding for a data warehouse. We have imports coming in on a regular basis (weekly) that I am archiving to a STAR schema database for warehousing and reporting. Currently all the diff values coming in are put in a big loop, then iterated thru, checking each for existence in its DIM_ID table then assigning a ID depending on whether we have seen it or not then finally placed in a central table. This is a VERY slow process. I was wondering if I went about this the correct way or if anyone has any articles or advice they might help me with.

Thanks!

nr
SQLTeam MVY

12543 Posts

Posted - 2006-03-27 : 09:58:53
Depends on what you are doing.
Maybe you can add the ones that don't exist in tyhe DIM_ID table in one statement then add them all to the central table in the next by joining to the DIM_ID table.

==========================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page

natureman
Starting Member

3 Posts

Posted - 2006-03-27 : 10:10:25
Yeah, I thought about that, thanks for the advice. I am also going to check out any articles. Thanks!
Go to Top of Page
   

- Advertisement -