I'm developing a web application with ASP.net & C# and it needs to connect to mysql database.
I'm not sure if I should use linq or OleDB to connect to mysql!!!
can you give me some advices about that?
Couple of options:
http://code2code.net/DB_Linq/
http://code.google.com/p/dblinq2007/
http://www.alinq.org
you can use either Entity Framework or NHibernate. Both support Linq.
Related
I'm writing a C# application that needs to be able to query and update an Azure SQL database. I've looked into ADO.NET, which appears to be a great library for querying SQL databases without just writing the queries as string literals.
Before I invest too much time into learning this library I want to make sure that I can connect it to Azure successfully. I found this article which appears to have at one point contained a tutorial for doing exactly that, but doesn't exist anymore. Can anyone confirm that ADO.NET can be used with Azure SQL?
Yes, Of course we can.
ADO.NET can be used with Azure SQL, we can use ADO.NET to operate Azure SQL just like we operate SQL Server. But there are some differences between Azure SQL Db and SQL Server, we can refer to: Feature comparison: Azure SQL Database versus SQL Server
We can also use Linq to SQL to operate SQL Azure for some simple operations because it is more convenient to operate our database. More information we can refer to: LINQ to SQL: .NET Language-Integrated Query for Relational Data
You can and you can find the connection string to use in the Azure Portal. Here's a guide:
https://learn.microsoft.com/en-us/azure/sql-database/sql-database-connect-query-dotnet-visual-studio
I installed and configured sphinx search engine (v. 2.2.11) in ubuntu and integrated it with oracle database to retrieve and index data from oracle. I also can submit query through sql client of sphinx by using command line and every thing is ok.
Now my question is: How can I connect to sphinx through C#? There is no official API for .Net.ŮŽAlthough there are several 3rd party APIs, some of them not free and some will not be updated anymore. I also saw SphinxSE that is a mysql storage engine and According to what I understood, Only used when data is stored in mysql but my data is stored in oracle and I use odbc for integrating oracle and sphinx.
So, Should I write an api myself or there may be other ways?
Thanks for any suggestion
Just use SphinxQL and connect to your Sphinx instance using any mysql library. Just make sure sphinxql is enabled in your config, you should have smth like this:
listen = 9314:mysql41
This tells Sphinx to accept connections from mysql clients on port 9314.
I have a .Net console application that extracts data from webapi and fill 5 tables on a MS SQL Server database.
Now I have to export these tables to a MySql Database.
How can I do that in an easy way?
The Console Application is coded with Visual Studio 2015 (C#).
Is it possible to use LinqToSql on a MySql Database ?
Or is it possible to use MySql as Destination Server on Microsoft Integration Service ?
Thanks
I Solved the problem by editing the .Net Console application in order to implement a loop-insert in MySql Database using MySql.Data.MySqlClient.
It is not fast for big data loading but it works properly.
How to create a simple Local SQL database & insert values into it using C#? can any one provide me a sample code or project link.. i googled a bit, i am not getting how to do..
if you can advice it would be great
If you are creating a Desktop application, you can create a local Sql server Ce (Compact edition) database.
When you install Visual C# 2008 Express, It will automatically install SQL Compact 3.5 on your box.
Here is an excellent Getting started tutorial on the topic:
http://dotnetperls.com/sqlce
I would use SQLite. It's simple and it doesn't need any kind of installation, the full database it's only a file.
Sql Server Compact is a great embedded database. It is also fully documented on MSDN, see System.Data.SqlServerCe Namespace.
You can easily create and modify databases programatically, see SqlCeEngine.CreateDatabase Method.
You can download it on the SQL Server Compact Download Page.
What's the best way to connect to a Informix database from .Net?
I'm developing a client-server application based on a legacy Informix DB which used to be connected by JDBC.
I need it, from the most important to the least:
To be fast
DB server changes not needed
No ODBC and no dependencies, other than de .Net Framework 2.0
Thanks in advance for your help.
The connections strings to use with OleDb or ADO.NET can be found here.
Take a look at this article on how to connect to an Informix database using ADO.NET.
We connect to Informix from .NET, but we do it via web services that are written in FourJ's BDL
http://publib.boulder.ibm.com/infocenter/idshelp/v10/index.jsp?topic=/com.ibm.relnotes.doc/uc3/netrel.htm
See if that helps. Also, what about the built in ODBC or OLEDB drivers? Have you tried those? Those might work.
You might like to investigate OpenLink's Multi-Tier Informix driver for ADO.Net (just install everything on the client): http://uda.openlinksw.com/dotnet/mt/dotnet-informix-mt/