Giter Site home page Giter Site logo

Comments (8)

pekim avatar pekim commented on June 16, 2024

From a quick look, I can't see anything obviously wrong. Can you provide some details of what happens?

from tedious.

kimi23 avatar kimi23 commented on June 16, 2024

Just can't connect . Do I need to set the port ??

Regards,
Dhaval

On 30/12/2012, at 11:14 PM, "Mike D Pilsbury" [email protected] wrote:

From a quick look, I can't see anything obviously wrong. Can you provide some details of what happens?


Reply to this email directly or view it on GitHub.

from tedious.

pekim avatar pekim commented on June 16, 2024

The port will default to 1433, so you shouldn't need to specify it, unless you've configured a different port.

Is connection successful if connection pooling is not used?

Can you enable some debugging please? Something along these lines.

var connectionConfig = {
  "userName": "user",
  "password": "user1",
  "server": "test001",

  "options": {
    "database": "employees",
    debug: {
      packet: true,
      data: true,
      payload: true,
      token: true,
      log: true
    }
  }
};

// Note, idleTimeoutMillis was spelt incorrectly, but that
// should not cause your problem.
var poolConfig = { max: 10, min: 2, idleTimeoutMillis:30000, log: true };

...

connection.on('debug', function (message) {
  console.log('debug=> ' + message);
});

from tedious.

kimi23 avatar kimi23 commented on June 16, 2024

Thanks heaps I will try n let u know tomorrow . Happy new year mate .

Regards,
Dhaval

On 31/12/2012, at 6:31 PM, "Mike D Pilsbury" [email protected] wrote:

The port will default to 1433, so you shouldn't need to specify it, unless you've configured a different port.

Is connection successful if connection pooling is not used?

Can you enable some debugging please? Something along these lines.

var connectionConfig = {
"userName": "user",
"password": "user1",
"server": "test001",

"options": {
"database": "employees",
debug: {
packet: true,
data: true,
payload: true,
token: true,
log: true
}
}
};

// Note, idleTimeoutMillis was spelt incorrectly, but that
// should not cause your problem.
var poolConfig = { max: 10, min: 2, idleTimeoutMillis:30000, log: true };

...

connection.on('debug', function (message) {
console.log('debug=> ' + message);
});

Reply to this email directly or view it on GitHub.

from tedious.

kimi23 avatar kimi23 commented on June 16, 2024

Hi Pekim,

Just discovered when we is linked server the 'returnValue' events gets fired twice? Do you know if I can do somehting in the code to stop this?

This is urgent . It will be great if you can reply ASAP!!!

from tedious.

pekim avatar pekim commented on June 16, 2024

I'm afraid that I've no idea at the moment what might cause this to happen.

If you can provide some debug log out (see #58 (comment)) that might help me.

from tedious.

kimi23 avatar kimi23 commented on June 16, 2024

Hi ,

I have found a solution to this which is to inspect the value in the 'returnvalue' event and if that is equal to 0 then not worry about executing the code below.

This is a workaround when trying to use sql 2000 and tedious!

Cheers!

from tedious.

pekim avatar pekim commented on June 16, 2024

Closing, as debug output will be required to get to the bottom of the problem.
Please feel free to re-open if this can be provided.

from tedious.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.