0

I can't export scripts from my LocalDB database (localdb)\v11.0. (SQL Express is fine)

The error I get is

Save or Publish Scripts Report

Getting the list of objects from 'XXX'. Failed

System.IndexOutOfRangeException: Index was outside the bounds of the array. at Microsoft.SqlServer.Management.SqlScriptPublish.GeneratePublishPage.worker_DoWork(Object sender, DoWorkEventArgs e) at System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e) at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)

This is using SQL Server 2008 R2.

Does anyone know what is causing this?

Tom
  • 12,591
  • 13
  • 72
  • 112

1 Answers1

3

As LocalDb is SQL Server 2012, you should use SSMS 2012 or later for this scripting task

ErikEJ
  • 40,951
  • 5
  • 75
  • 115