Hi wondering if anyone can help.
What i'm trying to do is get a company from a MSSQL database with the
COMPANYNO which is a 'uniqueidentifi er'. Then with this COMPANYNO I want to
reference it to another table (on same database) to extract more details.
When I get the company name and company no the company no outputs like...
631800010000000 000000000000000 00
In basic terms I'm only getting it like...
$query = "SELECT COMPANYNO FROM CONTACT";
Now I know this isn't a 16 byte binary - is it?
I wanted to reference another table so I...
$query = "SELECT ACTIVITYHEADERN O,COMPANYNO FROM ACTIVITYHEADER WHERE
COMPANYNO='$com panyno'";
And of course this wouldn't work and the error was:
Warning: Sybase message: Syntax error converting from a character string to
uniqueidentifie r.
I need help with this as binary/hex sometimes goes over my head. If anyone
can point me in the right direction that would be great. I've had this same
problem before and did a crappy 'work around' - now i've realised why I did
the work around!
Thanks a lot for ANY help at all :)
(if nothing makes sense please say so :))
Darren
What i'm trying to do is get a company from a MSSQL database with the
COMPANYNO which is a 'uniqueidentifi er'. Then with this COMPANYNO I want to
reference it to another table (on same database) to extract more details.
When I get the company name and company no the company no outputs like...
631800010000000 000000000000000 00
In basic terms I'm only getting it like...
$query = "SELECT COMPANYNO FROM CONTACT";
Now I know this isn't a 16 byte binary - is it?
I wanted to reference another table so I...
$query = "SELECT ACTIVITYHEADERN O,COMPANYNO FROM ACTIVITYHEADER WHERE
COMPANYNO='$com panyno'";
And of course this wouldn't work and the error was:
Warning: Sybase message: Syntax error converting from a character string to
uniqueidentifie r.
I need help with this as binary/hex sometimes goes over my head. If anyone
can point me in the right direction that would be great. I've had this same
problem before and did a crappy 'work around' - now i've realised why I did
the work around!
Thanks a lot for ANY help at all :)
(if nothing makes sense please say so :))
Darren
Comment