January 21, 2005 at 2:41 pm
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 '
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?
January 21, 2005 at 9:58 pm
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
January 23, 2005 at 9:06 pm
Great Thanks! Are you aware of this causing any other unforseen problems?
January 24, 2005 at 6:37 am
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?
January 24, 2005 at 2:04 pm
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