SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Msg 102, Level 15, State 1, Line 24
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

vimaldreams
Starting Member

17 Posts

Posted - 10/27/2010 :  07:34:09  Show Profile  Reply with Quote
When I Execute the following code it keep says the error ; Plz can anyone help me...its high priority

Msg 102, Level 15, State 1, Line 24
Incorrect syntax near ')'.



USE [CRM database];
GO

SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[MK_DB]') AND type in (N'U'))

BEGIN

CREATE TABLE [dbo].[MK_DB](
[ID] [int] IDENTITY(1,1) NOT NULL,
[Salutation] [nvarchar](50) NULL,
[First_name] [nvarchar](50) NULL,
[Last_name] [nvarchar](50) NULL,
[Address_line1] [nvarchar](50) NULL,
[Address_line2] [nvarchar](50) NULL,
[Town][nvarchar](50) NULL,
[Postcode][nvarchar](50) NULL,
[Telephone_no][nvarchar](50) NULL,
[Mobile_no][nvarchar](50) NULL,
[Email_address][nvarchar](50) NULL,
[Organisation][nvarchar](50) NULL,
[Org_type][nvarchar](50) NULL,
[Client_PartnerId][nchar](10) NULL,
[Work_type] [int] NULL,
[MK_Mailinglist][nvarchar](50) NULL
)



GO

webfred
Flowing Fount of Yak Knowledge

Germany
8679 Posts

Posted - 10/27/2010 :  07:37:18  Show Profile  Visit webfred's Homepage  Reply with Quote
Each BEGIN needs an END


No, you're never too old to Yak'n'Roll if you're too young to die.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.06 seconds. Powered By: Snitz Forums 2000