Wrox Programmer Forums
|
BOOK: Wrox's SQL Server 2005 Express Edition Starter Kit ISBN: 978-0-7645-8923-2
This is the forum to discuss the Wrox book Wrox's SQL Server 2005 Express Edition Starter Kit by Rajesh George, Lance Delano; ISBN: 9780764589232
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Wrox's SQL Server 2005 Express Edition Starter Kit ISBN: 978-0-7645-8923-2 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 1st, 2006, 01:55 PM
Authorized User
 
Join Date: Nov 2003
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter 2 Database "testDb" in SSMS: Table & SP

Hi all,
1) I tried to learn the stuffs of Try It Out on Pages 32-33 (Using SELECT, WHERE, INSERT, DELETE and UPDATE) and Pages 34-35 (Creating and Using Stored Procedures) after I created the database "testDb".
When I created these 2 sets of Try It Out code statements for the first time, I got the output nicely as shown Figure 2-6 in the Book.
But after few days, I re-executed these 2 sets of the code statement and I got some weird Build errors that I do not have any ideas what they means. Did any one have the same thing happened to you? Can you tell me whether these 2 sets of code statements can be used for the one-time only or what!!??
2) I read "SQL Server Express Samples Overview (from http://download.microsoft.com/...) about AdvantureWorks Database. I have no ideas what it is all about and how to proceed to do the first sample in the 'master' database!!?? I am completely lost in this chapter and I do not know where and how to get my learning track right. Before I tried to do the Chapter 2, I touched the stuffs of Stored Proicedues in Microsoft Office Access 2003 a little bits and got lost there too.
Please help and advise.
Thanks,
Scott Chang

Scott Chang
__________________
Scott Chang
 
Old May 2nd, 2006, 03:12 PM
Authorized User
 
Join Date: Dec 2005
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Scott,

Were the build errors you got:
 "Msg 213, Level 16, State 1, Procedure sp_insertRecord, Line 1
Insert Error: Column name or number of supplied values does not match table definition."

If so then this was because on Step 1 of the Try It Out on page 36 we added a new column (field) to the Inventory table before you tried to run the Stored Procedures for the second time.

sp_updateRecord and sp_getRecord will work but not sp_insertRecord will fail.

Weeble


Growilng old is compulsory! Growing up is optional!





Similar Threads
Thread Thread Starter Forum Replies Last Post
ERROR 1146: Table 'testdb.1' doesn't exist huckkeon MySQL 7 September 25th, 2006 08:15 AM
Trigger & SP (Table Updates) Neal SQL Server 2000 6 April 25th, 2006 09:45 AM





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