4

does anybody know how to configure Tedious (https://github.com/pekim/tedious) to connect against a Microsoft SQL EXPRESS LocalDB? I don't get it to work.

Since Tedious uses the TDS protocol, I guess the question needs to be: does MSSQL LocalDB support TDS?

thanks a lot Juergen

Juergen
  • 699
  • 7
  • 20
  • Searching for JDBC for LocalDB, I found that LocalDB only supports Named Pipes (and no Ports). However since jTDS supports LocalDB via Named Pipes, it's obviously not a limitation of the TD protocol. If Tedious supports Named Pipes, it should word. But I don't know yet whether it does or not. – Juergen Jun 06 '15 at 16:16

2 Answers2

1

To answer your question, no. From reading a bit on the specification, it is a "used to transfer data between a database server and a client". My gut says localdb doesn't use this same protocol. I've opened an issue on GitHub just to verify.

https://github.com/pekim/tedious/issues/348

beautifulcoder
  • 10,832
  • 3
  • 19
  • 29
-1
  1. server = 'localhost' (tedious doesn't like windows strings)
  2. INSTANCENAME = 'SQLEXPRESS' (OR can put port in)
  3. SQL Server Browser must be running
var config = {  
      server: 'localhost',  

  authentication: {
          type: 'default',
          options: {
              userName: 'itsME',
              password: 'SecreStuff'
          }
      },
      options: {
        
          instanceName: 'SQLEXPRESS',
          encrypt: false,
          database: 'pilotChecks'
      }
Suraj Rao
  • 29,388
  • 11
  • 94
  • 103
TheCloud
  • 1
  • 3