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. Incorrect sytax newar COLLATE most of the places

Incorrect sytax newar COLLATE most of the places

Scheduled Pinned Locked Moved Database
databasesysadminhelpquestion
2 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.
  • S Offline
    S Offline
    sasire18
    wrote on last edited by
    #1

    hi I got this procedure to create database and tables using COLLATE from here but i am getting errors incorrect syntax near COLLATE I have checked several times but could not find the actual root cause of it. if i take any database say master or model it gives me th following errors:

    Server: Msg 170, Level 15, State 1, Line 3Line 3: Incorrect syntax near 'SQL_Latin1_General_CP1_CI_AS'.
    Server: Msg 911, Level 16, State 1, Line 2Could not locate entry in sysdatabases for database 'RiversideInternetForums'. No entry found with that name. Make sure that the name is entered correctly.
    Server: Msg 170, Level 15, State 1, Line 6Line 6: Incorrect syntax near 'COLLATE'.
    Server: Msg 4902, Level 16, State 1, Line 2Cannot alter table 'dbo.WS_Webs' because this table does not exist in database 'model'.
    Server: Msg 1906, Level 11, State 1, Line 2Cannot create an index on table 'dbo.WS_Posts', because this table does not exist in database 'model'.
    Server: Msg 208, Level 16, State 1, Line 1Invalid object name 'WS_Webs'.

    if i create a new database name RiversideInternetForums i get the following errors:

    Server: Msg 3702, Level 16, State 3, Line 2Cannot drop the database 'RiversideInternetForums' because it is currently in use.
    Server: Msg 170, Level 15, State 1, Line 3Line 3: Incorrect syntax near 'SQL_Latin1_General_CP1_CI_AS'.
    Server: Msg 170, Level 15, State 1, Line 6Line 6: Incorrect syntax near 'COLLATE'.
    Server: Msg 4902, Level 16, State 1, Line 2Cannot alter table 'dbo.WS_Users' because this table does not exist in database 'RiversideInternetForums'.Cannot create an index on table 'dbo.WS_Posts', because this table does not exist in database 'RiversideInternetForums'.Cannot create an index on table 'dbo.WS_Users', because this table does not exist in database 'RiversideInternetForums'.
    Server: Msg 208, Level 16, State 1, Line 1Invalid object name 'WS_Webs'.

    i have wriiten to the author but no response . can u tell me what is wrong .so can anyone here help me out. thanks in advance sasi

    C 1 Reply Last reply
    0
    • S sasire18

      hi I got this procedure to create database and tables using COLLATE from here but i am getting errors incorrect syntax near COLLATE I have checked several times but could not find the actual root cause of it. if i take any database say master or model it gives me th following errors:

      Server: Msg 170, Level 15, State 1, Line 3Line 3: Incorrect syntax near 'SQL_Latin1_General_CP1_CI_AS'.
      Server: Msg 911, Level 16, State 1, Line 2Could not locate entry in sysdatabases for database 'RiversideInternetForums'. No entry found with that name. Make sure that the name is entered correctly.
      Server: Msg 170, Level 15, State 1, Line 6Line 6: Incorrect syntax near 'COLLATE'.
      Server: Msg 4902, Level 16, State 1, Line 2Cannot alter table 'dbo.WS_Webs' because this table does not exist in database 'model'.
      Server: Msg 1906, Level 11, State 1, Line 2Cannot create an index on table 'dbo.WS_Posts', because this table does not exist in database 'model'.
      Server: Msg 208, Level 16, State 1, Line 1Invalid object name 'WS_Webs'.

      if i create a new database name RiversideInternetForums i get the following errors:

      Server: Msg 3702, Level 16, State 3, Line 2Cannot drop the database 'RiversideInternetForums' because it is currently in use.
      Server: Msg 170, Level 15, State 1, Line 3Line 3: Incorrect syntax near 'SQL_Latin1_General_CP1_CI_AS'.
      Server: Msg 170, Level 15, State 1, Line 6Line 6: Incorrect syntax near 'COLLATE'.
      Server: Msg 4902, Level 16, State 1, Line 2Cannot alter table 'dbo.WS_Users' because this table does not exist in database 'RiversideInternetForums'.Cannot create an index on table 'dbo.WS_Posts', because this table does not exist in database 'RiversideInternetForums'.Cannot create an index on table 'dbo.WS_Users', because this table does not exist in database 'RiversideInternetForums'.
      Server: Msg 208, Level 16, State 1, Line 1Invalid object name 'WS_Webs'.

      i have wriiten to the author but no response . can u tell me what is wrong .so can anyone here help me out. thanks in advance sasi

      C Offline
      C Offline
      Colin Angus Mackay
      wrote on last edited by
      #2

      Without seeing the code to go along with the error messages it is a bit difficult to help.


      "On two occasions, I have been asked [by members of Parliament], 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?' I am not able to rightly apprehend the kind of confusion of ideas that could provoke such a question." --Charles Babbage (1791-1871) My: Website | Blog

      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