I have in SQL Anywhere following table:
CREATE TABLE "documents" (
"doc_id" uniqueidentifier NOT NULL DEFAULT NEWID(*),
"doc_description" varchar(50) NOT NULL,
...
PRIMARY KEY("doc_id")
)
I created a Datawindow.
(SQL Statement:
SELECT
"documents"."doc_id",
"documents"."doc_description"
FROM "documents"
WHERE "documents"."doc_id" = :ruid_doc )
I added ruid_doc
as a retrieval argument and type = string.
When i try to save, I get the following error:
SQLSTATE = 07006 [Sybase][ODBC Driver] Cannot convert 0 to uniqueidentifier.
I have tried to use convert
and cast
.
fyi it is possible to do this via edit source.