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)
 Calculated rows

Author  Topic 

gmusengi
Starting Member

1 Post

Posted - 2004-09-01 : 05:17:22
I would like to know how to create calculated rows in SQL server. I am developing a report writer in vb and I have implemented the report writer using cursors and stored procedures.

This method is slow and resource-hungry because the cursors loop through a temporary table, updating rows based on whether they have formulas or they just require data to be picked up from a transaction table.

The problem is not the calculations, it's writing to the temp table that takes too long.

Is there a faster way of creating calculated rows?

Gilbert Musengi
Solution Developer
Zimbabwe

timmy
Master Smack Fu Yak Hacker

1242 Posts

Posted - 2004-09-01 : 05:32:56
Sounds like you're talking about creating a VIEW. Take a look in BOL to see what can be done with views.
Go to Top of Page
   

- Advertisement -