Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Search Forums
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
Welcome to the p2p.wrox.com Forums.

You are currently viewing the section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Showing results 1 to 4 of 4
Search took 0.00 seconds.
Search: Posts Made By: sirmilt
Forum: BOOK: Beginning Microsoft SQL Server 2008 Programming ISBN: 978-0-470-25701-2 November 30th, 2010, 12:12 PM
Replies: 6
Views: 1,437
Posted By sirmilt
@@IDENTITY

I Think that we are almost home, and do appreciate your help. Here's the code I added:

oData.SQL = "SELECT @@IDENTITY FROM tblOnLoan"
oData.OpenConnection()
oData.cmd.ExecuteScalar()...
Forum: BOOK: Beginning Microsoft SQL Server 2008 Programming ISBN: 978-0-470-25701-2 November 26th, 2010, 07:15 PM
Replies: 6
Views: 1,437
Posted By sirmilt
@@IDENTITY

Thank you, for the speedy reply.
Just to be sure that I understand what you are suggesting:
I am to remove the line of code "SET @LoanID =@@IDENTITY"
and the VALUES parameter value "@@IDENTITY"...
Forum: BOOK: Beginning Microsoft SQL Server 2008 Programming ISBN: 978-0-470-25701-2 November 26th, 2010, 04:30 PM
Replies: 6
Views: 1,437
Posted By sirmilt
When I added this line of code to Visual Basic: ...

When I added this line of code to Visual Basic:

oData.cmd.Parameters.AddWithValue("@LoanID", intBookLoanID)

I get the error "Cannot insert explicit value for identity column in table...
Forum: BOOK: Beginning Microsoft SQL Server 2008 Programming ISBN: 978-0-470-25701-2 November 26th, 2010, 03:22 PM
Replies: 6
Views: 1,437
Posted By sirmilt
@@Identity Chapter 11

I have beentrying to get this to work in a program I'm writing for a solid week with no success, I tried to follow the examplee in chapter 11 with no success. Any help would be reallly appreciated.
...
Showing results 1 to 4 of 4

 


All times are GMT -4. The time now is 12:23 PM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.