Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem connecting to mssql express #63

Closed
mc03225 opened this issue Mar 9, 2022 · 14 comments
Closed

Problem connecting to mssql express #63

mc03225 opened this issue Mar 9, 2022 · 14 comments
Labels
needs more info Need more information to resolve this issue question Further information is requested

Comments

@mc03225
Copy link

mc03225 commented Mar 9, 2022

I have a local install of mssql express but I cannot connect. I tried windows authentication, then I tried creating a user, but I cannot connect either way. I have checked that mssql express service is running, and I even set the TCP/IP port to 1433, not that this should matter. So far I have not found a way to connect. To get started, I just want to create an inject node with a simple insert query into an existing table. Can you help?

@Steve-Mcl Steve-Mcl added the question Further information is requested label Mar 9, 2022
@Steve-Mcl Steve-Mcl changed the title support for mssql express Problem connecting to mssql express Mar 9, 2022
@Steve-Mcl
Copy link
Collaborator

questions...

  • Is the SQL Server on the same server/computer as node-red?
  • Can you connect to the instance using SQL Server Management Studio using SQL Login (not integrated)?
  • Is the install an instance?

If you can connect using SSMS using SQL Login, show me the details you used for the SSMS login And a screenshot of the MSSQL-PLUS connection config (NOTE: Obviously, mask out any sensitive info)

@Steve-Mcl Steve-Mcl added the needs more info Need more information to resolve this issue label Mar 9, 2022
@oobyx
Copy link

oobyx commented Mar 14, 2022

Same problem here

  • SQL Server is not on the same server/computer, but in the local network (firewall settings are done - works fine for years with some other MS Windows Client - PCs)
  • The install is an instance
  • I can connect the instance using SSMS and SQL Login

sql

sql2

n

@Steve-Mcl
Copy link
Collaborator

Steve-Mcl commented Mar 14, 2022

@oobyx

AHH. I don't know why I forgot this.

An instance doesn't get port 1433

Connect to your SQL server and check the start up log. You should see the port number assigned. Try using that instead of 1433.

Please let me know if this works for you.

@oobyx
Copy link

oobyx commented Mar 14, 2022

Thanks Steve! It works - it was Port: 59960!

@Steve-Mcl
Copy link
Collaborator

@mc03225 can you try this please?

@mc03225
Copy link
Author

mc03225 commented Mar 15, 2022

Hi,

Thanks - I tried with both port 1433 and now 59960 but unable to connect with either, rest of the config is the same as oobyx, is there anything else I can try?

sql

@mc03225
Copy link
Author

mc03225 commented Mar 15, 2022 via email

@mc03225
Copy link
Author

mc03225 commented Mar 15, 2022

Hi,

Just realised that my instance might be on another port so I checked and found mine was 57708, so I tried and this still failed to connect.
config

@oobyx
Copy link

oobyx commented Mar 15, 2022

@mc03225

Browse to the Microsoft SQL Folder Log Folder, which is located at:
C:\Program Files\Microsoft SQL Server\MSSQL15.SQLEXPRESS\MSSQL\Log

Open the File ERRORLOG.1 with the text editor.

In this file i've found this:

2022-03-10 10:49:20.44 Server The SQL Server Network Interface library could not register the Service Principal Name (SPN) [ MSSQLSvc/XXXXXXXXX-PC:59960 ] for the SQL Server service. Windows return code: 0xffffffff, state: 63. Failure to register a SPN might cause integrated authentication to use NTLM instead of Kerberos. This is an informational message. Further action is only required if Kerberos authentication is required by authentication policies and if the SPN has not been manually registered.

The SQL-Node is configured like that:
sql3

Don't put SQLEXPRESS after your server name

@Steve-Mcl
Copy link
Collaborator

@mc03225 when I said can you try this

@mc03225 can you try this please?

I meant try this: #63 (comment)

@mc03225
Copy link
Author

mc03225 commented Mar 16, 2022

Hi,

Okay, many thanks - that worked. See screenshot :)

db-node-red

@Steve-Mcl
Copy link
Collaborator

Glad it's ok.

@mc03225
Copy link
Author

mc03225 commented Oct 11, 2022 via email

@Steve-Mcl
Copy link
Collaborator

@mc03225 you should visit the page on GitHub. Much of your reply is messed up. You might want to redo it

@Steve-Mcl Steve-Mcl mentioned this issue Apr 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs more info Need more information to resolve this issue question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants