I am using the new SQL Server tools with the data-tier project in Visual Studio. I created a snapshot (.dacpac) and I tried to deploy it on a SQL Server instance in management studio but I get the following error. Any clues?
My dacpac file and SQL Server are all local.
The stream cannot be read to construct the DacType. Unexpected XML content.
Related
I created project using Visual Studio 2015 and connected with SQL Server 2014 and the project ran fine on my PC. I want to create .exe file and attached database.
I searched for how to make setup file and found this:
With local databases I want with SQL Server database (how to attach database)
When selected prerequisites install SQL Server and .NET Framework 4.6 (cannot download to another PC).
I am trying to create new SQL Azure database using dacpac file created from local SQL server database using SSDT .
I am getting error as
Publish failed.An error occured during deployment plan generation. Deployment cannot continue. A project which specifies SQL Server 2017 as the target platform cannot be published to Microsoft Azure SQL Database v12.
But did not get any option to choose while doing Extract Data-tier Application to generate dacpac.
Below is error while creating Azure SQL database :
You can do this workaround, you can go into the json file for the project and manually target V12. Edit the sqlproj file.
<DSP>Microsoft.Data.Tools.Schema.Sql.SqlAzureV12DatabaseSchemaProvider</DSP>
I am trying to create a database in Visual Studio 2015 MVC setup. When I create a new file in the "App_Data" folder and select SQL Server Database, a popup comes up that says the following:
"Connections to SQL Server database files (.mdf) require LocalDB or
SQL Server Express to be installed and running on the local computer.
You may need to modify the setup and ensure Microsoft SQL Server Data
Tools is selected."
I have already installed SQL Express in my computer. But Visual Studio still shows the same popup. Can anyone please give me a step by step instruction on how to create a DB through Visual Studio 2015?
(My thought was if I clicked on new file->SQL server Database, then a popup would launch allowing me to input my data and name it. But I obviously am unable to do that).
Make sure that SQL Server is up and running. Open up SQL Server Management Studios (installed with SQL Server) and try and connect to the instance that you created (should be the same as your machine name). If it fails to connect, SQL Server might not be running.
To turn it on, open SQL Server Configuration Manager (just do a search and it'll show up), go to SQL Server Services, and turn on the database engine. You should then be able to connect to the database.
I have downloaded ".bacpac" from the resource and i have successfully imported it in "Microsoft SQL Server Studio 2014" using data-tier application. But when i am trying to upload the same file from the "Microsoft SQL Server Studio" to Azure, it's throwing the following error.
It's showing operation failed at "creating database on target". When i am clicking the error link it's showing:
An exception occured while executing a Transact -SQL statement or batch.
(Microsoft.SqlServer.Connectioninfo)
Additional Information
'Web' is not a valid database edition in this version of sql server.(Microsoft SQL Server, Error: 40633)
The Web and Business Azure SQL Database tiers have been retired by Microsoft.
Currently, SQL Server Management Studio 2014 only presents the Web and Business tiers as options when deploying a database to Azure, both of which will be rejected with the "not a valid database edition" message.
The current CTP of SQL Server Management Studio, which can be downloaded from here, does allow you to select the newer Basic/Standard/Premium tiers when deploying a database to Azure, which should work and not produce the error described above.
When you choose the option to deploy the database to Azure in SQL Server Management Studio it will prompt you for deployment settings. e.g. where you would have provided you database credentials. One of the values specified in that window is "Edition of Windows Azure SQL Database" and this may have defaulted to "Web". This could be the reason you are getting the error. Try changing this setting to a more suitable value, e.g. "Standard", and re-deploying the database to Azure.
Has made a .sdf database file in Microsoft Visual Web Developer 2010. When I try to open it in SQL Server Management Studio 2008 Service Pack 3, it displays error message:
Cannot connect to C:\Users\Xtreme\Documents\Dishes.sdf.
Incompatible Database Version. If this was a compatible file, run
repair. For other cases refer to documentation. [ Db version =
4000000,Requested version = 3505053,File name =
\?\C:\Users\Xtreme\Documents\Dishes.sdf ] (SQL Server Compact ADO.NET
Data Provider)
What is wrong? There is no problem to work with the .sdf in Microsoft Visual Web Developer 2010.
You cannot use SSMS to open SQL CE 4.0 Database files.
You can use the Microsoft Web Platform Installer to load VS Tools for SQL CE 4 however.
source: http://social.msdn.microsoft.com/Forums/en/sqlce/thread/a9fca12d-6403-47ff-ab6b-fc1db42205c3
WebMatrix should be able to view/edit these database files as well.
Check out Erik EJ's web log - he has a ton of tools for handling all sorts of operations with .sdf files, and also an extensive list of third-party tools that work with SQL Server Compact Edition's .sdf files.
1.Open SQL Server Management Studio, or if it's running select File -> Connect Object Explorer...
2.In the Connect to Server dialog change Server type to SQL Server Compact Edition
From the Database file dropdown select
3. Open your SDF file.