You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MicrosoftWindows[Version 10.0.18362.592](c)2019 Microsoft Corporation.All rights reserved.
C:\temp\yuniql-cli\samples\basic-sqlserver-sample>yuniql run -a
INF 2020-02-03T19:19:40.7498554Z Started migration from C:\temp\yuniql-cli\samples\basic-sqlserver-sample.
INF 2020-02-03T19:19:40.8011159Z No explicit target version requested. We'll use latest available locally v0.00on C:\temp\yuniql-cli\samples\basic-sqlserver-sample.
INF 2020-02-03T19:19:41.6972951Z Target database does not exist. Creating database yuniqldb-dev on localhost,1400.ERR2020-02-03T19:19:41.9200079Z Failed to execute run function. Target database will be rolled back to its previous state.System.Data.SqlClient.SqlException(0x80131904): Incorrect syntax near '-'.
at System.Data.SqlClient.SqlConnection.OnError(SqlExceptionexception,BooleanbreakConnection, Action`1wrapCloseInAction)
at System.Data.SqlClient.SqlInternalConnection.OnError(SqlExceptionexception,BooleanbreakConnection, Action`1wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObjectstateObj,BooleancallerHasConnectionLock,BooleanasyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehaviorrunBehavior,SqlCommandcmdHandler,SqlDataReaderdataStream,BulkCopySimpleResultSetbulkCopyHandler,TdsParserStateObjectstateObj,Boolean&dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(StringmethodName,Booleanasync,Int32timeout,BooleanasyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1completion,BooleansendToPipe,Int32timeout,BooleanasyncWrite,StringmethodName)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at Yuniql.Core.ConnectionExtensions.ExecuteNonQuery(IDbConnectionconnection,StringcommandText, Nullable`1commandTimeout,IDbTransactiontransaction,ITraceServicetraceService)
at Yuniql.Core.ConfigurationDataService.CreateDatabase(Nullable`1commandTimeout)atYuniql.Core.MigrationService.Run(StringworkingPath,StringtargetVersion, Nullable`1autoCreateDatabase, List`1tokenKeyPairs, Nullable`1verifyOnly,Stringdelimiter, Nullable`1commandTimeout, Nullable`1batchSize)
at Yuniql.CLI.CommandLineService.RunMigration(RunOptionopts)ClientConnectionId:ab75fba2-0d22-4c42-9a19-7f34c71fabe4
Error Number:102,State:1,Class:15
Unhandled exception.System.Data.SqlClient.SqlException(0x80131904):Incorrect syntax near '-'.
at System.Data.SqlClient.SqlConnection.OnError(SqlExceptionexception,BooleanbreakConnection, Action`1wrapCloseInAction)
at System.Data.SqlClient.SqlInternalConnection.OnError(SqlExceptionexception,BooleanbreakConnection, Action`1wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObjectstateObj,BooleancallerHasConnectionLock,BooleanasyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehaviorrunBehavior,SqlCommandcmdHandler,SqlDataReaderdataStream,BulkCopySimpleResultSetbulkCopyHandler,TdsParserStateObjectstateObj,Boolean&dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(StringmethodName,Booleanasync,Int32timeout,BooleanasyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1completion,BooleansendToPipe,Int32timeout,BooleanasyncWrite,StringmethodName)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at Yuniql.Core.ConnectionExtensions.ExecuteNonQuery(IDbConnectionconnection,StringcommandText, Nullable`1commandTimeout,IDbTransactiontransaction,ITraceServicetraceService)
at Yuniql.Core.ConfigurationDataService.CreateDatabase(Nullable`1commandTimeout)
at Yuniql.Core.MigrationService.Run(StringworkingPath,StringtargetVersion, Nullable`1autoCreateDatabase, List`1tokenKeyPairs, Nullable`1verifyOnly,Stringdelimiter, Nullable`1commandTimeout, Nullable`1batchSize)
at Yuniql.CLI.CommandLineService.RunMigration(RunOptionopts)
at Yuniql.Program.<>c__DisplayClass0_0.<Main>b__1(RunOptionopts)
at CommandLine.ParserResultExtensions.MapResult[T1,T2,T3,T4,T5,T6,T7,T8,TResult](ParserResult`1result, Func`2parsedFunc1, Func`2parsedFunc2, Func`2parsedFunc3, Func`2parsedFunc4, Func`2parsedFunc5, Func`2parsedFunc6, Func`2parsedFunc7, Func`2parsedFunc8, Func`2notParsedFunc)
at Yuniql.Program.Main(String[]args)
ClientConnectionId:ab75fba2-0d22-4c42-9a19-7f34c71fabe4
Error Number:102,State:1,Class:15
C:\temp\yuniql-cli\samples\basic-sqlserver-sample>
The text was updated successfully, but these errors were encountered:
rdagumampan
changed the title
Error "Incorrect syntax near '-'" when database name contains -
"Incorrect syntax near '-'" when database name contains -
Feb 3, 2020
The text was updated successfully, but these errors were encountered: