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


Application does not work with named instances?!


Application does not work with named instances?!

Author
Message
shannonjk
shannonjk
Say Hey Kid
Say Hey Kid (694 reputation)Say Hey Kid (694 reputation)Say Hey Kid (694 reputation)Say Hey Kid (694 reputation)Say Hey Kid (694 reputation)Say Hey Kid (694 reputation)Say Hey Kid (694 reputation)Say Hey Kid (694 reputation)

Group: General Forum Members
Points: 694 Visits: 840
So I just have to ask this because I am a bit baffled and flabbergasted by this situation. In 9 years I have not come across an issue where an application built on SQL, could not work if it was set on a named instance.

We have forecasting software that we are implementing, and some functions do not work because the parameters passed to the API will not accept the servername/instance name. It really blows my mind as default/named instances aren't even remotely new, and this company is 20 years old. I can't understand how they would have never encountered this in the past.

The server we have for this is on a shared hosted solution so for obvious reasons we cannot get the default instance.

Has anyone else encountered this? If so, did you find a workaround?

Link to my blog http://notyelf.com/
Query Shepherd
Query Shepherd
SSC Veteran
SSC Veteran (208 reputation)SSC Veteran (208 reputation)SSC Veteran (208 reputation)SSC Veteran (208 reputation)SSC Veteran (208 reputation)SSC Veteran (208 reputation)SSC Veteran (208 reputation)SSC Veteran (208 reputation)

Group: General Forum Members
Points: 208 Visits: 454
Are you working with the standard port 1434? Got allow remote connections enabled Tongue?

Greetz
Query Shepherd
raadee
raadee
Valued Member
Valued Member (73 reputation)Valued Member (73 reputation)Valued Member (73 reputation)Valued Member (73 reputation)Valued Member (73 reputation)Valued Member (73 reputation)Valued Member (73 reputation)Valued Member (73 reputation)

Group: General Forum Members
Points: 73 Visits: 476
You probably know this but it is servername\instance not / (you wrote / twice so maybe thats the problem?).

Have you tried servername,portnumber instead of servername\instance?
shannonjk
shannonjk
Say Hey Kid
Say Hey Kid (694 reputation)Say Hey Kid (694 reputation)Say Hey Kid (694 reputation)Say Hey Kid (694 reputation)Say Hey Kid (694 reputation)Say Hey Kid (694 reputation)Say Hey Kid (694 reputation)Say Hey Kid (694 reputation)

Group: General Forum Members
Points: 694 Visits: 840
Ah yes sorry bad habit. Yes I tried it with the backslash, I have no idea why I put the / slash but I just do that sometimes :-D

There is no where in the software that I know of to call out a port number but I will check with them to see if that is possible!

Link to my blog http://notyelf.com/
Query Shepherd
Query Shepherd
SSC Veteran
SSC Veteran (208 reputation)SSC Veteran (208 reputation)SSC Veteran (208 reputation)SSC Veteran (208 reputation)SSC Veteran (208 reputation)SSC Veteran (208 reputation)SSC Veteran (208 reputation)SSC Veteran (208 reputation)

Group: General Forum Members
Points: 208 Visits: 454
Damn.../ only with internet protocols...never mind...my web developers also mix up / and \ very often...so it seems to be an webdev illness :-D.

You can change the port with the sql server configuration manager -> network configuration -> tcp/ip -> ip-adresses -> ports.

Greetz
Query Shepherd
Orlando Colamatteo
Orlando Colamatteo
SSChampion
SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)

Group: General Forum Members
Points: 14803 Visits: 14396
shannonjk (2/26/2013)
There is no where in the software that I know of to call out a port number but I will check with them to see if that is possible!

If it is using the SQL Native Client Drivers then you append the port to the backend of the servername with a comma separating the two, with the form:

servername,portnumber


example:

dbserver01,1733


__________________________________________________________________________________________________
There are no special teachers of virtue, because virtue is taught by the whole community. --Plato
Perry Whittle
Perry Whittle
SSCoach
SSCoach (19K reputation)SSCoach (19K reputation)SSCoach (19K reputation)SSCoach (19K reputation)SSCoach (19K reputation)SSCoach (19K reputation)SSCoach (19K reputation)SSCoach (19K reputation)

Group: General Forum Members
Points: 19664 Visits: 17239
shannonjk (2/25/2013)
In 9 years I have not come across an issue where an application built on SQL, could not work if it was set on a named instance.

It's usually because the developer hard codes port 1433 into the connection string in the app, this will then only connect to a default instance or a named instance using the default port (which never usually happens)

-----------------------------------------------------------------------------------------------------------

"Ya can't make an omelette without breaking just a few eggs" ;-)
scogeb
scogeb
SSC-Enthusiastic
SSC-Enthusiastic (186 reputation)SSC-Enthusiastic (186 reputation)SSC-Enthusiastic (186 reputation)SSC-Enthusiastic (186 reputation)SSC-Enthusiastic (186 reputation)SSC-Enthusiastic (186 reputation)SSC-Enthusiastic (186 reputation)SSC-Enthusiastic (186 reputation)

Group: General Forum Members
Points: 186 Visits: 420
You can also do server\instance,port
like
SQL01\TestInst,55001
Orlando Colamatteo
Orlando Colamatteo
SSChampion
SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)

Group: General Forum Members
Points: 14803 Visits: 14396
scogeb (3/1/2013)
You can also do server\instance,port
like
SQL01\TestInst,55001

Depending on the driver the instance name can take precedence over the port, or vice-versa. It is not consistent across drivers. I would recommend against employing something like that as a standard approach.

__________________________________________________________________________________________________
There are no special teachers of virtue, because virtue is taught by the whole community. --Plato
Perry Whittle
Perry Whittle
SSCoach
SSCoach (19K reputation)SSCoach (19K reputation)SSCoach (19K reputation)SSCoach (19K reputation)SSCoach (19K reputation)SSCoach (19K reputation)SSCoach (19K reputation)SSCoach (19K reputation)

Group: General Forum Members
Points: 19664 Visits: 17239
scogeb (3/1/2013)
You can also do server\instance,port
like
SQL01\TestInst,55001

You generally supply one or the other. Instance name or port number not both.

-----------------------------------------------------------------------------------------------------------

"Ya can't make an omelette without breaking just a few eggs" ;-)
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