CONVERT(VARCHAR(x), y)

Posts   
 
    
DvK
User
Posts: 323
Joined: 22-Mar-2006
# Posted on: 25-Oct-2006 23:08:58   

Hi Frans,

As I read above, working with the CONVERT sql-function in combi with DbFunctionCall, is/was a little problematic. Is this already solved in the current release ?

grtz, Danny

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 26-Oct-2006 09:31:17   

Try to derive from the DBFunctionCall class and override the ToQueryText method.

DvK
User
Posts: 323
Joined: 22-Mar-2006
# Posted on: 26-Oct-2006 14:42:12   

OK, so this not possible in a standard way using the DbFunctionCall class ? What I meant with CONVERT(VARCHAR(x), y) was a Select statement like :

SELECT CONVERT(BIGINT, dbo.Transaction.TransactionId) AS Id FROM dbo.Transaction

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 26-Oct-2006 16:11:46   

I don't think it's possible in the time being with the use of DBFunctionCall.