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
 General SQL Server Forums
 New to SQL Server Programming
 Copy part of the sql db to another sql db

Author  Topic 

kaushals
Starting Member

5 Posts

Posted - 2011-01-17 : 16:17:55
Hi,

I have a sql server which have almost 100 tables. I am planning to create another database for reporting purpose. I will dump data everynight from production server to reporting server but I will not dump all the data. I will run queries to get the calculated data (for example, instead of salesprice*qty, I will have a column called total) and dump those data in to the new database. I was wondering if there is any utility to run the queries automatically everynight and dump the results of queries into the new database?

Thanks in advance.

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2011-01-17 : 16:41:45
Sounds like you need a data warehouse. Any experience with Analysis Services?

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

kaushals
Starting Member

5 Posts

Posted - 2011-01-17 : 17:32:28
[quote]Originally posted by tkizer

Sounds like you need a data warehouse. Any experience with Analysis Services?

I am virtually a newbie for sql server except writing sql to pull oe insert data. I don't have any experience with Analysis service but if that works then I will have to learn. I was planning to write c# program to pull data and dump into new database but i was looking for something built-in for sql server so I don't have to write 100's of line of code. Thanks for the reply.
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2011-01-17 : 17:43:46
Analysis Services is built-in. You will likely need to spend quite a bit of time learning it though. It isn't something that you just pickup overnight. Perhaps hire a consultant to get you going on this task.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

Sachin.Nand

2937 Posts

Posted - 2011-01-18 : 01:41:03
I think you should rather learn Integration Services than Analysis Services as you need some flexibility in dumping the data to the data warehouse.

How are you planning to query the warehouse data ? TSQL or MDX ?

PBUH

Go to Top of Page
   

- Advertisement -