473,396 Members | 2,154 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Weird ADO / Guid problem ( Syntax error converting...)

Hi,

When calling a stored procedure on a SQL 2005 DB with the managed SQL
ADOprovider I got the following exception:

Syntax error converting character string to uniqueidentifier

when I use the following value for a unqiueidentifier variable
{A00C9D36-CC20-475F-A285-777CC739199C}. If I use another random GUID the
stored procedure executes fine. The value that gives problems, is a key that
was generated by rthe db, so it should be conform to the formatting
restrictions that applies...

Anyone any suggestions ?
Mar 22 '06 #1
1 1859
Please ignore the preceding message, (conversion problem of the empty GUID in
a result list and not on the parameter)

"SealedClassSingleton" wrote:
Hi,

When calling a stored procedure on a SQL 2005 DB with the managed SQL
ADOprovider I got the following exception:

Syntax error converting character string to uniqueidentifier

when I use the following value for a unqiueidentifier variable
{A00C9D36-CC20-475F-A285-777CC739199C}. If I use another random GUID the
stored procedure executes fine. The value that gives problems, is a key that
was generated by rthe db, so it should be conform to the formatting
restrictions that applies...

Anyone any suggestions ?

Mar 22 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Russell | last post by:
I'm having a fit with a query for a range of dates. The dates are being returned from a view. The table/field that they are being selected from stores them as varchar and that same field also...
1
by: amit | last post by:
I am trying to compile the sample program genwin.sqc, using nsqlprep which is used to precompile embedded sql in C. I am getting weird errors and that is because windows.h is included in the...
2
by: Carl | last post by:
Hi, I do have one dataset from SQL server with a field (bound) to Textbox called txtID , this field is of type uniqueidentifier. From the doc, they say the equivalent is GUID in dot net, ...
0
by: John Doe | last post by:
Hi, I have an object getting saved into ViewState. The first (private) field of the object class is of type System.Guid. Upon postback, after clicking an ImageButton in my page, I get an...
3
by: Eagle | last post by:
How do I convert a Guid to a string? I am trying to retrieve a value from a dataview into a string variable: CurrentValue = drv(strColumn) and it works fine until the strColumn is a guid...
1
by: amitbadgi | last post by:
I am gettign this error while converting an asp application to asp.net , its a query syntax error, Exception Details: System.Runtime.InteropServices.COMException: Syntax error in query expression...
20
by: Dennis | last post by:
I have created an access database table in code with the field "KeyId" as a GUID type. What is the SQL syntax for updating a record matching this GUID, i.e., Dim myGUid as New GUID(....) ...
1
by: lists | last post by:
When using the (tbl).field notation for selecting a specific field from a composite field then the query returning the field is executed once per field. An example is giving below. The runtime is...
2
by: Jeff | last post by:
ASP.NET 2.0 I have a GridView on my webpage. As one of its columns I've put a HiddenField into a TemplateField. The porpose of this HiddenField is to hold the ID of the row. Each row in the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.