This project is read-only.

SQL Error

Topics: Using Cosmos (Developing your own OS, projects, etc)
Apr 17, 2013 at 4:12 PM
When I try to build, I get the error
Error 6 Incorrect syntax near 'OS'.
Incorrect syntax near the keyword 'with'. If this statement is a common table expression, an xmlnamespaces clause or a change tracking context clause, the previous statement must be terminated with a semicolon.
Incorrect syntax near 'IMMEDIATE'.
at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action1 wrapCloseInAction)
at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action
1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at Cosmos.Debug.Common.DebugInfo.DeleteDB(String aDbName, String aPathname) in c:\Users\John\Downloads\cosmos-101325\source2\Debug\Cosmos.Debug.Common\DebugInfo.cs:line 81
at Cosmos.Debug.Common.DebugInfo..ctor(String aPathname, Boolean aCreate) in c:\Users\John\Downloads\cosmos-101325\source2\Debug\Cosmos.Debug.Common\DebugInfo.cs:line 134
at Cosmos.Build.MSBuild.IL2CPUTask.Execute()
Apr 17, 2013 at 4:24 PM
for some reason the sql code "ALTER DATABASE " + aDbName + " SET SINGLE_USER WITH ROLLBACK IMMEDIATE" throws an error
Apr 17, 2013 at 6:52 PM
Change the cosmos project builder to "boot"...or any other
Apr 17, 2013 at 10:26 PM

Or join development and help us get rid of sqllocaldb

Op 17 apr. 2013 19:52 schreef "AtomOS" <[email removed]> het volgende:

From: AtomOS

Change the cosmos project builder to "boot"...or any other

Read the full discussion online.

To add a post to this discussion, reply to this email ([email removed])

To start a new discussion for this project, email [email removed]

You are receiving this email because you subscribed to this discussion on CodePlex. You can unsubscribe or change your settings on

Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at