SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


SQLServer port change


SQLServer port change

Author
Message
durai nagarajan
durai nagarajan
SSCommitted
SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)

Group: General Forum Members
Points: 1665 Visits: 2775
Hello,

i have tried and tested port number changes with luck now luckily going to production linked server is not working to a server where it is default port of 1433.

how to achieve succesful port change with linked server connections.

thanks in advance.

Regards
Durai Nagarajan
Lowell
Lowell
One Orange Chip
One Orange Chip (29K reputation)One Orange Chip (29K reputation)One Orange Chip (29K reputation)One Orange Chip (29K reputation)One Orange Chip (29K reputation)One Orange Chip (29K reputation)One Orange Chip (29K reputation)One Orange Chip (29K reputation)

Group: General Forum Members
Points: 29374 Visits: 39985
well there is two pieces of the puzzle.

IF the linked server is using dynamic ports, you need to have the SQl Browser Service running on the linked server. If it's not

running, or you know you've already configured that other instance to listen on a specific port, you just make sure to specify the port when creating the linked server:


EXEC master.dbo.sp_addlinkedserver
@server = N'My2012LinkedServer',
@provider=N'SQLNCLI',
@srvproduct = N'',
@datasrc=N'DEV223\SQL2012,14330'

--Or
EXEC master.dbo.sp_addlinkedserver
@server = N'My2012LinkedServer',
@provider=N'SQLNCLI',
@srvproduct = N'',
@datasrc='192.168.0.55,14330'



you can use the SQL Configuration manager to change from dynamic to static ports:


Lowell

--
help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

durai nagarajan
durai nagarajan
SSCommitted
SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)

Group: General Forum Members
Points: 1665 Visits: 2775
thanks hope this will work from the server where i have changed the port number

i'll try and getback, thanks again.

Regards
Durai Nagarajan
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search