Unable to insert data into database - database

I am using SQLite.
When I try to insert data into the tables I get the following:
Mixed mode assembly is built against
version 'v2.0.50727' of the runtime
and cannot be loaded in the 4.0
runtime without additional
configuration information.
I am using ADO.NET 2.0 Provider for SQLite

Here
Here
Here
are links to previous questions that will help.

Related

Inserting data into Snowflake

I was wondering if, like with OpenSearch, I can insert data to a database or datalake without the need of creating a table (From what I know I can't do that, but I'm not sure). Thank you.
Snowflake just recently released schema detection to public preview
https://www.snowflake.com/blog/schema-detection-public-preview/
You can also load files direct to s3 or an internal stage with various formats supported

How to load data from oracle and sql server to HAWQ using Spring XD

Hi I have tables in Oracle and SQL Server. I need to load data from oracle and sql server into Pivotal HAWQ using Spring XD. Couldn't find in documentation.
You need to integrate sqoop jobs with Spring XD. See link below for sqoop jobs with springxd
https://github.com/tzolov/spring-xd-sqoop-job
You can use jdbchdfs job to load the data in HDFS as CSV or any PXF supported format. Then you can map the loaded data to HAWQ tables using PXF External tables support. If you need to load this data to Native HAWQ tables then you can do a SELECT INSERT from there, or have SELECT INSERT configured as another batch job that loads the data from PXF External table to HAWQ native.
Outsourcer is another open source solution that was originally designed to load data from Oracle and SQL Server into Greenplum but was enhanced some time ago to also support HAWQ.
All of the documentation and downloads are on http://www.pivotalguru.com/
And if you are interested in seeing the source code, here it is: https://github.com/pivotalguru/outsourcer

ASP.NET MVC Code-First EF - Possible to use EF without database create permissions?

So I'm working on an ASP.NET project for university. We have to upload our code to a server running IIS and SQL Server 2008. I've written my project using MVC Code-First EF. I understand that the Entity Framework system needs permission to create the database to work properly (you can't just give it an empty database and let it fill it with data). This has created a problem for me since I do not have database creation privileges on the shared SQL Server. Is there any way around this?
As you don't have permissions, it sounds like you'd need to get a DBA to create your database on the server you are trying to deploy to - this could be done from either a database creation script or from a database backup of the db on your dev machine. You can then instruct EF code first not to try to create / update the database automatically by adding this line to your global.asax (or indeed anywhere before you first access the database)
Database.SetInitializer<YourContextType>(null);
You can use an existing database, rather than let EF create one for you. I have done this myself, but admittedly only when using EF Migrations. Otherwise, you run into trouble with missing table exceptions and what not.
When using migrations, just point your connection string to your empty database, create an initial migration to populate the database with your schema and then update the database itself.
See this answer: How do I create a migration for an existing database in EntityFramework 4.3?
.. which include this nice link to getting started with EF Migrations: http://thedatafarm.com/blog/data-access/using-ef-migrations-with-an-existing-database/
All this is available through Nuget, and if you have access to Pluralsight content, I can highly recommend Julie Lerman's video on the topic.
If you don't want to use Migrations, you can still use Code First if you just create the database objects manually using SMMS, but obviously you have the manual work of keeping your model and the database in sync.

How do I integrate VisualFoxPro DB with Magento

I am an IA working on a Magento/VFP integration solution.
Does anyone know if VisualFoxPro has a method by which Magento can read the VFP datadase?
These DB calls will also need to integrate with SagePro and PayFlow
You can read VFP data using ODBC or OLE DB. So, if Magento supports either of those, you're in business.
Magento is currently MySQL only. The planned Magento 2.0 will be SQL'99 compliant and so work with any supporting DBMS.

(java) data entry gui builder from (oracle) db schema

Does anyone know of a tool that ingests an Oracle database schema and generates a (preferably but not exclusively Java) data entry GUI? Dabo is an example of a tool that allows you to build a GUI but it uses python and is not yet ready for Oracle (according to the website) and doesn't automatically produce a GUI.
The following tutorial at by NetBeans called Creating a Simple Database Client in JavaFX Composer could be of interest to you. As long as you can connect to your Oracle database through JDBC as a data source, this should work for you.
For web based, you have a lot of options. Django is indeed one of them. Other is cakePhP and I'm sure there would be a Ruby analog as well.
There are also technologies that go across desktop/web e.g. Adobe Air as well.

Resources