Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
papke
Regular Visitor

Connecting to SQL Server by IP address

Hello, when I'm using management studio I can access db by ip address:

management studio access.png

 

But when I'm trying to do the same in Power BI:

power bi sql connection.PNG

I'm getting error:

 Details: "Microsoft SQL: A connection was successfully established with the server, but then an error occurred during the pre-login handshake. (provider: TCP Provider, error: 0 - Określona nazwa sieciowa już jest niedostępna.)"

 

Is it possible to connect to other SQL Server by IP address?

Curently it works only on my local db, but I need to connect to another db and I can't do this.

 

1 ACCEPTED SOLUTION

Hello, the problem was that I tried to connect to SQL Server 2000.

It's working in newer versions.

 

Thank You for Help.

View solution in original post

8 REPLIES 8
tringuyenminh92
Memorable Member
Memorable Member

Hi @papke,

 

Could you please try with instance name by select @@servername in database and use it in connection form?

I think this is issue from your sql server setting. please check topic: http://escapekeys.com/microsoft-sql-server-error-64-a-connection-was-successfully-established-with-t...

 

Hi, thank You for answear but I don't udnerstand - is this picture correct:?

power bi sql connection.PNG

Hi @papke,

 

No, I meant you try with sql server instance name instead of ip address, cause there are something wrong with setting of ip address.

Hi, connection by sql server instance name works, but only when it is on my computer - it doesn't work when I want to connect to other SQL SERVER - I had the same problem with management studio , but after settings in sql server and change name to ip I can connect to every server in my LAN.

Now I want to connect to every server in my LAN in power BI but I can't do this because it doesn't work with named instance or IP address. I can only connect to SQL server on my computer.

 

How I can connect to SQL Server which is not on my computer?

papke
Regular Visitor

I will try to explain this clearly, I have a common SQL Server and to access it from another computer I've configured TCP/IP in SQL Server Configuration Manager on it and now I can access this database from any computer but I must type address IP of this database as server name, and I need the same in Power BI because now I can only use it locally.

 

Please help because tool is fantastic but I must connect It to database not in my local computer.

 

Hi @papke,

 

I just verified that I can connect successfully to one of my remote SQL Server by IP address with my Power BI Desktop. I'm using the latest version of Power BI Desktop(2.42.4611.701 64-bit (January 2017)). And I'm using (IP,Port) for the Server field in Power BI Desktop.

 

sqlip1.PNG

 

Could you go to download the latest version of Power BI Desktop, then run it as Administrator, and type (IP,Port) for the Server field to see if it works?

 

If it still does't work, I would suggest you also go a SQL Server Forum for better assistance, because the issue seems more related to SQL Server configuration issue.Smiley Happy

 

Regards

Hello, the problem was that I tried to connect to SQL Server 2000.

It's working in newer versions.

 

Thank You for Help.

Hi @papke,

 

Great to hear the problem got resolved! Could you accept your last reply as solution to help others who may have similar issue easily find the answer and close this thread?Smiley Happy

 

Regards

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.