2

What is the syntax for connecting to a specific instance of a sql server database?

Here's my code:

Needs["DatabaseLink`"];
conn1 = OpenSQLConnection[
  JDBC["Microsoft SQL Server(jTDS)", "ARC-WEB/SKWSPATIAL"], 
  "UserName" -> "Mathematica", databasename = "XYZ_Database", 
  "Password" -> "xxxxx"]

I have no problem connecting to ARC-WEB but cannot connect to one of the other instances. Mathematica 9.0 SQL Server 2008

PlatoManiac
  • 14,723
  • 2
  • 42
  • 74
TheHiker
  • 81
  • 2

1 Answers1

2

After looking at all the comments I was able to come up the following code that allows me to connect and query the database:

Needs["DatabaseLink`"];
conn1 = OpenSQLConnection[
  JDBC["Microsoft SQL Server(jTDS)", "ARC-WEB"], 
  "UserName" -> "Mathematica", "Instance" -> "SKWSPATIAL", 
  "database" -> "yyy", "Password" -> "xxx"]

Thanks for all your help!

m_goldberg
  • 107,779
  • 16
  • 103
  • 257
TheHiker
  • 81
  • 2