09-01-2022 10:50 AM
This works:
This doesn't:
The "Data source name not found" confuses me because I'm not trying to use a DSN, and it works in LabVIEW. What am I doing wrong?
09-02-2022 03:29 AM - edited 09-02-2022 03:31 AM
You blurred out the interesting part.
Not the user name and password, or even the data source, but the beginnings of those strings.
What is interesting is if and how those strings are quoted...
If there are spaces in the string (esp. data source) it probably needs to be quoted. If it is quoted, the Python string needs to be double quoted, or the quotes need to be escaped. (See for instance python - Single quotes vs double quotes - Stack Exchange).
This could be nothing, but again, we can see...
Another thing is the bitness. Maybe LV 64 bit and Python 32 bit? Or LV 32 bit and Python 64 bit? Those drivers can be picky that way...