I have issue when i connect MSSQL with Node Red

I have done all the steps but there is an issue.

  • you have not told me the instance name of your SQL Server
  • you have not told me port number as identified in the SQL log (like i showed)

And what is that?

What does your config look like now?

As I said...

its better than before

Oh dear. One last try.

Please answer every question...

  1. WHAT IS THE INSTANCE NAME OF YOUR SQL SERVER

  2. WHAT PORT NUMBER IS YOUR SQL INSTANCE USING


If you do not answer, I can not help.

instance name: sqlexpress
port number:1433

Then use that in the Server field
image

Did you get that from the SQL Log? If not, it probably wont work!
Try deleting it. If that doesnt work, then look in the SQL Log (as I have pointed out a few times)

1 Like


port is :1433

the result is this

Start simple.

Does SELECT 1 as Test work?

Yes mate
and there is another message

// i am sending this data to
SELECT TOP (2) [ID]
,[dataItemId]
,[timestamp]
,[name]
,[sequnce]
,[subType]
,[Position_Text]
FROM [NodeRed2022].[dbo].[Position]

Your answer was ambiguous ...

Yes mate
and there is another message

Is that a YES or NO, IT MADE AN ERROR?

Did SELECT 1 as Test work?


ALSO

then the connection closed

You only need 1 MSSQL Config
image
... Delete ALL configs except for 1 (so we can avoid complications)

  1. Delete ALL configs, leaving only 1 config (so we can avoid complications)
  2. Using SQL Server Manager (or opening the SQL Log) find the PORT number for SQLEXPRESS03 instance
  3. Show me a screenshot of the LOG or SSMS where the PORT number is shown
    I have asked for this sooooo many times! (how to get port number of instance)
  4. Try that PORT number in the MSSQL Config

i have deleted it
port no is 1433

image

i dont know how can I delete MSSQL Config in node red sorry

Good, that is what I needed to see. Port number IS 1433 :white_check_mark:

However, you have hidden the INSTANCE name - not sure why (this is not sensitive info and just confuses matters for me while trying to instruct you)

So what do you have now in the MSSQL Config Node? (screenshot please)