On Saturday, April 7, 2012 9:29:16 PM UTC-7, Hector Sansores wrote:
>
> I am connecting successfully to a SQL Server database using the following 
> code:
>
> DB = Sequel.connect(:adapter=>'tinytds', 
>                     :dataserver=>'192.168.1.249\SQL2008', 
>                     :database=>'mydatabase',
>                     :user=>'myuser',                    
>                     :password=>'mypassword')
>
> I am using :dataserver instead of :host because I have a SQL server named 
> instance.
>
> How can I convert this to an URI?
>
> I have tried several variations but I always get an Invalid URI error, 
> "the tinytds scheme does not accept registry part..."
>

I can't test this, but it may work:

  
tinytds:///mydatabase?user=myuser&password=mypassword&dataserver=192.168.1.249%5cSQL2008

Jeremy

-- 
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/sequel-talk/-/3NqUJ9TrkkQJ.
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