Connect to MS SQL Server
Posted: Sat Mar 17, 2012 6:31 am
Its posible from iOS to connect to SQL Server and work like we can do in sqlite or mysql ?
Thanks
Thanks
Questions and answers about the LiveCode platform.
https://www.forums.livecode.com/
Watch out : i didn't say it was working with iOS, because i don't use it.FireWorx wrote:But on IOS? The only person that has said he does it is Bangkok, and he hasn't posted exactly how, although he says he uses a socket server. I am not sure how that works.
Dave
Code: Select all
put URL "http://192.9.202.1/mycgi.irev?"&myparameters into myresult
Code: Select all
on mouseUp
accept connections on 8192 with message "connection"
end mouseUp
on Connection theIP
read from socket theIP until return with message "incoming"
end Connection
on contacted theIP,theMessage
if char 1 of theMessage ="1" then
--- here connects to DB
--- sends the query
write myResult&"#" to socket TheIP with message "finish"
exit to top
end if
end contacted
Code: Select all
on mouseup
open socket to "192.9.202.1:8192" with message "iamconnected"
end mouseup
on iamconnected theSocket
write "1"&myparameters&return to socket theSocket
read from socket theSocket until "#" with message "displayResult"
end iamconnected
on displayResult theIP theMessage
close socket theIP
answer theMessage
end displayResult
Does it depend on the iOS version?peter786723 wrote:Yes you can connect with a iOS device to a mysql server, works perfect
Peter