System.data.sqlclient in windows phone SDK 7.8 - visual-studio-2010

I am trying to connect sql server 2008 from visual studio 2010 for a windows phone app (SDK 7.8).
But cannot add below written line on mypage.xaml.cs:
using System.Data.SqlClient;
and because of this I cannot open a sqlconnection.
I have tried adding reference but there was no system.data.dll or system.data.sqlclient.dll.
I have also installed microsoft sql server compact 4.0 but even after that I couldnot find System.Data.Sqlclient.dll.
Do someone know how to solve this problem/ have faced same problem.
Thanx in advance.

There is no SQL Server connector available for Windows Phone. As a workaround, I would suggest exposing the data through a webservice, and consuming this webservice from your mobile app.

Related

What use as Database for developing asp.net vNext + Entity Framework 7 on OSX

I'm trying to set up my environment for developing asp.net vNext + Entity Framework 7 on my OSX.
Apparently, there is no provider for MySQL neither PostgreSQL yet. Thus, what can be used as database for developing on OSX?
What you folks have been doing for develop asp.net vNext on OSX? Or should I set up a Windows VM?
Any suggestion?
I've got even an open issue on Github on this topic.
Cheers
We will have a PostgreSQL and/or MySQL provider for EF7 (either delivered by our team or we'll work with a provider writer to help them build it). Work hasn't started on them yet though.
We haven't been focusing on EF7 on Mono at this stage, so there are likely some rough edges. We do have some folks who have successfully used it to connect to a remote SQL Server though.
To date, no RDBMS is supported on OSX for EF7.
Since (LocalDB)\v11.0 doesn't allow remote access and run on OSX/LNX, I've setup a SQLServer2012 Express and SQLServer 2012 Standard Edition hosted on a local Windows VM to establish a remote DB connection from my Visual Studio Code project.
From Visual Studio Code running on OSX, EF7 fails to successfully connect and interact with those local SQL Servers. In this instance, I was using the ASP.NET 5 Music Store example project: GitHub Source
Oh, and with all the SSL requirements, AZURE SQL Server is out of the question as an option.
Microsoft is heading in the right direction, we'll get there, but you're dealing with bleeding edge EF7 at the moment which is a complete reengineering from EF6.

sql server cannot connect to windows 8

I have a problem when i try to connect my SQL server 2008 express edition to visual studio 2010 and i was try to create web service.
When i am try to install server it show error message like it is not suit for windows 8 operating system.
but i can't connect my SQL server to windows 8 system.
i am using windows 64 bit operating system.
please fix my problem and please suggest correct structure query language version for windows 8.
Thanks advance.....

missing SQLite data provider in VS 2013

I'm using VS 2013 to develop Win 8.1 app. I chose to deal with SQLite but I coudn't find the data provider when I was trying to add a new connection to manage my database.
Any help is appreciated
Install this:
http://system.data.sqlite.org/downloads/1.0.101.0/sqlite-netFx46-setup-bundle-x86-2015-1.0.101.0.exe
and reboot evertything
I have lost 3 hours with this problem
Updated with new version.
Updated with sanuel-jackson's comment info.
http://system.data.sqlite.org/index.html/doc/trunk/www/downloads.wiki
and download Setups for 32-bit Windows (.NET Framework 4.5.1) where
This is the only setup package that is capable of installing the design-time components for Visual Studio 2013.

OracleClient works with WPF application but not web application

I am porting a WPF application to a web application (ASP.net & C#). My IDE is Visual Studio 2008 and we are using Oracle 11g. My OS is Windows 7 , 64-bit. THe WPF application uses System.Data.OracleClient to connect to our database and it works fine. I added the OracleClient reference to the workspace and tried using the same namespace in the ASP.Net application but I get an error when trying to connect to the database (.Open()). The error is:
"Attempt to load Oracle client libraries threw BadImageFormatException. This problem will occur when running in 64 bit mode with the 32 bit Oracle client components installed."
I checked the configuration manager in the WPF application and the web app. They are set the same:
Platform - AnyCPU
I tried using the 64-bit version of Oracle Client and it still gives me the same error.
I did this by removing the reference to System.Data.OracleClient located in Windows/Microsoft.NET\Framework\v2.0.50727 and added the reference to the 64-bit version in Windows/Microsoft.NET\Framework64\v2.0.50727.
Any suggestions or help would be appreciated.
Thanks

how to add a reference to the system.data.SQLite.dll to the windows phone 7

I'm new to windows phone 7, please help me with this query.
I want to add a SQLite database in windows phone 7. I downloaded the system.data.SQLite.dll
from sourceforge(www.sqlite.org). i add it as a reference in windows phone 7 visual studio 2010 express for windows phone. But, it show a error message that, System.Data.SQLite.dll is not built using windows
phone runtime.
I suppose you downloaded a wrong .dll. ( for c# .net, and not silverlight).
If you want, you have a great tutorial for using SQLite in your WP7 apps, explains how to use SQL (tutorial uses sqliteClient )

Resources