How to: Connect to DAC on a SQL 2005 Cluster Named Instance with a Non-Default Port

July 30th, 2008 by kendra.thorpe

I thought this would be pretty straight forward. I needed to move the system databases for my SQL SharePoint named instance to another drive. Seemed simple enough, I found very detailed instructions on http://msdn.microsoft.com/en-us/library/ms345408.aspx. Everything worked until I tried to move the master database. On step three, I couldn’t connect to the DAC in SQL Management studio or sqlcmd. This is because I’m running in a highly available/secure environment. So here are the steps they don’t tell you when you try to connect to the DAC on a clustered named instance with a non-default port:

  • Start your instance with the following parameters:
    • NET START MSSQL$instancename /f /T3608
  • Determine which port the DAC is on.
    • Open the ERRORLOG, and find the entry containing “Dedicated admin connection support was established for listening remotely on port xxxx.” Where XXXX is the port number.
  • Open SQL Server 2005 Surface Area Configuration
    • Click Surface Area Configuration for Features
    • Click on DAC
    • Enable remote DAC
    • Click OK
  • Open SQL Server Configuration Manager, and create a new alias for the DAC.
    • Right-click and select New Alias
    • I used the alias name DAC, but this value can be anything you want. Just note it for later.
    • Port number is the port number you got from step two.
    • Protocol is TCP/IP
    • Server is IPAddress\INSTANCENAME
    • Click OK
  • Open SQL Server Management Studio, click cancel on the logon screen. I found a blog that really helped me with this step. Shoutout to http://chopeen.blogspot.com/2006/08/dedicated-administrator-connections-are.html.
    • Click New Query
    • Type your alias name from the previous step in the Server Name field
    • You can logon either using SQL or Windows accounts, it depends on how you have your authentication setup.
    • Click OK.

*NOTE: Make sure you turn off “ENABLE REMOTE DAC” when you are done.

I hope this saves someone else 2 hours in the middle of the night when you GOTTA get your server up and functioning.

Posted in Uncategorized | No Comments »

July 2008 MAR

July 29th, 2008 by kendra.thorpe

  • Put the new Apphosting Runbook in production
    • New Features include: Export to Excel, Sort by Any Column
  • Migrated MOSS 2007 to SQL instance on non-default port
    • Install SQL 2005 Management Studio and SQL Connectivity tools on all MOSS 2007 servers
    • Install the latest service pack on all servers
    • Edit the registry on each MOSS 2007 server with the following (Reference http://support.microsoft.com/default.aspx?scid=kb;%5bLN%5d;318432)

      [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSSQLServer\Client\ConnectTo]

      “DSQUERY”=”DBNETLIB”

      “MyAlias”=”DBMSSOCN,VSERVER1\MyInstance,2433″

    * Assume that your virtual instance of SQL Server is named VSERVER1\MyInstance. The virtual instance of SQL Server is listening on TCP/IP port number 2433. The name of the SQL Server alias that you want to create is MyAlias. If you open SQL Server Configuration Manager, you should see an alias with those settings. If you simply create the alias using SQL Server Configuration Manager, then it doesn’t add the REG_SZ entry for DSQUERY. BTW both entries should be REG_SZ.

    • Run SharePoint Products and Technologies Configuration Wizard and use the alias you just created for the SQL Server name

Posted in AppHosting | No Comments »

How to Search for Connections using Netstat

July 28th, 2008 by kendra.thorpe

netstat -an |find /i “<<SearchTerm>>”

Examples:

  1. Find all connections to/from TCP port 25
    1. netstat -an |find /i “25″
  2. Find all ESTABLISHED connections
    1. Netstat –an |find /i “ESTABLISHED”
  3. Find all ports the computer is listening on
    1. Netstat –an |find /i “LISTENING”
  4. Find all failed outgoing connections
    1. Netstat –an |find /i “SYN_SENT”
  5. Find all connections to/from IP 192.168.1.1
    1. netstat -an |find /i “192.168.1.1″

Search using NETSTAT and return the PID netstat -ano |find /i “<<SearchTerm>>”

Posted in AppHosting | No Comments »