Retrieve calculated field in SQL SERVER

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
smelchi
Posts: 15
Joined: Fri 18 Jun 2010 16:37

Retrieve calculated field in SQL SERVER

Post by smelchi » Thu 18 Jun 2015 21:52

Which is the better way to retrive TOTAL value ( calculated field in SQL SERVER 2005 or greater)?


CREATE TABLE [dbo].[testcalc] (
[NUMBER] int IDENTITY(1,1) NOT NULL ,
[QTY] int NULL ,
[VALUE] decimal(12,2) NULL ,
[TOTAL] AS QTY * VALUE PERSISTED ,
PRIMARY KEY ([NUMBER])
)
GO

Thanks for helping

azyk
Devart Team
Posts: 1119
Joined: Fri 11 Apr 2014 11:47
Location: Alpha Centauri A

Re: Retrieve calculated field in SQL SERVER

Post by azyk » Fri 19 Jun 2015 13:22

Please describe in more details the case, when you want to use calculated fields of SQL Server in UniDAC. If you have a small test sample for such case, please send it to andreyz*devart*com .

Post Reply