What is sql version 662? - c#

This server support version 662 and ealier. A downgrade path is not supported..
I have vs studio 2010 express + sql 2008 R2 express

This error message is a bit misleading. SQL Server 2008 supports
database version 655 and earlier. But with support for 15000
partitions in SQL Server 2008 SP2, databases enabled for 15000
partitions are upgraded to version 662.
Tell me if this helps: http://rusanu.com/2010/11/23/this-server-supports-version-662-and-earlier/

Related

Microsoft SQL Server compatibility issue (C# Application)

I am developing a C# application on Windows 10, under Visual Studio 2015.
I can see that I have installed on that PC Microsoft SQL Server 2005 Compact Edition, 2012 Native Client, 2014 Express LocalDB, 2016 Local DB and other stuff like this.
I did not voluntarily installed any of this, they must have been with MVS 2015 or with the Windows.
The app that I made throws an exception on a Windows 7 PC with Microsoft SQL Server Compact 4.0 SP1 and all the Microsoft SQL Server 2014 specific stuff (including Express LocalDB).
If I run sqllocaldb i command on Win10 PC I have only mssqllocaldb connection with 13.0.1601.5 version number.
On Win7 PC I have the same status except that the version is 12.0.2000.8.
When I run my application I get
This server supports version 782 and earlier, your version is 852.
What can I do so that I can run the app in both computers since I have SQL Server 2014 on both of them fully installed?

This server version is not supported. Only servers up to Microsoft SQL Server 2005 are supported

For some days I am a little desperate about a problem in Visual Studio 2008, what happens is that in my company I work with VS 2008 and SQL Server 2014, I have worked normally but when choosing a new connection in a DataSet (Example: when I want to add a DataGridView with data from the database I have to do it by means of the code and not by the VS designer to add connections) I have the following error:
Yes, I installed two or three times the update for Visual Studio 2008 Service Pack 1 followed by restarting the computer several times and getting absolutely nothing, I also chose to install SQL Server 2008 R2 on my computer and does not solve the problem can anyone Orient me and is it possible to solve this?
Ok guys,
I think the most efficient solution to this problem is to move the project to a newer technology, this would avoid headaches in the future.
However a temporary and somewhat "disgusting" solution is:
Having SQL Server 2008 R2 Service Pack 2 SP2
Restore the database (SQL Server 2014) in SQL Server 2008 R2 SP2
In VS 2008 you would choose to connect to the instance of SQL Server
2008 R2 SP2 and work locally
If this does not work then try to install Service Pack 1 for SQL Server 2008 R2 SP2 and restart the computer
For now I will have to adapt to the second solution jejeje
Thank you very much to all!

I always get this error. what should i do?

The database 'C:\USERS\ROANEPC\DESKTOP\FINAL\BROADCASTWEB\APP_DATA\ASPNETDB.MDF' cannot be opened because it is version 661. This server supports version 655 and earlier. A downgrade path is not supported.
Could not open new database 'C:\USERS\ROANEPC\DESKTOP\FINAL\BROADCASTWEB\APP_DATA\ASPNETDB.MDF'. CREATE DATABASE is aborted.
An attempt to attach an auto-named database for file C:\Users\RoanePC\Desktop\Final\BroadcastWeb\App_Data\ASPNETDB.MDF failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share.
Database version:
655 means SQL Server 2008 instance.
661 means SQL Server 2008 R2 instance.
684 means SQL Server 2012 CTP1 instance.
706 means SQL Server 2012 instance.
782 means SQL Server 2014 instance.
You'll need to install the R2 version and continue to use that version. Downgrades do not work as in your example from 2008 R2 (10.50) to 2008 (10.00) but you can upgrade versions.

Set SQL Server 2008 R2 as a prerequisites while making a C# set up file

I have developed a C# desktop application. I need to deploy it in a client's machine. This app needs SQL Server 2008 R2. It is not feasible to set up SQL Server first and then my app. So, I thought of giving dependencies. Unfortunately the prerequisites option in VS has no option to include SQL Server 2008 R2.
It has only option for SQL Server 2005 Express and SQL Server 2008 Express.
How do I include SQL Server 2008 R2?
Sql Server 2005 express and Sql Server 2008 express come with below Limitation :
uses only 1 CPU
can use max of 1 GB of RAM
is limited to 10 GB of database size
you can use these software for individual system (desktop).
But Sql Server 2008 R2 is dedicated database server ,you can install it same system or separate system.
you need to write custom code for pre-detection Sql Server 2008 R2 Instance.
Below link would be helpful :
https://msdn.microsoft.com/en-us/library/a6t1z9x2.aspx
http://www.codeproject.com/Articles/16231/Deploy-your-Application-and-Database

Error 948 :Visual Studio 2012 with SQL Server 2008 R2

I have a computer that working as server and client machine. I installed SQL Server 2008 R2 and Visual Studio 2012 in it.
Using SQL server management studio I generated a DB then I created few table in that DB , then I insert data into it.
Then I deattached that DB using Server Management studio . Then I move that DB into my project "App_Data" folder.Then using "server explorer" & T_SQL pane functions of Visual Studio 2012 I did few changes of that DB .
Since I want to do massive changes , I close that DB connection with the project. I move that DB into SQL server default Database Location which is
"C:\Program Files\Microsoft SQL
Server\MSSQL10_50.MSSQLSERVER\MSSQL\DATA"
then I try to attach that DB using server management studio , I'm getting
"Error 948"
Cannot be opened because it is version 706. This server supports
version 661 and earlier
How to overcome this error ? your ideas/suggestions highly appreciate
By default, you can't attach a DB file from a SQL Server 2012 to an instance which is running SQL Server 2008 R2.
Version 661 is a SQL Server 2008 R2 DB file and version 706 is a SQL Server 2012 DB file. More information: How to determine version of Local Sql Instance and your database
You will therefore need to update your SQL Server instance, e.g. by upgrading to SQL Server 2012
I would also recommend you patch to the newest released build of SQL Server 2012. Check here for the newest version numbers for the different SQL Server versions: Microsoft SQL Server Version List
its a version comparability issue.
Initially you created in sqlserver 2008 R2 that version would be 661 and when you moved to VS2012 it was updated to 706, and when you tried to go back to SQl server 2008 R2 again this 706 version is not being downgraded to 661, obviously it can't be done.
one simple solution without any changes to your server setup, use Generate Script feature that should help you.

Categories