I need to connect to Express edition of sql server installed on my machine, from perl (solaris platform). How should the connection string containing server, port, database etc look like ?
Can any one tell me how to find the *port number* that the local server is using.
|||hi,
[quote user]
I need to connect to Express edition of sql server installed on my machine, from perl (solaris platform). How should the connection string containing server, port, database etc look like ?
please have a look at connection string samples..
Can any one tell me how to find the *port number* that the local server is using.
you can find the used port via SQL Server Configuration Manager.. select the SQL Server 2005 Network configurations node, which expands in several instances nodes.. select the appropriate instance node.. in the right pane, network protocols will be listed (in order to be available, the desired network protocol must be "enabled")...
select TCP/IP, rx click and access it's properties.. in the IP Addresses tab the used port will be listed.. if dynamic port is set, the instance is configured for dynamic assigned address and this value "could" change at next instance's startup as the instance will try, at it's startup, to get the old used port but it could be relocated to alternative one if the old port has been used (in the meanwhile) by other services.. in case of dynamic assigned ports, the SQL Server Browser, a service listening on port UDP 1434, is required to resolve remote connections..
the SQL Server Browser intercepts incoming connections and, after inspecting the local registry for the dynamic assigned port used by the instance, redirects the remote connection(s) to the appropriate port where the instance is listening on..
regards
|||UsHaving a single instance , usenetstat -a -b at the command prompt and look for the sqlservr.exe process
Jens K. Suessmeyer.
http://www.sqlserver2005.de
|||
>> you can find the used port via SQL Server Configuration Manager
I could not find Configuration Manager in the management studio... where can I find that.
Thanks,
|||hi,
it's not in Management Studio.. it's in the Microsoft SQL Server 2005 -> Configuration tools folder..
regards
No comments:
Post a Comment