dcsimg
Results 1 to 4 of 4

Thread: How do Xamarin forms connect to SQL Server ?

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2008
    Posts
    341

    How do Xamarin forms connect to SQL Server ?

    How do I process the xamarin forms that connect to SQL Server and export data to the listView ? I'm looking for this simple example xamarin forms that connect to SQL Server and display data to the listView. What do I find on google ?

  2. #2
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    31,823

    Re: How do Xamarin forms connect to SQL Server ?

    I don't know... what did you find on google? Try googling xamarin sql server .... sometimes just going with the basics works best.

    I found this: https://forums.xamarin.com/discussio...-to-sql-server
    Which talks about using a REST WebAPI to talk to SQL Server. The xamarin app doesn't do it directly, but invokes the queries through a REST API call over the web.
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  3. #3
    Superbly Moderated NeedSomeAnswers's Avatar
    Join Date
    Jun 2002
    Location
    Manchester uk
    Posts
    2,464

    Re: How do Xamarin forms connect to SQL Server ?

    I found this: https://forums.xamarin.com/discussio...-to-sql-server
    Which talks about using a REST WebAPI to talk to SQL Server. The xamarin app doesn't do it directly, but invokes the queries through a REST API call over the web.
    Yep i second that, your Xamarin app wont talk directly to SQL Server.

    Think about it this way, when you finally publish your mobile app and make it usable on a mobile phone, if it did have a direct link to SQL Server then you would only be able to use that app when you were wirelessly attached to the same network as your SQL Server is on (and therefore your app isn't really very mobile is it!!)

    Almost all mobile apps will use a REST web service of some sort to get data,

    Your Xamarin forms app will make calls to your web service, your web service talks to the SQL Server and gets your data into a class object or list of object, and then converts it and returns it as JSON to your mobile app. Your mobile app then once it has received that data converts the JSON back into a class object or a list of objects which you can then use in your mobile app.

    Your first step before you do any mobile development should be to create your web service, write you code to pull data form SQL server and get you web service to return data.

    Once you have at least one web service call working and returning data successfully you can then look to hook it up to your mobile app.
    Please Mark your Thread "Resolved", if the query is solved & Rate those who have helped you



  4. #4

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2008
    Posts
    341

    Re: How do Xamarin forms connect to SQL Server ?

    I'm looking for this simple example on google no, do you know site that supports demo library using REST WebAPI with SQL Server? The page you submitted has no example https://forums.xamarin.com/discussio...-to-sql-server

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Featured


Click Here to Expand Forum to Full Width