Web application development using MS Access - c#

I have a problem with access database. I am developing a web application in visual studio 2010 using C#. I was using sql server 2005 as my database. Recently it is changed into Access. When I am trying to save some data to the Access database from my application it won't work. But when I am trying to do the same from Access itself it works correctly. What is the problem and what will I do for rectifying this problem.

There is some difference with query in ms-access.Like if you have to query with date column then you have to use #+date+# instead of '+date+'

Related

Easiest method to export MS SQL SERVER database to MySql Database

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.

Data Source Connection in Windows Forms (C#)

I try to write a Windows Forms Application, which should have a Data Source connection. I tried it for at least two hours now, but I don't get it. I tried to use a DataSet or a Service-based Database, but I don't know how to get access to the data.
I know how to set up my tables, that is not the problem.
I want to read/update/insert to my tables through the C# code without using SQL Commands. Is there an example code or tutorial anywhere?
I'm using SQL Server Express 2014 and Visual Studio Community 2015.
Thanks in advance

Database application using SQL Server 2008 or any dbms

I'm developing a database application using SQL Server 2008. Since I finished my project and I thought I should see it working on another PC or friend. There is a problem in the database server it wants to connect. I want my app connects to the SQL Server every time it runs on a PC of mine, or any other's without losing any data.
I'm using Microsoft SQL Server 2008 installed. I want to use my app other pc without installing Microsft SQL Server.
If you want to make your database 'portable' you have a few options:
Use a online database service, like Microsoft Azure. You can have one central database which you can use with an internet connection;
Save the database next to the application, something like 'embedded', you can use LocalDB for that. Make sure you copy the database file along with the application.
When you want to run your application on another pc, one way is updating connectionString of DB.

Create SQL Server database in Visual Studio for a Winforms app

I need in education to do win-forms app, recently I done project on asp.net, there I created without any problem new SQL Server database and send it to SQL Server, and added it to project.
But how can I do this using simple windows forms? Are there any good tutorials? (also I need something like db designer).
On asp.net mvc I use linq... But couldn't find good tutorial for create, send and attach SQL Server database on winforms.
I do this with .net 4.0 and SQL Server 2008 and Microsoft Visual Studio 2010
You can use Entity Framework Code First to design your db and then call Database.SetInitializer to create the database. Take a look at this article Understanding Database Initializers in Entity Framework Code First

How can I convert a program currently using an Access database to use Microsoft SQL Server?

I have a Windows application written in C# that works with an Access database file.
Furthermore, I use some DataSets in my project that work with this Access database.
Arising from this, I have two questions:
How can I convert the Access database file into an SQL Server database, and
How can I convert the project code (using Access DataSets) to work with the SQL Server database?
I believe that MS-Access has an "export to SQL" functionality somewhere.
simple google reveals details here and here
Try SQL Server Migration Assistant for Access from the link below.
http://www.microsoft.com/downloads/details.aspx?FamilyID=d842f8b4-c914-4ac7-b2f3-d25fff4e24fb&displaylang=en
and for SQL Server Migration Assistant 2008 for Access
http://www.microsoft.com/downloads/details.aspx?FamilyID=133b59c2-c89c-4641-bebb-6d04476ec1ba&DisplayLang=en
you can import database from access db to sql server. for this you can make a new db in sql server, then press right click in db name, after that from showed menu, go like below:
Tasks->Import Data
use Microsoft Access as data source.
this is the best way.
Have you tried using the inbuilt upsizing wizard in MS Access? Under Access 2007 its under the Database Tools tab | SQL Server.
From the description: "The Upsizing wizard allows you to easily upsize your Microsoft Access Database to a Microsoft SQL server database"

Categories

Resources