howto connect Tcl script to mssql server under windows

Posted by ventunocm on 2015-08-30 23:01
Forums: ActiveTcl discussion | OS: Windows

Hi all, i'm looking for a library that connect to mssql but in internet i find everything under linux.

Where i'm wrong? Can anybody help me?

Thanks!

Marco

gkubu | Tue, 2015-09-08 06:23

TDBC should work. You might find some hints in http://wiki.tcl.tk/6193

jgillesp | Sun, 2015-12-27 05:41

I use the 'mysqltcl' package. - just google mysqltcl

If your database is local use ...

set MYDB [mysql::connect -host "localhost" -user myuserid -password mypasswd -db mytestdb]

or if remote ....

set MYDB [mysql::connect -host "dbserver.mycompany.com" -user myuserid -password mypasswd -db centraldb]

JG