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 April 25th, 2006, 02:08 PM
Authorized User
 
Join Date: Nov 2003
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Default SSMS-EECreating & Using Stored Procedures:Problem?

Hi all,
I managed to finish the Try It Out stuff in Chapters 4 (VBExpress)and 5 (VWDExpress). Now I came back to do the SSMS-EE Try It Out stuff in Chapter 2 to understand the SQL Server 2005 Express programming. I am doing the "Creating and Using Stored Procedures" on Pages 34-35. I copied the code statements of Steps 1 thru 6 of Try It Out on Pages 34-35 exactly. The execution of the program went well until Step 6: the first code statement of Step 6 gave me a weird BUILD error that said the order of executing the first and second code statements in Step 6 should be reversed!!!??? I do not know how to correct this problem. Any one has this problem? Please help and advise.
Thanks in advance,
Scott Chang

Scott Chang
__________________
Scott Chang
 
Old April 25th, 2006, 08:13 PM
Authorized User
 
Join Date: Jan 2006
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default

The actual error messages are:
Msg 134, Level 15, State 1, Procedure sp_insertRecord, Line 7
The variable name '@procID' has already been declared. Variable names must be unique within a query batch or stored procedure.
Msg 134, Level 15, State 1, Procedure sp_insertRecord, Line 9
The variable name '@procID' has already been declared. Variable names must be unique within a query batch or stored procedure.
Msg 134, Level 15, State 1, Procedure sp_insertRecord, Line 10
The variable name '@procID' has already been declared. Variable names must be unique within a query batch or stored procedure.
Msg 102, Level 15, State 1, Procedure sp_insertRecord, Line 13
Incorrect syntax near 'EXE'.
======================================
Any insights?

Scott Chang







Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with tbh stored procedures! Help CRONER BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 1 August 4th, 2007 12:44 PM
problem with stored procedures robyd SQL Server 2000 1 October 24th, 2003 06:14 AM
problem with stored procedures robyd SQL Server 2000 7 October 23rd, 2003 12:36 PM
recordcount & stored procedures eddiema Classic ASP Databases 2 October 9th, 2003 10:54 AM





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