Скрипт изменения таблицы

Обсуждение возникших проблем, предложений и ошибок dbForge for SQL Server
Закрыто
deas
Сообщения: 161
Зарегистрирован: Чт 21 ноя 2013 10:54

Скрипт изменения таблицы

Сообщение deas » Пт 26 май 2017 10:40

В таблице поменял порядок полей в primary key, при нажатии на кнопку скрипт изменений, падает.

Код: Выделить всё

Message: Ссылка на объект не указывает на экземпляр объекта.
Source: Devart.DbForge.DbObjects.SqlServer
TargetSite: Void Merge(Devart.DbForge.IDbObject, Devart.DbForge.Compare.ISchemaSyncContext)
HelpLink: 
Type: System.NullReferenceException
Place: 2
Stack:
   в Devart.DbForge.DbObjects.SqlServer.SqlRelationalIndexDifference.Merge(IDbObject result, ISchemaSyncContext context)
   в Devart.DbForge.DbObjects.Difference`1.GetRecreateActions(IList`1 removeDependenciesActions, IList`1 invalidDependencies, IDictionary`2 detachedActions, ISchemaSyncContext context)
   в Devart.DbForge.DbObjects.SqlServer.SqlIndexDifference.GetRecreateActions(IList`1 removeDependenciesActions, IList`1 invalidDependencies, IDictionary`2 detachedActions, ISchemaSyncContext context)
   в Devart.DbForge.DbObjects.SqlServer.SqlRelationalIndexDifference.GetRecreateActions(IList`1 removeDependenciesActions, IList`1 invalidDependencies, IDictionary`2 detachedActions, ISchemaSyncContext context)
   в Devart.DbForge.DbObjects.Difference`1.GetSyncActions(IList`1 removeDependenciesActions, IList`1 invalidDependencies, IDictionary`2 detachedActions, ISchemaSyncContext context)
   в Devart.DbForge.DbObjects.SqlServer.SqlRelationalIndexDifference.GetSyncActions(IList`1 removeDependenciesActions, IList`1 invalidDependencies, IDictionary`2 detachedActions, ISchemaSyncContext context)
   в Devart.DbForge.DbObjects.SqlServer.SqlTableDifference.SyncDetails(List`1 actions, IDictionary`2 detachedActions, ISchemaSyncContext context, InternalDependencyHandler internalDependencyHandler)
   в Devart.DbForge.DbObjects.SqlServer.SqlTableDifference.AddSyncActions(List`1 actions, IList`1 removeDependenciesActions, IList`1 invalidDependencies, IDictionary`2 detachedActions, ISchemaSyncContext context)
   в Devart.DbForge.DbObjects.Difference`1.GetSyncActions(IList`1 removeDependenciesActions, IList`1 invalidDependencies, IDictionary`2 detachedActions, ISchemaSyncContext context)
   в Devart.DbForge.DbObjects.SqlServer.SqlTableDifference.GetSyncActions(IList`1 removeDependenciesActions, IList`1 invalidDependencies, IDictionary`2 detachedActions, ISchemaSyncContext context)
   в Devart.DbForge.Synchronization.Schema.ObjectSynchronizer.SynchronizeTargetObject(SynchronizationContext context, SyncObject syncObject)
   в Devart.DbForge.Synchronization.Schema.ActionComposer.<>c__DisplayClass0_0.<GenerateSyncActions>b__1(SynchronizationContext _context, SyncObject syncObject)
   в Devart.DbForge.Synchronization.Schema.ObjectSynchronizer.SynchronizeObjects(SynchronizationContext context, IList`1 objects, SynchronizeObjectDelegate syncProcedure)
   в Devart.DbForge.Synchronization.Schema.ActionComposer.GenerateSyncActions(SynchronizationContext context)
   в Devart.DbForge.Compare.SchemaSynchronization.WriteUpdateScript(TextWriter writer, IList`1 comparisonObjects, IOptionGroup options)
   в Devart.DbForge.Compare.ComparisonService.WriteAlterScript(TextWriter writer, IList`1 source, IList`1 target, IOptionGroup options, Boolean mapObjectsAsIs, Boolean throwOnUnsupported, Boolean updateStatusBar)
   в Devart.DbForge.Compare.ComparisonService.GetAlterScript(IList`1 source, IList`1 target, IOptionGroup options, Boolean mapObjectsAsIs, Boolean throwOnUnsupported, Boolean updateStatusBar)
   в Devart.DbForge.Compare.ComparisonService.GetAlterScript(IDbObject source, IDbObject target, IOptionGroup options, Boolean mapObjectsAsIs, Boolean throwOnUnsupported, Boolean updateStatusBar)
   в Devart.DbForge.DbObjects.DbObjectEditHelper.GetAlterTableScript(IDbTable sourceTable, IDbObject targetTable, ISchemaComparisonOptions options)
   в Devart.DbForge.DbObjects.DbTableEditor.GetCurrentAlterText(Boolean toUpdateDatabase)
   в Devart.DbForge.DbObjects.DbObjectEditor.HtcmBRwvq1(Boolean  , DbObject  , Boolean  )
   в Devart.DbForge.DbObjects.DbObjectEditor.GetScriptChanges(Boolean toUpdateDatabase, Boolean withRefactoring)
   в Devart.DbForge.DbObjectDocument.GetScriptChanges(DbObject dbObject, DbObject localDbObject, Boolean withRefactoring, Boolean toUpdateDatabase)
   в Devart.DbForge.DbObjectDocument.VmFXEQVgT(Boolean  )
   в Devart.DbForge.DbObjectDocument.RIsP2fr4Jk(ICommand  , CommandStatus&  , Object  )
   в Devart.DbForge.DbObjectDocument.PS6PkcY76b(ICommand  , CommandStatus&  , Object  )
   в Devart.Shell.Common.CommandTargetHelper.InvokeCommand(ICommand command, Object instance)
   в Devart.DbForge.ConnectedDocument.InvokeCommand(ICommand command, Object instance)
   в Devart.Shell.CommandService.InvokeCommand(ICommand command, Object instance, IList`1 commandTargetChain)
   в Devart.Shell.DocumentHostControl.documentButton_Click(Object sender, EventArgs e)
   в System.Windows.Forms.Control.OnClick(EventArgs e)
   в Controls.Editors.DropDownButton.OnClick(EventArgs e)
   в Controls.Editors.BaseButton.OnMouseUp(MouseEventArgs e)
   в Controls.Editors.DropDownButton.OnMouseUp(MouseEventArgs e)
   в System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   в System.Windows.Forms.Control.WndProc(Message& m)
   в Controls.Utils.Controls.ControlBase.WndProc(Message& m)
   в Controls.Editors.DropDownButton.WndProc(Message& m)
   в System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Я бы отправил вам полный отчет о ошибке, но уж больно много личной информации в нем.

Alexander

Re: Скрипт изменения таблицы

Сообщение Alexander » Пт 26 май 2017 13:55

Мы исправим данную проблему в версии 5.5 и сообщим Вам, как только Вы сможете скачать её.

Alexander

Re: Скрипт изменения таблицы

Сообщение Alexander » Пт 04 авг 2017 13:48

Хотим сообщить Вам, что данная проблема исправлена в новой версии 5.5 https://www.devart.com/ru/dbforge/sql/s ... nload.html

Благодарим Вас за Вашу помощь в усовершенствовании dbForge Studio for SQL Server.

Закрыто