alexbrainman / odbc

odbc driver written in go
BSD 3-Clause "New" or "Revised" License
352 stars 140 forks source link

Cannot access remote sql server express 2014 #64

Closed mvbaffa closed 8 years ago

mvbaffa commented 8 years ago

Hi,

I have already enabled remote access, TCP is enabled too, of my sql server running in my windows machine.

I am running Mint 17 in VMWare hosted in the same machine of SQL Server. When I run the tests I receive login timeout and Server is not found or not accessible. The go test command is like this:

go test -mssrv="WINDOWS-MACHINE\SQLEXPR_2014" -msdb=Database -msuser=user -mspass="password" -v -run=MS -msdriver="ODBC Driver 11 for SQL Server"

Is there any sprecial issue or recomendation?

Thanks

alexbrainman commented 8 years ago

Do you actually use "ODBC Driver 11 for SQL Server" for Linux?

Alex

mvbaffa commented 8 years ago

Yes I did. I have moved inixodbc to home directory and irt worked. Thanks

On Sun, Nov 22, 2015 at 2:58 AM, Alex Brainman notifications@github.com wrote:

Do you actually use "ODBC Driver 11 for SQL Server" for Linux?

Alex

— Reply to this email directly or view it on GitHub https://github.com/alexbrainman/odbc/issues/64#issuecomment-158711762.

alexbrainman commented 8 years ago

I still don't know what your issue is, but, regardless, you can check the source code (newConnParams) to see how ODBC connection string is constructed. Then you can read your ODBC driver documentaion to discover what is required. And then make appropriate changes. Ultimatly you don't have to run tests anyway. If you can use github.com/alexbrainman/odbc in your program, then it is fine as is.

Alex