Błąd generowania scryptu MS SQL Preparing InsSearch.ColumnType

Anonimowy
2024-07-17T08:30:28+00:00

Witam, próbuję wygenerować script, do migracji z SLQ 2019 na 2017.

Dostaję taki błąd.

Preparing InsSearch.ColumnType

Microsoft.SqlServer.Management.SqlScriptPublish.SqlScriptPublishException: An error occurred while scripting the objects. ---> Microsoft.SqlServer.Management.Smo.PropertyCannotBeRetrievedException: Property TextHeader is not available for UserDefinedFunction '[InsSearch].[ColumnType]'. This property may not exist for this object, or may not be retrievable due to insufficient access rights. The text is encrypted. at Microsoft.SqlServer.Management.Smo.ScriptNameObjectBase.GetTextProperty(String requestingProperty, ScriptingPreferences sp, Boolean bThrowIfCreating) at Microsoft.SqlServer.Management.Smo.ScriptNameObjectBase.BuildText(ScriptingPreferences sp) at Microsoft.SqlServer.Management.Smo.ScriptNameObjectBase.GetTextForScript(ScriptingPreferences sp, String[] expectedObjectTypes, Boolean forceCheckNameAndManipulateIfRequired, ScriptHeaderType scriptHeaderType) at Microsoft.SqlServer.Management.Smo.UserDefinedFunction.ScriptUDF(StringCollection queries, ScriptingPreferences sp, ScriptHeaderType scriptHeaderType) at Microsoft.SqlServer.Management.Smo.UserDefinedFunction.ScriptCreate(StringCollection queries, ScriptingPreferences sp) at Microsoft.SqlServer.Management.Smo.SqlSmoObject.ScriptCreateInternal(StringCollection query, ScriptingPreferences sp, Boolean skipPropagateScript) at Microsoft.SqlServer.Management.Smo.ScriptMaker.ScriptCreateObject(Urn urn, ScriptingPreferences sp, ObjectScriptingType& scriptType) at Microsoft.SqlServer.Management.Smo.ScriptMaker.ScriptCreate(Urn urn, ScriptingPreferences sp, ObjectScriptingType& scriptType) at Microsoft.SqlServer.Management.Smo.ScriptMaker.ScriptCreateObjects(IEnumerable1 urns) at Microsoft.SqlServer.Management.Smo.ScriptMaker.ScriptUrns(List1 orderedUrns) at Microsoft.SqlServer.Management.Smo.ScriptMaker.DiscoverOrderScript(IEnumerable1 urns) at Microsoft.SqlServer.Management.Smo.ScriptMaker.ScriptWorker(List1 urns, ISmoScriptWriter writer) at Microsoft.SqlServer.Management.Smo.ScriptMaker.Script(Urn[] urns, ISmoScriptWriter writer) at Microsoft.SqlServer.Management.SqlScriptPublish.SqlScriptGenerator.DoScript(ScriptOutputOptions outputOptions) --- End of inner exception stack trace --- 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)

Może ktoś podpowiedzieć mi jak to naprawić?

Windows dla firm | Windows Server | Urządzenia i wdrożenie | Inne

Zablokowane pytanie. To pytanie zostało przeniesione ze społeczności pomocy technicznej firmy Microsoft. Możesz zagłosować na to, czy jest to pomocne, ale nie możesz dodawać komentarzy ani odpowiedzi ani śledzić pytania.

{liczba} komentarzy Brak komentarzy
{count} głosów

1 odpowiedź

Sortuj według: Najbardziej pomocny
  1. Anonimowy
    2024-07-17T08:58:18+00:00

    Ta odpowiedź została przetłumaczona automatycznie. W związku z tym mogą występować błędy gramatyczne lub dziwne sformułowania.

    Witaj MarcinFranek,

    dziękujemy za publikowanie wpisów na forach społeczności firmy Microsoft.

    Na podstawie opisu rozumiem, że Twój problem jest związany z SQL Server.

    Ponieważ na tym forum nie ma inżynierów zajmujących się SQL Server. Aby móc szybko i sprawnie odpowiedzieć na Twoje pytania, zalecam ponowne zamieszczenie swoich pytań na forum pytań i odpowiedzi, gdzie będzie dedykowany inżynier, który udzieli Ci profesjonalnej i skutecznej odpowiedzi.

    Oto link do forum z pytaniami i odpowiedziami: https://learn.microsoft.com/en-us/answers/questions/

    Miłego dnia.

    Pozdrawiam

    Lei

    {liczba} komentarzy Brak komentarzy