Ask a Question related to Coldfusion Database Access, Design and Development.
-
wah222 #1
sp using a uniqueidentifier
when I try to run a stored procedure which contains a select statement I get
[Macromedia][SQLServer JDBC Driver][SQLServer]Syntax error converting from a
character string to uniqueidentifier.
I have tried casting the past param, setting it to CF_SQL_VARCHAR,
CF_SQL_IDSTAMP, ive tried with and without single quotes and still get the same
error. Any help on the correct method of doing this would be helpful.
WAH
wah222 Guest
-
uniqueidentifier
Hi, I have different attributes with the data types as follows: EmpID uniqueidentifier EmpName Char EmpSal Int I am not... -
How to use uniqueidentifier fields a return dataset from a webserv
I have made a web service that returns a typed dataset that includes a uniqueidentifier field. When I import this web service into visual studio... -
Is it possible to use uniqueidentifier in a web service type Datas
I have made a web service that returns a typed dataset that includes a uniqueidentifier field. When I import this web service into visual studio... -
uniqueidentifier-0.2
Hi Everyone Has anyone been able to compile uniqueidentifier-0.2 on the openBSD 3.6 environment with Postgresql 7.4.3? We need to use this... -
#24752 [NEW]: unknown column type "uniqueidentifier", type 35
From: s dot sonnenberg at coolspot dot de Operating system: Linux PHP version: 4.3.2 PHP Bug Type: MSSQL related Bug... -
mxstu #2
Re: sp using a uniqueidentifier
It works fine for me. Is the procedure parameter type "uniqueIdentifier" or
"char"? If it is "char" did you make sure the length is long enough?
create procedure testUUID (@uuid uniqueIdentifier)
as
begin
select titleColumn from yourTable where uuidColumn = @uuid
end
go
<cfset yourUUID = "6F9619FF-8B86-D011-B42D-00C04FC964FF">
<cfstoredproc procedure="testUUID" datasource="#yourDSN#">
<cfprocparam dbvarname="@uuid" cfsqltype="CF_SQL_IDSTAMP" type="in"
value="#yourUUID#">
<cfprocresult name="results">
</cfstoredproc>
<cfdump var="#results#">
mxstu Guest



Reply With Quote

