hi, Is there any way to access the remote server database from the iphone? except the way of json or by xml. Can i get sample code?
If your server has been developed to handle requests and send response, u can use NSMutableURLRequest and achieve data. You will receive pure HTML data and then u have to parse it.
http://ODBCrouter.com/ipad (new) includes XCode libraries and a sample application that show how to do "live" access just about any database over the network using the industry standard ODBC programming interface. On the server-side you just need to setup the correct Windows ODBC driver and ODBC Router in a Windows PC or VM, or on the same box hosting your database. The client-side components are free (and free to redistribute with your app), the server-side component costs about the same as a TV, which is most likely going to be far less than the tremendous effort involved to create a web service and maintain backwards compatibility with earlier versions of your app as it evolves.