Report Viewer Control Visual Studio 2010 - vb.net-2010

I am trying to create link SQL Server 2005 Report Server Reports in VS 2010 and I get an error "Remote Report Processing requires Microsoft SQL Server 2008 Reporting Services or later". How do i downgrade the control to the one from 2008?

Unfortunately, the only way I know how to get around this is to use an older version of Visual Studio for this type of development. Not much of a solution though.

You will have to use the 2005 version of the report viewer control. Unfortunately MS doesn't allow this to be used in 2010. There's probably a better technology-related reason than "Make you upgrade to 2008", but that's how I feel about this.
However, You have some hoops to jump through:
The old control must be put on a WinForms form with VS 2008 (or 2005).
The new application must be using the full .Net 4.0 profile.
If your main application is signed, the DLL you create in VS 2008 must have a strong name key.
The form in VS 2010, containing the control you built in VS 2008, will not open in design view in VS 2010.
If you're using WPF, there is no native control - you must resort to Windows Forms Interop to make this happen, hosting the WinForms control.
Also keep in mind that there are several versions of the Report Viewer control out there:
- v8.0 = VS 2005, VS 2008, SQL 2005
- v9.0 = VS 2008, SQL 2008
- v9.X = VS 2008, VS 2010, SQL 2008 R2
- v10 = VS 2010, SQL 2008 R2
Hope this helps you.

Related

Missing OLE DB Provider for Database

I am trying to link my vb.net program to a MS.ACCESS database to display my database to the crystal report, but I cant find the server in the OLE DB Provider.
I'm using:
Windows 8,
Ms access 2013 and
Microsoft visual studio 2008.
See this link and many more like it. 64 bit access. The standard jet driver is not available on 64 bit systems. But, you can download one.

SQL Server 2008 R2 and SQL Serve 2008 Express not playing ball

I have a database created on a box using SQL Server 2008 Express and am developing a website between that and another box (set up by a friend a while back) using 2008 R2. Unfortunately, I've hit two problems.
The first is that on the R2 box, while it will load in the database from 2008, it won't allow me to add tables (it gives the well worn and completely useless Specified module cannot be found HRESULT: 0x8007007E) - I can do everything else but add tables.
The second is that when the file is accessed and updated to SVN, the other box cannot use it as the version numbers differ (655 [2008 Express] on one 661 on the other with no downgrade path). Grrr!
My plan is to do this - copy the SQL file on the 2008 R2 box to an SQL script. Remove R2 from the machine completely and just do a default install of 2008 and reimport the script. Only problem is that I'm clueless on how to do it.
Can anyone recommend a piece of kit that will do this or point me in the direction of a website that may help? Google produces masses of hits, but doesn't always help on this one.
Thanks
Paul
From your description, it appears that you've got SQL Express 2008, not SQL Express 2008 R2;
Have you considered upgrading the SQL Express to SQL Express 2008 R2 http://www.microsoft.com/download/en/details.aspx?id=23650
SQL Express isn't a version, but is just an Edition. It might be easier to upgrade the SQL Express 2008 to SQL Express 2008 R2.
But... this is probably what you are looking for if you are set on exporting the database to a script.
http://blog.sqlauthority.com/2011/05/07/sql-server-2008-2008-r2-create-script-to-copy-database-schema-and-all-the-objects-data-schema-stored-procedure-functions-triggers-tables-views-constraints-and-all-other-database-objects/

Starting From Scratch - What SQL database should I use with Visual Studio?

I recently got a new primary computer. On my old one, I was working with MS Visual Studio 2008 (or maybe an older version - I can't remember now). I had managed to get SQLite working with it and was in the start/middle of building an application.
On the new computer, I now have MS Visual Studio 2010. I have had problems getting SQLite to work with it. Honestly, I haven't tried super hard yet, because I realized I pretty much want to completely redesign this application anyway and it got me thinking... do I really want to use SQLite or some other SQL? MS SQL (or is it called SQL Server)? MySQL?
My end goal is to have an application that can be installed by the user with one .msi file and the user should not have direct access to the database (although at this stage, that is a secondary concern).
It seems like MS SQL / SQL Server is the easiest since it's also an MS product.... Would love some opinions!
(along with the opinions, I'd also love to be pointed to current instructions... I'm a programmer, I'm not a "coding environment setup" person and have always struggled with this. All I want is to get in there and write my application!)
Thanks in advance!
-Adeena
PS... I'm currently working with C# and would prefer to stick with it, but could easily do this in C++ (I'm fluent in all the flavors of C) if that makes a difference with the database.
SQL Server would be a good choice by the sounds of what you're after. Try the express version - it's free, good for development and prototyping and integrates really well with Visual Studio.
The SQL Server Management Studio tool is excellent. I use this to create the databases I need and then use Visual Studio to manage them (saves switching windows and running both applications when you're working in VS all day anyway). I used to have my issues with the old Enterprise manager software but things really seems to have stepped up for SQL Server 2008 and the new management studio.
Like the title of your question suggests, you're wanting to use this with Visual Studio. If you decide to do use SQL Server then you should:
Download the express edition
Download SQL Server management studio
Create a database
In Visual Studio - click View -> Server explorer -> right click Data connections and add connection. Select MS SQL Express and choose localhost as your server. You can then select the database you created using the management studio.
There you have it - integration with VS.
You say you're using C#.Net - well SQL server and .Net go hand-in-hand. Obviously you can hook up to other third party databases but SQL was really made to work with this stuff. It's a powerful database engine and will do everything you'll ever need as well as being well supported by Microsoft and the wider community.
If your final goal is to have hands-off single-click installation then I don't think SQL Server Express is your best bet because it's not a file-based embedded database. It's a great db and very easy to work with, but when it comes to deployment still takes some installation effort. You could try one of: SQL Server Compact Edition, SQLite or Firebird Embedded.
SQLExpress is free and for development purposes is pretty much interchangeable with the full SQLServer
http://www.microsoft.com/express/Database/
SQL SERVER seems to be the logical one.

SQL server 2012 `denali`, new report control

What new report controls were added in SQL server 2012?
The new version of SSRS in 2011 is going under the name “Project Crescent” and looks really good. Here is a link to a preview
http://blogs.msdn.com/b/sqlrsteamblog/archive/2010/11/09/a-glimpse-at-project-crescent.aspx
It was not released as part of the CTP so we will have to wait but I would imagine that there will have to be a new Report Viewer control to handle the new functions that will be released when it goes to RTM
SSRS in 2011/2012 is actually code named "Denali". Project Crescent is the code name for a new ad-hoc report building/self-service BI tool that leverages Reporting Services.
AFAIK, they cannot release a new version of the control with Denali because it will be out of band with the IDE release (Visual Studio), since VS and SQL have different ship cycles, and the Report Viewer controls ship with VS.
We'll probably have to wait until the next version of VS to get a updated version of the Report Viewer controls for SQL Server "Denali".

SQL Managment Studio 2008 R2 dual monitor support?

I have a question. If it is possible to achieve I may just jump with joy.
As many of you undoubtedly already know, Visual Studio 2010 has support that allows you to drag and position your open files within a project. For example you have Page.aspx and Page.aspx.cs open. You can drag the tab and position it around. You can dock it in parts of visual studion, but you can also allow it to float as a separate window.
I am wondering. Can the same thing be done with Microsoft SQL Managment Studio 2008 R2? This would be extremely useful when I need to view a stored procedure or table and work on another stored procedure or table. I would love to be able to somehow drag out the tab to my second monitor.
If there isn't any built in functionality for this, is there any third party add-ons available? If not, does anybody have any tricks that they use?
No, SQL Server 2012 (code-named "Denali", due by the end of 2011) will be shipping with a new SQL Server Management Studio, based on Visual Studio 2010, which will feature multi-monitor support.
See: SQL SERVER – 2012 – Multi-Monitor SSMS Windows
With earlier versions of SQL Server Management Studio (based on VS2005/2008), you cannot do this, unfortunately.
You'll have to be patient until SQL Server 2012 ships... or you can download the CTP1 test release to get an early feeling of what it'll be like...
I was just looking for the same thing. After reading this answer, I was not impressed at all. I just thought.."what if...?"
Create a new vertical group, max sure SSMS is not maximized. Extend the window to the other monitor. Adjust the vertical groups. Now you have them on both screens. It works like a charm my friend. (;