On 10/18/2012 9:26 AM, Stephen Russell wrote:
On Wed, Oct 17, 2012 at 9:47 PM, MB Software Solutions, LLC
<[email protected]> wrote:
On 10/17/2012 10:27 PM, Stephen Russell wrote:

And that UDF() is not a good idea.  You should just ask for it
straight to the @PK and then use it in the next insert statement.



Send me the correct code, please...thanks!
------------------------------

This is a three table update using C# / Entity Framework



<snipped>

I was thinking you were going to tell me something I could use in the SQL Server Mgmt Studio query window!

I need to know how to write an insert statement with a GUID value for the PK field. Recall the error I got yesterday: "Conversion failed when converting from a character string to uniqueidentifier."



--
Mike Babcock, MCP
MB Software Solutions, LLC
President, Chief Software Architect
http://mbsoftwaresolutions.com
http://fabmate.com
http://twitter.com/mbabcock16

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to