I have been searching for a way to connect my android application with SQL Server 2008 R2.
Previously I have worked on mysql-android base code which use php ... and have used json parser in android code.
I don't know how to connect with SQL Server via c# webservice.
Please reply with example for doing so.
Thanks in advance
Why your task is 'I have been searching for a way to connect my android application with SQL Server 2008 R2'? Your android application doesn't connect to any database, it connects to web service. But web service really connects to database. So in fact you need to connect your web service to SQL Server.
There are two obvious ways:
a) update your php web service to use SQL Server
b) redesign your web service using c#
Both ways need separate discussion after you make your decision.
Related
I learn how to make a simple client server chat on c#.
I did a small project and i really need to host the server side code on some server that support c# ,on my local machine it works fine.
Please,
How can i do this?whats my options?
You will need an iis server aka windows server. İf you don't want to physically host Azure is a good option if not there are many VM providers of Windows servers
We're currently developing a desktop Application using C# and we've created a local database using MySQL.
Now are trying to create a desktop application that can access a web database but we don't know what to do.
1) Is it possible to create a desktop application that can do that just by using C#?
2) How can we convert or connect a local database to the internet?
3) What language do we need to learn?
So if I understand correctly the application needs to collect data from a web service. Not having much experience with C# tho it sounds like you need a database, web server and the client application (which you have already).
1) Is it possible to create a desktop application that can do that just by using C#?
Yes, it is. You could write a server socket program in C# and connect to it using your client application (inspiration)
2) How can we convert or connect a local database to the internet?
You could setup a MySQL server (netbeans example). Or simply connect the server socket program from above to the database (take a look at this).
3) what do language do we need to learn?
Seems like you have what you need in C# and SQL to complete the task.
My advice is to continue in the following order:
Write the Server app, so it responds with some dummy data
Modify your client app to connect to the server and successfully receive data
Once (2) is complete modify the server to connect to the database
My problem has a couple things:
I got a website constructed in joomla, hosted on linux server (that means that sqlsrv doesn't work because it's made for windows only, and the host administrator already informed me that they can't install any php extension).
I got a C# program, and my database is hosted on Amazon (SQL Server 2012).
To resume, i need to connect my website to my SQL database program to show data, and modify it, etc etc, on web.
So, if you guys have any ideia how can i make it, i really appreciate that.
Best regards,
Hélder Lopes
I recommend to install the php module :
source : http://technet.microsoft.com/en-us/library/cc793139(v=sql.90).aspx
source : http://www.php.net/manual/en/book.mssql.php
If there is no way, move your database to your website's hosting (converting db to mysql), and make your C# program use mysql and point it to the website database.
good luck.
I have a Windows 2008 server on which I run a web application. The application receives user inputs {x,y,z} every few seconds, and I perform certain operations on them to achieve results {a,b,c}. Once this is done, I store a,b,c in SQL server 2008 on the windows server.
I have now setup another web application on a Linux server, on which I need to display these results {a,b,c}, in realtime (or almost), as they are produced in my windows server.
For each record, or set of records that I receive on the Linux VPS, I'll need to return an acknowledgement which gets reflected/ stored in the SQL Server in the Windows server.
What are the options to achieve this?
I'm thinking a C# SOAP client in the windows VPS with a tornado/python SOAP server in the Linux VPS over https?
I would consider using SignalR or Redis
I am working on windows forms application using c#.net. i have developed an application(3-tier) that uses sql database as backend. i need to deploy the database on server and my app. on client machine. but how could my application communicate with database on server. please guide me.
you need a connection string that works fine during development. On your development machine if the application is connecting fine to the database server, chances are that on your client machine, it would work as well. Sometimes, the problem occurs with the credentials that you use, that might work on the development machine but on the client it wont connect due to the lack of access rights. so you need to make sure that you give proper credentials to connect to the SQL server
You don't need to do any rocket science for this. All you need to do is on the client side use the proper connection string that can connect to a remotely installed SQL Server.
Use EntityFramework for your sql server connection for updating, inserting and deleting.
Use storedprocedures for the insert/update/delete functions.