Silverlight connectivity with database using ado.net - silverlight

I want to connect my sql server 2005 database using ado.net in silverlight.
I want to connect manually to my database.
Please give me examples of populating gridview in silverlight manually.
Thanks

Silverlight doesn't support ADO.NET. You'll have to make a web service call and have your web method access the database. Check out this article for some help getting started.
Hope this helps!

Related

Access data from Microsoft SQL Server into Unity3d

We have spent more than a couple of days on this have gone though almost all available threads online but nothing has worked so far.
We are using Unity Version 2019.2.1 and Visual Studio 2019 Community Edition.
We have already tried the following:
We have tried using Entity Framework model using both ObjectContext and DataContext and in both ways the app.config file and .edmx file are lost when we reload the solution
We have also tried using legacy SqlConnection using System.Data and System.Data.SqlClient namespaces by copying the dlls into the Plugins folder
We have checked and double checked all SQL Server configurations, ports, authentication, etc. and use SQL Server on day-to-day basis for our other projects.
Can someone please point to any working sample / example / video / article on how to access data from Microsoft SQL Server in Unity3d?
Thanks in advance!
Regards,
Swapneel Shah
Check this for Connect to MS SQL database:
https://forum.unity.com/threads/connect-to-ms-sql-database.484855/

Visual Studio ADO.NET missing

I would like to connect my Visual Studio 2013 project (Windows 8.1 app, x86) to an external SQL Server database to get, visualize and set some values. Therefore I found out that I need to use ADO.NET.
Unfortunately the related template in Visual Studio seems to be missing. So I googled that problem and found some solution possibilities (reset visual studio settings and user data, reinstall Visual Studio, run newest version of EFTools,...), but nothing could help me. I tried for hours now...
So what could be the problem here? I have installed VS13 Ultimate from MSDNAA. Why are the templates missing? Is there another easy way to access the external SQL Server database?
Thank you very much!
edit:
It seems to be that a so named "Universal App" doesn't support ADO.NET (for other projects I easily can add an "ADO.Net Entity Data Model". What else can I do to access a SQL Server database? What is the right way in such case?
Most convenient way to implement database access would be with EntityFramework as you figured out already. What marc_s meant is that for your app, you cannot implement it directly in this type of the project.
Implement your Data Access Layer in a separate project of Class Library and expose the data using either WCF or WEB API projects (your services layer) that will make use of he DAL. For both Entity Framework and for services there are numerous tutorials all over the internet. When your services are working (and tested!) you just add a reference to your universal app and call the services from there. That way the database access is isolated from the application and all the vulnarable and time consuming logic stays on the server side.
P.S. Services and DAL does not need to be kept in the same machine as the database, however it's recommended to keep it in the same network.

Syncing 2 local SQL Server databases over WCF service in between

I am trying to sync 2 SQL Server databases. The scenario is that I have 2 PCs which have identical SQL Server database (both databases have the same structure and schema) and connected to the internet.
Now, I want to have a simple Windows application developed in C# and installed on both PC that may have a 'Sync' command button and clicking on that it calls a WCF service hosted on a web server which then sync data in both databases.
Please suggest the solution.
Try looking at merge replications or maybe better Sync Framework 2.1. Using WCF is not the way you want to go.

Architecture of team foundation server (tfs) excel add-in

We can use Excel to connect to a TFS server and then select a work item query. Based on the query a list of work Items shows up in excel. The data can be edited and published (saved) back to server.
I would like to know the architecture / technology that TFS excel add-in uses to save the data back to TFS.
Main question is does excel access data using which one of the following:
a web service that TFS exposes
the code in add-in using some TFS client side object model or
is it using some SQL server or SharePoint out of the box functionality to do it.
I’m pretty sure Excel is using TFS SDK libraries that are using TFS Web service in the background to achieve this.
I can tell you for sure that it’s not directly connecting to TFS database – that simply wouldn’t work every time remote connections on TFS database server are disabled. It would also require you to enter user/password for SQL Server instance it needs to connect to.
Here are couple links to get you started in the right direction.
Extending Team Foundation
Connect to Team Foundation Server from a Console Application – I’m not 100% sure but I guess excel is using something similar to this…
Hope these links helps you to understand more.
http://msdn.microsoft.com/en-us/library/vstudio/bb649552.aspx#self_service_excel
Olap data cube http://msdn.microsoft.com/en-us/library/bb649557.aspx

How to update an Access DB from the web?

I'm looking for a way to create an online form that will update an Access database that has just a few tables. Does anyone know of a simple solution for this?
ASP.NET should be able to do it just fine.
It depends on what web technology you use.
With Classic ASP, you can connect to the database the JET DB engine COM object that comes with any windows machine.
With ASP.NET, you can connect using OLEDB data connectors.

Resources