my database turned into a "read-only" after changing PC - mysql

I need Help
I recently just created a program using Visual Studio 2017 with C#, i'm using Microsoft Visual Studio Installer Project Extension to create the installation.
i've tried installing the program in PC i used for programming (I created the database directly from Visual Studio Without sql management studio) and there's no problem there but
i faced a problem where after i Installed the program in different Computer, the Database turned into a fail
Failed to update database "C\... .mdf" because the database is read only.
i don't have sql management studio installed here as well. I've already tried to change the allowance from all the users on this PC but it still happenning.
so if you guys have any idea on what should i do that would be a lot of help.

Related

Visual Studio 2012 Entity Framework don't have MySQL Data Source Type

I'm using visual studio 2012 and installed MySQL 5.7 and all the developer tools. After I added EF 6.0 etc from Nuget and try to link to my database, MySQL is not part of the available data source as depicted below.
I can however, see the selection when trying to add connection at Server Explorer. May I know if anybody knows how to fix it? What have I missed? Thank you.
Update 1:
These are what I have installed.
After trying with my local PC and my VM, I found out the problem. Since I installed mysql-connector-net-6.10.5.msi, it's not supported. At my VM I had installed the mysql-connector-net-6.9.10.msi instead.
After changing the local PC to mysql-connector-net-6.9.10.msi, I'm able to see the data source. Is MySQL trying to phase out the support in the future?

Using Microsoft Tier Interaction Profiler with MySQL Database

Does the Visual Studio 2012 Tiered Interaction Profiler (TIP) work with the MySQL connector?
I'm trying to profile a C# applications use of a MySQL Database. Unfortunately attempts to use the built in Tier Interaction Profiler haven't worked. The "Tier Interaction" isn't included in the analysis report drop down.
My understanding of the profiler is that the connection uses an ADO.NET connector. Currently, I've tried:
Using the MySQL connector v6.8.0 as a direct download.
Using community installed which adds the Visual Studio components missing since v6.7
To ensure it wasn't an issue with Visual Studio I've tried it with an another application that uses an SQL Server database and it works correctly.
If it's of any relevance I'm using Windows 8.1.

Cannot open .rptproj files in VS2008/BIDS

I have a problem. This co-worker, whenever they open a BIDS project it gives her an error message:
...cannot be opened because its project type (.rptproj) is not
supported by this version of the application.
However, if I remote onto the computer using my login, it opens stuff just fine. The thing is, it was working for them for about 8-9 months. It just 'randomly' started doing this today. It also gives a similar error when creating new report projects.
Do you have an idea what the issue might be? I'm thinking maybe it's a configuration in the user profile? I mean, the computer obviously can open it up- just not for them. Has anyone experienced this and resolved it?
We are using the BIDS suite that comes with SQL Server. It is VS2008, we are running SQL Server 2008 R2.
Thanks in advance.
From Solved: project type (.rptproj) is not supported by this version of the application:
Install "Business Intelligence Development Studio" from the SQL Server 2008 installer.
See Business Intelligence Development Studio 2008 installation for more information on the installation.

ReportViewer problems

I've been trying to get a report running through Microsoft ReportViewer in Visual Studio 2012. Here is my situation.
I have a report (.rdl file) that was originally created through Microsoft Reporting Services running on a SQL Server 2008 R2 server.
I originally tried moving it into a VB.NET project running through Visual Studio 2005, but when I converted the .rdl file to .rdlc and tried to bring it into the VS 2005, I could not view the .rdlc file in design time. A while after that, I figured out that this was due to schema compatibility issues because of the fact that the report was created on a SQL Server 2008 server.
So then I tried creating a project through Visual Studio 2012 instead, which we also had in house. This time I was successfull at being able to view the report in design time. However after that, I ran into run time issues because I was using Version 8 of the Microsoft.ReportViewer.Winforms dll. I believe that this was also due to a schema comaptibility issue
So now, I'm trying to move up to using a newer version of the Microsoft.ReportViewer.Winforms dll (Version 11). When I remove the Version 8 and add the version 11 instead in my references, everything appears to be fine at first, no errors present. However, when I try to build my project I get the many compile errors all over the place like the following:
Type 'Microsoft.Reporting.WinForms.ReportViewer' is not defined.
The wierdest part is that if I were to remove and re-add the reference, or check one of the Microsoft.Reporting references in the Imported namespace, all the errors go away. But when I rebuild the project the errors come back, and I'm stuck.
I'm currently running the Microsoft .NET framework 4.5 on my computer, and I'm using Microsoft Visual Studio Professional 2012 as my development platform.
Any help would be appreciated
Thanks,
Doug
This might help: How to edit SSRS 2008R2 Reports in Visual Studio 2012?

How to use VS 2008 Shell to create SQL Server .net Stored Procedures

I'm trying to learn to create .net stored procedures, triggers, etc. using SQL Server 2008 Developer. I'm guessing my edition of Visual Studio 2008 Shell was installed with SS. At any rate, when I open visual studio and try to create a new project, all that is available is Business Intelligence Project and Other Project types. Other project types only lists Visual Studio Solutions.
Question: Is Visual Studio 2008 Shell appropriate for this or do I need a full-blown version? If I need the real thing, will VS 2010 Express work and if so, do I need to uninstall VS 2008 Shell first?
I have been searching for days for a solution to this. Any ideas any one?
There are a few gremlins regarding the order in which these various components (and versions of) are installed.
If you didn't previously have Visual Studio installed, the BI Dev Studio installation will install a VS shell called Visual Studio Premier Partner Edition.
From this MSDN thread:
You should make sure that Visual Studio is still installed. If you
didn't previously have VS installed, the BI Dev Studio installation
will install a VS shell called Visual Studio Premier Partner Edition.
Look in Add or Remove Programs for an entry like this. If you don't
find any entry for Visual Studio go to the location for SQL Server
setup and run .\Tools\Setup\vs_setup.exe. This will install the VS
Shell. After this is installed repair the BI Studio installation by
running the following from the command line from the .\Tools
directory: start /wait setup.exe /qb
REINSTALL=SQL_WarehouseDevWorkbench REINSTALLMODE=OMUS
Personally, I'd first try uninstalling the BIDS Shell version, and then installing Express (following above instructions if the extra project types don't appear).