Wrox Programmer Forums
Go Back   Wrox Programmer Forums > SQL Server > SQL Server 2000 > SQL Server 2000
SQL Server 2000 General discussion of Microsoft SQL Server -- for topics that don't fit in one of the more specific SQL Server forums. version 2000 only. There's a new forum for SQL Server 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2000 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 10th, 2006, 03:31 PM
Registered User
Join Date: Apr 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to garrydawkins Send a message via Yahoo to garrydawkins
Default Line 6: Incorrect syntax near

Can You see it, I cant see any problem.

-- =============================================
-- Create temp table
-- =============================================
CREATE TABLE #temp_table_get_work_requ (
LOG_PK int
LOG_REQUESTOR varchar(25)
LOG_CHAR_60_1 varchar(60)
LOG_CHAR_30_4 varchar(30)
LOG_REQUEST varchar(2000)
LOG_STATUS varchar(45)
LOG_TYPE varchar(45)

Garry Dawkins
Old April 10th, 2006, 03:34 PM
Registered User
Join Date: Apr 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts

You missed the ,

Old April 10th, 2006, 03:39 PM
Friend of Wrox
Join Date: Jun 2003
Posts: 839
Thanks: 0
Thanked 1 Time in 1 Post

Each of the column definition clauses in your CREATE TABLE statement must be separated from each other by a comma...

Jeff Mason
Custom Apps, Inc.

Similar Threads
Thread Thread Starter Forum Replies Last Post
Line 1: Incorrect syntax near ')'. how to fix it khaink ASP.NET 1.0 and 1.1 Basics 1 September 20th, 2006 06:20 AM
Error: Line 8: Incorrect syntax near '.' ; Help! Fly4High SQL Server 2000 2 August 15th, 2006 03:02 AM
Line 1: Incorrect syntax near '1'. martin1 Visual Basic 2005 Basics 1 June 26th, 2006 01:06 PM
Incorrect syntax near '`' Hez Classic ASP Databases 3 August 5th, 2004 08:13 AM
Error Line 1: Incorrect syntax near '='. Calibus Classic ASP Databases 9 July 20th, 2004 02:22 PM

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