How to connect sybase database from iOS? - iphone

1)Is it possible to connect sybase database which is in windows machine from iOS Application for iphone development?
2)If yes,How can we connect and access data base data through query from iOS and see the result in Iphone simulator?

SAP's Sybase Unwired Platform allows you to build mobile applications that can take advantage of your enterprise data sources.

Related

Where can I find out about coding a website to my app?

I just found out that an iPhone can act as a web server to access the app's data. I'm using Xcode. How do I extend my app's capabilities so that users can edit app data using a Mac. Where can I learn about this? Can you give me summary and a website please?
I hope it's using Apache Tomcat. I suppose I have to build a website to process and display the app's data. I wonder if iPhone supports jsp since it's using UNIX. I really don't want to use PHP.
Currently Money Manager has that feature.
Searching for embedded iOS web server returns a few solutions:
Run a webserver on an iOS device
A small, lightweight, embeddable HTTP server for Mac OS X or iOS applications
Lightweight GCD based HTTP server for OS X & iOS
You will be unlikely to fit php or tomcat onto an iOS device; the lack of memory and processing power will be technically challenging.
Apple will also likely take a negative view of the inclusion of a general purpose scripting language in any app your submit to the App Store.

Xcode 4 and Databases

I am new to programing iPhone applications.
I am pretty much done building the interfaces and I built a database using Visual Studio 2008.
Now I want to connect my application to that database using a SQL server as a web service (that acts as an intermediary layer between my application and database). I will reserve a server for the database later.
My question is: I have a log in a view where I ask for the username and password, how can I use the information from Xcode and send it to the database to verify it?
Your help will be very much appreciated.
From your description I am not sure if I understand, but if you need to have an app and some webservice with data you can check for example this tutorial from Ray Wenderlich:
http://www.raywenderlich.com/2965/how-to-write-an-ios-app-that-uses-a-web-service
Also, you might find useful this SO question:
iPhone app and web service

iPhone Sdk can Access SQL Server Directly [duplicate]

This question already has answers here:
How do i query data from SQL Server 2005/2008 databases to iPhone
(2 answers)
Closed 9 years ago.
Is it possible that we access SQL Server 2005/2008 through iPhone app using any Framework, Library etc. I know that SQL Server can be accessed using XML web services & those web services can communicate to an iPhone app. I want to confirm if we can directly access the SQL Server 2005/2008 without using XML Web services
It demonstrably is possible to connect direct from iOS to SQLServer, check out http://www.impathic.com/impathic/index.html
What does not currently seem to exist is a library to assist in implementing this. I'd love for somebody to prove me wrong!
It might be possible to use the FreeTDS library. I have used in the past for some test projects.
The only problem is the license, which might be incompatible with the App store, so creating an app which you want to distribute using the App store, won't be accepted.
If you would like, I can send you a little wrapper I wrote a year or two back.

iphone data synchronization

I'm new to iphone development. I currently have an app on windows mobile that uses a local database on the device (sqlce) and the app is able to synchronize the data between the device and a remote database through a web service using microsoft sync framework.
Is this requirement feasible on an iphone app? Id like to build a version of my app on the iphone. I see that the iphone can use sqlite for storage on the device.
But does the sdk have something for data synchronization?
No, you have to use JSON or XML to get the data from your remote server via a NSURLConnection and write the code to synchronise the sqlite db on the iPhone. There are plenty of JSON frameworks for the iphone and for the XML route you can use NSXMLParser.

Can RIA flash apps on the IPhone store persist data until an internet connection is available?

I'm interested in building a thick client application for my existing web services that will run on the IPhone. Flash finally seems to be an option, so I thought about using Flex for client side development.
However, since flash apps are not natively supported by the IPhone, but only through a wrapper, I was wondering if these apps can persist any data. Data entered by the user should eventually be transmitted to the web service, but until then I want it to persist even if the Iphone should run out of power.
Is this possible? Or does the Iphone flash wrapper make it impossible to access the hard disk?
You can write to a database with SQLite3 as a way to store data on the phone.
"You have access to nearly all the AIR 2.0 and Flash Player 10.1 APIs. For example, you can use APIs such as RTMP, Remote Shared Objects, and AMF as well as AIR APIs like SQLite and filesystem access. For more information see the developer FAQ on Adobe Labs."
-source http://www.adobe.com/devnet/logged_in/abansod_iphone.html#
Also they seem to recommend not using Flex:
"While it is possible to create iPhone content using the desktop Flex Framework, we do not recommend it. The Flex framework is currently optimized for execution in a desktop environment. The performance, UI, and interaction models have not been optimized for mobile devices."
source http://labs.adobe.com/wiki/index.php/Applications_for_iPhone#Can_I_use_the_Flex_Framework_to_create_content_for_the_iPhone.3F
Hope that helps :)
In case someone else is also looking for a way to use Flex on Iphones: Adobe is planning to release a mobile version of the Flex framework 2010.