Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. sql query proble [modified]

sql query proble [modified]

Scheduled Pinned Locked Moved Database
databasesysadmintoolshelp
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Member_3259094
    wrote on last edited by
    #1

    hi everybody i am using sql 2000 server and facing syntax error. plz correct and reply. query is below but that is script of sql 2005 and i am using this on sql 2000 SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[ProductCategory]') AND type in (N'U')) BEGIN CREATE TABLE [dbo].[ProductCategory]( [ProductCategoryID] [int] IDENTITY(1,1) NOT NULL, [ProductCategoryName] [text] NOT NULL, CONSTRAINT [PK_ProductCategory] PRIMARY KEY CLUSTERED ( [ProductCategoryID] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY] END GO

    rajeev kumar sharma vri software pvt. ltd. new delhi India

    modified on Thursday, January 31, 2008 2:06:42 AM

    P 1 Reply Last reply
    0
    • M Member_3259094

      hi everybody i am using sql 2000 server and facing syntax error. plz correct and reply. query is below but that is script of sql 2005 and i am using this on sql 2000 SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[ProductCategory]') AND type in (N'U')) BEGIN CREATE TABLE [dbo].[ProductCategory]( [ProductCategoryID] [int] IDENTITY(1,1) NOT NULL, [ProductCategoryName] [text] NOT NULL, CONSTRAINT [PK_ProductCategory] PRIMARY KEY CLUSTERED ( [ProductCategoryID] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY] END GO

      rajeev kumar sharma vri software pvt. ltd. new delhi India

      modified on Thursday, January 31, 2008 2:06:42 AM

      P Offline
      P Offline
      pmarfleet
      wrote on last edited by
      #2

      RajeevKumarSharma wrote:

      i am using sql 2000 server and facing syntax error.

      What is the error? Did you check what the error message means before posting? If you can't be bothered to do a little investigation yourself, I can't be bothered to help you :|

      Paul Marfleet "No, his mind is not for rent To any God or government" Tom Sawyer - Rush

      M 1 Reply Last reply
      0
      • P pmarfleet

        RajeevKumarSharma wrote:

        i am using sql 2000 server and facing syntax error.

        What is the error? Did you check what the error message means before posting? If you can't be bothered to do a little investigation yourself, I can't be bothered to help you :|

        Paul Marfleet "No, his mind is not for rent To any God or government" Tom Sawyer - Rush

        M Offline
        M Offline
        Member_3259094
        wrote on last edited by
        #3

        i tryed to solve that but i am unable to solve that problem is Server: Msg 170, Level 15, State 1, Line 9 Line 9: Incorrect syntax near '('.

        Rajeev Kr. Sharma VRI Software Pvt.Ltd. New Delhi India HumOnline.com Stay Connected

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups