Toad World® Forums

Attaching SQL2012 database - Exception

After attaching a SQL 2012 database I had just disconnected from another server, I got this exception:

Build: 6.1.0.1284

System.ArgumentOutOfRangeException
Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
Stack Trace:
at System.ThrowHelper.ThrowArgumentOutOfRangeException()
at Quest.Toad.SqlServer.Doe.Databases.DatabaseAttachAndDetach.DatabaseAttachOrDetachForm.SetUpPropertiesChildFilesGrid(Int32 countRow)
at Quest.Toad.SqlServer.Doe.Databases.DatabaseAttachAndDetach.DatabaseAttachOrDetachForm.RefreshGridChild()
at Quest.Toad.SqlServer.Doe.Databases.DatabaseAttachAndDetach.DatabaseAttachOrDetachForm.gridPropertiesPrimaryFile_FocusedRowChanged(Object sender, FocusedRowChangedEventArgs e)
at DevExpress.XtraGrid.Views.Base.ColumnView.RaiseFocusedRowChanged(Int32 prevFocused, Int32 focusedRowHandle)
at DevExpress.XtraGrid.Views.Base.ColumnView.DoChangeFocusedRowInternal(Int32 newRowHandle, Boolean updateCurrentRow)
at DevExpress.XtraGrid.Views.Base.ColumnView.OnDataController_DataSourceChanged(Object sender, EventArgs e)
at DevExpress.XtraGrid.Views.Grid.GridView.OnDataController_DataSourceChanged(Object sender, EventArgs e)
at DevExpress.Data.DataControllerBase.RaiseListSourceChanged()
at DevExpress.Data.DataControllerBase.OnListSourceChanged()
at DevExpress.Data.DataControllerBase.SetListSourceCore(IList value)
at DevExpress.Data.DataControllerBase.SetListSource(IList value)
at DevExpress.Data.CurrencyDataController.OnCurrencyManagerChanged()
at DevExpress.Data.CurrencyDataController.set_CurrencyManager(CurrencyManager value)
at DevExpress.Data.CurrencyDataController.OnDataSourceChanged()
at DevExpress.Data.CurrencyDataController.SetDataSource(BindingContext context, Object dataSource, String dataMember)
at DevExpress.XtraGrid.Views.Base.BaseView.SetDataSource(BindingContext context, Object dataSource, String dataMember)
at DevExpress.XtraGrid.Views.Grid.GridView.SetDataSource(BindingContext context, Object dataSource, String dataMember)
at DevExpress.XtraGrid.GridControl.ActivateDataSource()
at DevExpress.XtraGrid.GridControl.set_DataSource(Object value)
at Quest.Toad.Grid.ToadGridControl.set_DataSource(Object value)
at Quest.Toad.Grid.ToadGridControl.Dispose(Boolean disposing)
at Quest.Toad.SqlServer.Doe.Base.BaseGridControl.Dispose(Boolean disposing)
at System.ComponentModel.Component.Dispose()
at System.Windows.Forms.Control.Dispose(Boolean disposing)
at DevExpress.XtraEditors.XtraScrollableControl.Dispose(Boolean disposing)
at DevExpress.XtraEditors.PanelControl.Dispose(Boolean disposing)
at System.ComponentModel.Component.Dispose()
at System.Windows.Forms.Control.Dispose(Boolean disposing)
at System.ComponentModel.Component.Dispose()
at System.Windows.Forms.Control.Dispose(Boolean disposing)
at System.Windows.Forms.Form.Dispose(Boolean disposing)
at DevExpress.XtraEditors.XtraForm.Dispose(Boolean disposing)
at Quest.Toad.Doe.BaseDoeForm.Dispose(Boolean disposing)
at Quest.Toad.SqlServer.Doe.Databases.DatabaseAttachAndDetach.DatabaseAttachOrDetachForm.Dispose(Boolean disposing)
at System.ComponentModel.Component.Dispose()
at System.Windows.Forms.Form.WmClose(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at DevExpress.XtraEditors.XtraForm.WndProc(Message& msg)
at Quest.Toad.SqlServer.Doe.Base.SqlServerDoeForm.WndProc(Message& msg)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

The database had already been successfully attached, and the database could be used. Just got the exception.

Hi,

It has been fixed now. Please wait for the new build.

Kelly