lunarmodules / luasql

LuaSQL is a simple interface from Lua to a DBMS.
http://lunarmodules.github.io/luasql
535 stars 192 forks source link

How To Open Connection to Azure Sql Database #117

Open ziwa-msft opened 4 years ago

ziwa-msft commented 4 years ago

Hi,

I have been trying something like this but it is not working:

require ("luasql.odbc") -- create environment object env =luasql.odbc()

-- connect to data source con = assert (env:connect("DSN=myserver.database.windows.net;Database=master;User Id=name;Password=pw;"))

I just want to test luasql with any one of the drivers (mysql, odbc, etc.) Could you please share a pointer on this?

Thanks, Mike