Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Convert string to uniqueidentifier

Status
Not open for further replies.

Marat

Programmer
Sep 18, 2000
17
KZ
Hello!
I need to get a result set from the table on SQL Server 7.0 by passing parameter that refers to table's foreign key. Type of foreign key is uniqueidentifier, type of parameter is string. But when parameter is empty string ('') I recive an error 'can't convert string to uniqueidentifier'.

What can I do to SQL Server interprets empty string as NULL?

Thanks
tolgambaev@hotmail.com [sig][/sig]
 
Marat, I've answered this in the VFP forum.
You'll want to pass 'NULL' for null values. [sig]<p>Robert Bradley<br><a href=mailto: > </a><br><a href= - Visual FoxPro Development</a><br> [/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top