Hi,
are there any plans to support Microsoft SQL Servers?
I know, i can connect to MS SQL via ODBC, but a direct connections is always better and would avoid problems with ODBC configuration.
MS SQL servers are more and more common / wide-spread.
Matthias
Real support for Microsoft SQL Server
Moderator: Klaus
-
- Posts: 17
- Joined: Tue Aug 10, 2010 3:16 pm
Re: Real support for Microsoft SQL Server
I would like to bring this request up to the top. A built in connection driver would be very useful, especially on web deployment of apps so i don't have to set up ODBC on every machine that uses the app.
-
- VIP Livecode Opensource Backer
- Posts: 1005
- Joined: Sat Apr 08, 2006 3:06 pm
- Contact:
Re: Real support for Microsoft SQL Server
Just a side note - to avoid configuring ODBC on each platform you can pass in an ODBC connection string to revDB. Here is some code stripped from a project that should give you an idea of how to build the string. You would then use the resulting string as the revOpenDatabase 'host' parameter.
Code: Select all
switch the platform
case "macos"
## URL is for OpenLink
put "DRIVER={" & sProjectA["database connection"]["odbc driver"][the platform] & "}" & \
";URL={ServerType=1;ServerName=" & urlExtractHost(sProjectA["database connection"]["odbc_host"]) into theString
if urlExtractPort(sProjectA["database connection"]["odbc_host"]) is not empty then
put ";PortNumber=" & urlExtractPort(sProjectA["database connection"]["odbc_host"]) after theString
end if
put ";DatabaseName=" & sProjectA["database connection"]["database name"] & \
";XaEmulation=false;};READONLY=No" & \
";SERVER=" & urlExtractHost(sProjectA["database connection"]["odbc_host"]) after theString
if urlExtractPort(sProjectA["database connection"]["odbc_host"]) is not empty then
put "," & urlExtractPort(sProjectA["database connection"]["odbc_host"]) after theString
end if
put ";DATABASE=" & sProjectA["database connection"]["database name"] & \
";UID=" & sProjectA["database connection"]["username"] & \
";PWD=" & wgdb_decryptString(sProjectA["database connection"]["password"]) & \
"" after theString
break
case "win32"
put "DRIVER={" & sProjectA["database connection"]["odbc driver"][the platform] & "}" & \
";SERVER=" & urlExtractHost(sProjectA["database connection"]["odbc_host"]) into theString
if urlExtractPort(sProjectA["database connection"]["odbc_host"]) is not empty then
put "," & urlExtractPort(sProjectA["database connection"]["odbc_host"]) after theString
end if
put ";DATABASE=" & sProjectA["database connection"]["database name"] & \
";UID=" & sProjectA["database connection"]["username"] & \
";PWD=" & wgdb_decryptString(sProjectA["database connection"]["password"]) & \
";Trusted_Connection=No" after theString
break
end switch
Trevor DeVore
ScreenSteps - https://www.screensteps.com
LiveCode Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode
LiveCode Builder Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode-builder
ScreenSteps - https://www.screensteps.com
LiveCode Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode
LiveCode Builder Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode-builder
Re: Real support for Microsoft SQL Server
There is another solution : a socket server.scott47303 wrote:I would like to bring this request up to the top. A built in connection driver would be very useful, especially on web deployment of apps so i don't have to set up ODBC on every machine that uses the app.
Client apps on the local network send SQL query to the socket server, on which you have configured the ODBC connection. The socket server launches the queries to the MS SQL server, and then sends back the result to clients.
Re: Real support for Microsoft SQL Server
I would also like to see REAL MS SQL server supported.
Deving on WinVista Home Prem. SP2 32 bit. Using LiveCode 4.6.1 Pro Build 1392