Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Does Sql Server recognize Dsum, Dcount, Dmax, Dmin functions?...

1,202 views
Skip to first unread message

Effie Ladovrechis

unread,
Jun 26, 1998, 3:00:00 AM6/26/98
to

Does Sql Server understand these d-functions. If not, then what can I do.
Our code is written in VB and our database system is changing from Microsoft
Access to Sql Server. I use these functions throughout my queries and I'm
having trouble with them in Sql Server.

What can we do?

Roy Harvey

unread,
Jun 26, 1998, 3:00:00 AM6/26/98
to

Effie,

>Does Sql Server understand these d-functions.

No.

>If not, then what can I do.

I don't know what Dsum and the other do, but the sound similar to the
SUM, COUNT, MAX and MIN functions that SQL Server does support. See
the Books On Line, Transact-SQL Reference, under F for Functions.

Roy

Gianluca Hotz

unread,
Jun 29, 1998, 3:00:00 AM6/29/98
to

Effie Ladovrechis <ef...@gsi.ca> scritto nell'articolo
<uJSn3VT...@uppssnewspub04.moswest.msn.net>...
> Does Sql Server understand these d-functions. If not, then what can I
do.

> Our code is written in VB and our database system is changing from
Microsoft
> Access to Sql Server. I use these functions throughout my queries and
I'm
> having trouble with them in Sql Server.
>
> What can we do?
>
SQL Server does not have any Domain Aggregate Functions.
You should replace those functions with plain SQL.

For example a

DSUM("[Freight]", "Orders", "[ShipCountry] = 'UK'")

is converted to a plain

SELECT SUM(Freight) FROM Orders WHERE ShipCountry = 'UK'

Best regards,
--
Gianluca Hotz __
Technical Service Manager at Alphasys srl / \/ /
MCP Windows & MCP + MVP SQL Server / /\/ /
Currently working for Ekar spa \ \/ /\
http://ghotz.home.ml.org \__/\ \


0 new messages