AWS Lambda (Python) + MS SQL Server  -  The Easy Way

preview_player
Показать описание
The easy way to connect to MS SQL Server from AWS Lambda (python) using Lambda Layers
Рекомендации по теме
Комментарии
Автор

Thanks a lot....this helped me and i was able to connect in one go using python 3.7..really helpful post...keep going

amanpandey
Автор

this seens to not work anymore... or am i doing something wrong?

MatheusOliveira-hioq
Автор

I'm not sure if this still works because even after going through all the steps and specifying the exact path there the libmsodbcsql-17.7.so.2.1 is, I still get the error:file not found (0) (SQLDriverConnect)\")",

julianamendes
Автор

For anyone who starts using the layer, please ensure you use python 3.7 as the runtime for the lambda function. The binary was built on the 3.7 layer primarily and it's highly unlikely that it will work on anything else other than 3.7. Also please do not forget to hit the subscribe buton. Cheers :)

KuharanBhowmik
Автор

For python 3.7 odbc 17 it doesn't work for as login timeout error.how to change the sql servers in layer

divyap
Автор

Please how do i add the zip file as a layer? I tried to import it, but its replacing my code and not showing up as a layer in lambda

meji
Автор

Hi Kuharan, you are the savior, after wasting 2 days, I came to your blog and it help me a lot, but I am just getting this error. ('01000', \"[01000] [unixODBC][Driver Manager]Can't open lib 'SQL Server' : file not found (0) (SQLDriverConnect)\")". It would be great, if you help to solve this issue.

VipulPatel-vhbh
Автор

Hey, I did exactly what you said and it´s giving me this error: "errorMessage": "('01000', \"[01000] [unixODBC][Driver Manager]Can't open lib 'ODBC Driver 17 for SQL Server' : file not found (0) (SQLDriverConnect)\")",

eliezermaduro
Автор

Hi, I added pyodbc-layer.zip as a layer. But still i am getting the error : "Unable to import module 'lambda_function': No module named 'pyodbc'"

rs-research-laboratory
Автор

Hi, thank you for posting this! Just like @ritabratas4u, I added pyodbc-layer.zip as a layer, but still i am getting the error : "Unable to import module 'lambda_function': No module named 'pyodbc'" Unlike him/her, though, I am using Python 3.8 and it still isn't working. I made the compatible runtimes 3.7 and 3.8. Any ideas?

sandrafroonjian
Автор

Hi Kuharan Bhowmik
Can you send me the .zip file that you use with the ODBC drivers? It would help me a lot.

Fullon