Git Product home page Git Product logo

Comments (6)

meet-bhagdev avatar meet-bhagdev commented on June 22, 2024

This is great!! I am giving it a try and will let you know if I find something. This absolutely amazing though!!!!

from node-sqlserver-v8.

tysjiang avatar tysjiang commented on June 22, 2024

Currently using it, works great!

from node-sqlserver-v8.

robokozo avatar robokozo commented on June 22, 2024

I've never connected to an SQL server from Node so this is all new to me. I haven't been able to get this implementation working.
Right now, I'm getting a message:

{ [Error: [Microsoft][SQL Server Native Client 11.0][SQL Server]Login failed for user USERNAME.] sqlstate: '28000', code: 18456 }

Any ideas?

from node-sqlserver-v8.

TimelordUK avatar TimelordUK commented on June 22, 2024

this error has come back from SQL server, so clearly you are at least communicating with the database. Are you using windows authentication or a database account? The connection has to be configured as below. If you use authentication, set the trusted flag true and the user and password are not therefore required. If the server requires a user and password, then the flag should be false and the credentials set. Is this a local database or an instance maintained by DBA's? How would you connect from Management Studio normally? The configuration below would be precisely inline with your normal access.

var driver = 'SQL Server Native Client 11.0';
var server = '<your_server>';
var user = '';
var pwd = '<password';
var database = 'AdventureWorks2012';
var useTrustedConnection = false;
var conn_str = "Driver={" + driver + "};Server=" + server + ";" + (useTrustedConnection == true ? "Trusted_Connection={Yes};" : "UID=" + user + ";PWD=" + pwd + ";") + "Database={" + database + "};";

from node-sqlserver-v8.

robokozo avatar robokozo commented on June 22, 2024

Thanks, TimelordUK. I was able to get it working eventually by using https://www.npmjs.com/package/mssql and renaming your package to stand in for the official MS package in the node_modules folder.

from node-sqlserver-v8.

paulbjensen avatar paulbjensen commented on June 22, 2024

I'm using this at work, thank you for making it.

from node-sqlserver-v8.

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.