J'essaie de migrer de Microsoft SQL Server 2003 à SQL Server 2016. L'importation des données s'est bien passé, en utilisant Microsoft SQL Management Studion 2016, mais les vues n'ont pas été importées. Et voici ma demande, comment puis-je importer les vues?Importer des vues de Microsoft SQL Server 2003 échouer
A ce stade, j'ai essayé:
- Générer un script de création de l'ancienne base de données, mais il semble en 2003, cette option n'a pas existé
- Faire une requête dans l'ancien serveur SQL lister toutes les vues, les copier et les recréer manuellement dans le nouveau serveur, mais aucune requête n'a fonctionné pour récupérer toutes les vues
- Copiez le fichier .MDF et.LDF de l'ancien serveur et joignez-les au nouveau serveur, mais J'ai l'erreur suivante:
=
==================================
Fail to join database for serber « DESKTOP-53C6I45\SQLEXPRESS ». (Microsoft.SqlServer.Smo)
------------------------------
To get help, click on : http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=13.0.16106.4+((SSMS_Rel_16_5).170125-2137)&EvtSrc=Microsoft.SqlServer.Management.Smo.ExceptionTemplates.FailedOperationExceptionText&EvtID=Attacher+la+base+de+données+Server&LinkId=20476
------------------------------
Software location :
at Microsoft.SqlServer.Management.Smo.Server.AttachDatabase(String name, StringCollection files)
at Microsoft.SqlServer.Management.SqlManagerUI.AttachDatabaseData.PrimaryFile.Attach()
at Microsoft.SqlServer.Management.SqlManagerUI.AttachDatabase.SendDataToServer()
===================================
An exception was produced during the execution of batch Transact-SQL. (Microsoft.SqlServer.ConnectionInfo)
------------------------------
Location of the software :
at Microsoft.SqlServer.Management.Common.ServerConnection.ExecuteNonQuery(String sqlCommand, ExecutionTypes executionType, Boolean retry)
at Microsoft.SqlServer.Management.Common.ServerConnection.ExecuteNonQuery(StringCollection sqlCommands, ExecutionTypes executionType, Boolean retry)
at Microsoft.SqlServer.Management.Smo.ExecutionManager.ExecuteNonQuery(StringCollection queries, Boolean retry)
at Microsoft.SqlServer.Management.Smo.Server.AttachDatabaseWorker(String name, StringCollection files, String owner, AttachOptions attachOptions)
at Microsoft.SqlServer.Management.Smo.Server.AttachDatabase(String name, StringCollection files)
===================================
The database 'Labeint' can't be upgraded, because its non final version (539) isn't managed by this version of SQL Server. You can't open a database which is incompatible with this version of sqlservr.exe. You must rereate the database.
Impossible to open the new database 'Labeint'. Abandon of CREATE DATABASE. (.Net SqlClient Data Provider)
------------------------------
To get help, click on : http://go.microsoft.com/fwlink?ProdName=Microsoft%20SQL%20Server&EvtSrc=MSSQLServer&EvtID=950&LinkId=20476
------------------------------
Server name : DESKTOP-53C6I45\SQLEXPRESS
Error number : 950
Gravity : 20
State: 1
Line number : 1
------------------------------
Location of the software :
at Microsoft.SqlServer.Management.Common.ConnectionManager.ExecuteTSql(ExecuteTSqlAction action, Object execObject, DataSet fillDataSet, Boolean catchException)
at Microsoft.SqlServer.Management.Common.ServerConnection.ExecuteNonQuery(String sqlCommand, ExecutionTypes executionType, Boolean retry)
Ce qui est le point de vue sont complexes dans un ancien projet, obtenir des données, je ne sais pas où pour un projet qui est une boîte noire pour moi, sinon je les aurais recréés manuellement, en essayant à comprendre comment ils ont été faits.
Il y avait un Sql Server 2003? Wow, j'ai raté celui-là. Doit avoir été le Kook Kids Sku –
S'il vous plaît voir ma réponse mise à jour ci-dessous –