syntax error

  • Server: Msg 170, Level 15, State 1, Line 1

    Line 1: Incorrect syntax near '2'.

    Server: Msg 170, Level 15, State 1, Line 1

    Line 1: Incorrect syntax near 'ersonName style="BACKGROUND-POSITION: left bottom; BACKGROUND-IMAGE: url(res://ietag.dll/#34/#1001); BACKGROUND-REPEAT: repeat-x">testersonName>'

     

    The database is "2test" and I have noticed that any database that starts with a number gets this error when clearing the transaction logs with:

    "USE 2test

    GO

    DBCC SHRINKFILE (2test_log, 1)"

    is there a work around for this?

  • See if this helps:

    USE [2test]

    GO

    DBCC SHRINKFILE ([2test_log], 1)

     

    Aunt Kathi Data Platform MVP
    Author of Expert T-SQL Window Functions
    Simple-Talk Editor

  • Great Thanks! Are you aware of this causing any other unforseen problems?

  • No.. Just the same problem over and over again. Can you rename the database so that it can't be an isse from now on?

  • John,

    for your future postings here, please refrain from posting the same question in multiple fora. http://www.sqlservercentral.com/forums/shwmessage.aspx?forumid=169&messageid=157096

    Most members follow all fora, so there is no need for it. It actually makes it difficult for everyone to track who has answered what where already.

    --
    Frank Kalis
    Microsoft SQL Server MVP
    Webmaster: http://www.insidesql.org/blogs
    My blog: http://www.insidesql.org/blogs/frankkalis/[/url]

Viewing 5 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic. Login to reply