Hi folks,

I need help, I have been trying to connect to sql server using odbc
without success.

This is the code that I'm using:

db = Sequel.odbc(mydb, :user=>
my_user,password=>my_pass,:db_type=>'mssql',:driver=>'{SQL Server}')
db[:mytable].count

but I received the following error.....

ERROR:

TypeError can't convert Symbol into String

and when I try without specifying the driver :

db = Sequel.odbc(mydb, :user=>
my_user,password=>my_pass,:db_type=>'mssql')
db[:mytable].count

ERROR:

ODBC::Error IM002 (0) [Microsoft][ODBC Driver Manager] Data Source
name not found sand no default driver specified

Thanks

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sequel-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to