Ask a Question related to Coldfusion Database Access, Design and Development.
-
DeliK #1
GUID and CFProcParam
I have a new client who is using GUID's as the primary key of their Customer
table rather than the integer that most of my other clients use. When passing
a value for one of these GUID's into a SQL Server stored procedure from
ColdFusion, what datatype (cfsqltype) should I use? Is this what
cf_sql_idstamp would be used for? I can't seem to find an explanation of what
the different cfsqltypes mean anywhere. Most are pretty self explanatory, but
others?
Thanks in advance for any light you can shed on this.
DeliK Guest
-
cfprocparam and ORACLE
I need help with an error I am getting; I am calling an Oracle DB procedure in a package(people) PROCEDURE version_info (version OUT VARCHAR2)... -
CFProcParam - MX7
Well, you don't have to abandon using them if you don't mind providing the unused parameters with null="no". I've been doing this for years (since... -
Problem with cfsqltype attribute of cfprocparam
I am using Microsoft SQL server 2000. The cfsqltype attribute of cfprocparam supports the following as shown below (extract from in its... -
Max number of decimal places in cfprocparam?
It appears that the maximum number of decimal places that cfprocparam will return is 12, using this syntax: <cfprocparam type="Out"... -
Retrieving GUID from DB2 UDB
Bill Homan <member35043@dbforums.com> wrote in message news:<3203554.1060104571@dbforums.com>... What is actually in the CHAR(16) FOR BIT DATA... -
sthompson #2
Re: GUID and CFProcParam
Use cf_sql_char with a max length of 36. GUIDs are 32 characters with 4 hyphens.
I found the following chart awhile back, it's very handy. It's a cross
reference of cf_sql_types to various database data types.
[url]http://www.blinex.com/~sam/CF_SQL_TYPES.cfm[/url]
sthompson Guest
-
DeliK #3
Re: GUID and CFProcParam
Thank you so much for the reply and especially for the chart! That will certainly come in handy!
DeliK Guest
-
mxstu #4
Re: GUID and CFProcParam
sthompson,
Nice reference table. The sql server entries for cf_sql_char and
cf_sql_idstamp look the same. Have you tried using cf_sql_idstamp instead
cf_sql_char ... and if you have ....any problems?
mxstu Guest
-
sthompson #5
Re: GUID and CFProcParam
I haven't done anything with cf_sql_idstamp. We've just always used cf_sql_char. I guess just give it a try. If it blows up, then I would recommend not using it :D.
sthompson Guest
-
mxstu #6
Re: GUID and CFProcParam
Perhaps that's why the idstamp type is mentioned so infrequently ;)
Definitely let me know. I don't have access to sql server db at the moment, but I'm curious about the results. Thanks!
mxstu Guest



Reply With Quote

