This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-11-13
Channels
- # aleph (2)
- # announcements (1)
- # beginners (133)
- # cider (29)
- # cljdoc (9)
- # cljs-dev (2)
- # cljsjs (3)
- # cljsrn (1)
- # clojure (146)
- # clojure-dev (26)
- # clojure-europe (3)
- # clojure-italy (26)
- # clojure-japan (6)
- # clojure-nl (76)
- # clojure-spec (4)
- # clojure-uk (42)
- # clojurescript (17)
- # cursive (43)
- # datascript (1)
- # datomic (28)
- # emacs (4)
- # figwheel-main (13)
- # fulcro (26)
- # hyperfiddle (2)
- # jobs (9)
- # jobs-discuss (6)
- # leiningen (1)
- # mount (5)
- # onyx (8)
- # pathom (5)
- # pedestal (2)
- # re-frame (52)
- # reagent (21)
- # reitit (58)
- # ring-swagger (24)
- # shadow-cljs (95)
- # sql (14)
- # test-check (10)
- # yada (18)
@seancorfield you recently helped me set up drivers for a postgres database. Now I want to connect to a microsoft sql database 🙂
currently i get
SQLException No suitable driver found for jdbc: java.sql.DriverManager.getConnection (DriverManager.java:702)
Did you add a dependency for a SQL Server JDBC driver?
i didnt
from my other client the url i use looks like
jdbc:jtds:
ill try adding the dependency [net.sourceforge.jtds/jtds "1.3.1"]
but not sure exactly what im doing XD
You can either use the Microsoft driver or the jTDS driver -- but they require different :dbtype
values.
If you use the jTDS driver, your :dbtype
should be "jtds"
, if you use the MS driver, your :dbtype
should be "mssql"
that makes sense, thank you. I never got the MS drivers to work well from a mac so I think ill work with jtds. Was the dependency I added the correct one for jtds?
You can see what clojure.java.jdbc
is tested against here https://github.com/clojure/java.jdbc/blob/master/deps.edn
(in particular, the group/artifact and version of each of the drivers)
With the jTDS driver, your db-spec can be {:dbtype "jtds" :dbname "xxxx" :user "..." :password "..."}
-- with :host "..."
if it's on another machine
(that way you don't have to worry about how to create the actual URL)
@michaellindon Success?