Unable to add model from database in asp.net web API project - mysql

I am creating a web API in visual studio. I am using MySQL database. I have downloaded each and every package that is needed for MySQL from nuget. When I try to add a model from my database I am unable to add it. Below is the image.
When I press next button. The window is closed down and I am not redirected to the next step. Though the DB is added in the server explorer window, the model is not added.
Any help is highly appreciated

Related

Visual Studio - ssis project for database on server

I am using Visual Studio 2017. I am trying to create an SSIS project that works on a database I have on a server. I have the project and solution. How do I say, use this DB as source so I can create a NEW ssis package ?
Thanks
Heather F
You can create a new connection manager at either the package or project level. More details on these and their scopes are as follows.
Package Level- When the package is open in the designer, the Connection Managers window will be docked below the Control Flow. Right-click within this area go to New Connection..., highlight the OLEDB type and press Add... On the dialog that comes up, press the New... button and enter the server name that will be connected to, the authentication type (and username/password for SQL Server authentication) and the database to connect to. This database will be the initial catalog that any SQL statements will be sent to, unless they use a three part object name with the database (i.e. Database.Schema.Table). Verify the connection is successful through the Test Connection button. This connection manager is only available to the package that it is created in.
Project Level- In the Solution Explorer (if you don't see this, go to View on the top menu, then Solution Explorer), right-click the Connection Managers folder and select New Connection Manager. You can also do this from the Project drop-down on the top menu and choosing the same option. From here, you will follow the same steps as with the package level connection manager, beginning with selecting the OLEDB provider type. This connection manager will be available to all packages within the project it was created in.
Go in the Connection Managers pane and create a new connection, specific to your database type.
Then you can convert the connection to be a Project Connection(by right clicking on it).

Swift application is not updated when using IBM microclimate

I created a default swift application using IBM microclimate which I installed locally and the default application works fine. However when I update the home page of the application I cannot get the home page displayed to reflect the changes I made.
There is a issue with IBM Microclimate where it does not automatically detect changes in a Swift application and make them available. In order to work around this issue you must stop Microclimate using the "mcdev stop" command and then re-start it using the "mcdev start" command. This will result in the application being re-built and deployed based on the changes made.

The partner transaction manager has disabled its support for remote/network transactions in MSharp

The main issue here makes it different from other available problems and solutions (here) is that, I am working with a previously working M# project and right now after upgrading to M# v4.8.334 (or maybe some other modifications regarding Visual Studio 2017 installation), if I want to add any new fields to any entity in MSharp IDE, it gives the following error
Base issue: The partner transaction manager has disabled its support
for remote/network transactions. (Exception from HRESULT: 0x8004D025)
One important point to note is that for newly created projects it is working correctly without this exception so my DTC settings and service are configured correctly.
Updated:
my main issue was my app SQL database connection string which I have changed it from default local instance in web app web.config , to remotely hosted production database and after changing back that connection string this issue gets resolved
it is useful to note that there is another database with .DesignTime suffix which is created beside your app .temp database and I searched for designTime in content of files in the project and did not found any trace of it, so it seems that you do not have much control over it and in design time maybe M# IDE is looking for it beside you db, beside the fact that DTC service must be running on remote server
for anyone looking for more correct DTC setting which is recommended by MSharp company note the following image

How can i connect a html page to a Microsoft SQL Server?

I am currently working on a html web page that is supposed to visualize the data (with tables, charts, graphs...) saved in a SQL database which lies on a local Microsoft SQL Server 2014.
Is there a common practise to connect the web page to this server? I stumbled upon node.js and ajax, but i could not manage to find a proper way to get the data out of the database.
I'm completely new to this topic since i never had to back up a webpage dynamically by connecting to a database so please take me there in baby steps :)
So far, i'm using nothing else but jQuery.
Thank you in advance!
The most basic way is to install XAMPP on your server. On it's official site there are manuals to installing and configuring it.
To connect PHP to SQL Server your will need to install proper drivers (check PHP version, x64/x86 etc on 'details' part of page).
Basic info how to connect to SQL Server you can find on web or, for example, here to connect via PDO, and here to connect via SQLSRV.
After on installations and configuring is done - you need to create PHP page that will take data from SQL Server and show it to user in proper way.
EDIT
I forgot about SSRS (SQL Server Reporting Services)! Here is an old good guide how to use it.
"Hi, you can do this by creating a DSN using ODBC Data Source:
In the Visual Studio IDE, right click on ""Data Connections"" in the Server Explorer
When ""Add Connection""opens, browse for the server from which the data to be pulled from and displayed.
Now open the ODBC Source Administrator: Start | All Programs | Control Panel |Administrative Tools | Data Sources(ODBC)
Select the DSN tab and click ""Add"". In the ""Create New Data Source"" window, scroll down to SQL Server Native Client 10.0
Select the proper parameters and click ""Finish""
Now open Visual Studio IDE and drag a Gridview control from the tool.
Click ""New data source"" from the grid and select the database from the template
Click ""New connection"" and select Microsoft ODBC Data source. Browse to the newly created DSN. 
By assigning proper binding column to the grid the data can be displayed in the html grid.
"

Error using Microsoft Access Database to create ASP.NET website

I am creating a simple C# CMS system using a Microsoft Access database
This is my connection string in the web.config file
<add name="VirtualCMSConnectionString" connectionString="Provider=Microsoft.Jet.OLEDB.4.0; Data Source=|DataDirectory|ASPNetDB.mdb" providerName="System.Data.OleDB"/>
I have used the "Access Provider" module found here: http://blog.krisvandermast.com/UsingAccessInsteadOfSQLServerForYourASPNETApplicationServices.aspx
The problem I am having is that when I try to create a Dataset with the dataset designing I recieve an error when I try to choose the connection string for the table adapter.
Failed to open a connection to the database
"Cannot obtain provider factory for
data provider named
'System.Data.OleDb'
Check the connection and try again
Could anyone please help me on this matter.
Thanks.
Have you downloaded the .vsi, extracted it, built the SampleAccessProviders.dll and added it to your project?
Now that we have created the assembly
it's time to actually use it. Open
your Visual Studio or Visual Web
Developer Express and create a new
website. In the project you create a
new subfolder called bin. After
creation right click on it and choose
Add existing item... from the context
menu that appears. Navigate to the
place where the built assembly is. Add
it to the bin folder of the website
project. After that repeat the same
thing with the access database
(ASPNetDB.mdb) file but this time put
it in the dedicated folder App_Data
which is one of the predefined ASP.NET
2.0 subfolders.