Search This Blog

Friday, October 3, 2014

sql client connect to microsoft sqlserver 2012 express - a must read for non-sql dba

sql client connect to microsoft sqlserver 2012 express - a must read for non-sql dba

long story short,  the problem I got the client working on the server itself, but not from another PC / RDC server

eventually got this working, either due to the firewall or sql browser , I manually opened firewall ports (even if a GPO disabled firewall on domain profile), and enabled the sql browser. suddenly the sql client app starts connected.

here is the link

http://www.mcbsys.com/techblog/2012/12/connect-to-sql-server-2012-express-over-the-network/

I quote / paste here (in case the orginal post disappear)

Connect to SQL Server 2012 Express Over the Network

Mark BerryDecember 18, 2012
I’ve recently installed SQL Server 2012 Express SP1 under Windows Server 2012 Essentials. I’m using it to host GoldMine CRM databases. There is so much information about network and firewall access, I wanted to write down what worked for me.

Important Background

SQL Server Express is by default installed as a named instance. That’s the “SQLEXPRESS” in the SQL server name, e.g. if your server is named SVR2012E, your default SQL Express instance will be named SVR2012E\SQLEXPRESS.
That’s important not only because you need that name to make network connections, but because named instances by default use dynamic TCP ports for their connections, i.e. the port number can change whenever SQL starts. You can reconfigure it to use a fixed port, but I wanted to see if I could get it to use dynamic ports.

SQL Server Setup

This part seems pretty well documented but I’ll repeat it here for completeness.
1. In SQL Management Studio, right-click on the server name and select Properties. Click on Connections, and in the right pane, check Allow remote connections to this server.
SQL Express Connections
2. In SQL Server Configuration Manager, on the left side, highlight the SQL Server Services node. On the right side, highlight the SQL Server Browser service, right-click, and select Properties. On the Service tab, set Start Mode to Automatic. That will start it automatically whenever the server boots. Go ahead and start it manually now (right-click on SQL Server Browser and select Start).
SQL Express Services
3. Still in SQL Server Configuration Manager, on the left side, click on the SQL Server Network Configuration node, then highlight the Protocols for SQLEXPRESS node. On the right side, right-click on TCP/IP and click Enable. You can also look at theProperties, but they should already be set to allow dynamic connections.
SQL Express Network Protocols
4. After you enable TCP/IP connections, you’ll be advised that you need to restart the SQL Server for the new setting to take effect. You can do that from the SQL Server Services node by right-clicking on SQL Server (SQLEXPRESS) and selectingRestart.

Windows Firewall Setup

This is the area where things seemed a little ambiguous.
1. This TechNet article says that when using dynamic ports, the inbound firewall on the server needs to allow access to the slqservr.exe program, not a port. So for SQL 2012 Express, create an inbound program exception allowing access to
C:\Program Files\Microsoft SQL Server\MSSQL11.SQLEXPRESS\MSSQL\Binn\sqlservr.exe
SQL Express Firewall 1
2. What wasn’t clear is that the SQL Server Browser service also needs a firewall exception. Another TechNet article says that the Browser service uses UDPconnections to port 1434. Create an inbound port exception for UDP 1434:
SQL Express Firewall 2
At this point, you should be able to connect remotely to your SQL server.
3. Optional:  for additional security, go back in to each of your firewall rules and set the Scope to restrict access to the Local subnet (assuming all valid connections come from inside your local network):
SQL Express Firewall 3
And yes, the top half of that dialog, Local IP address, is intentionally set to Any IP address. This is referring to the IP addresses of the server. Think of this as the targetIP address for the packets coming in through this rule, whereas the Remote IP addresses are the source IPs. I want this rule to apply no matter what local IP is targeted, but only if the packet comes from a the Local subnet.

Tuesday, September 30, 2014

Install rapid SSL intermediates, not one, 3 of them

Install rapid SSL intermediates, not one, 3 of them

Department: Technical Support
Full Name: Michael Shinagn
Email: Michael@doorknockingskills.com
Your Question: Hi Support, we just bought a cert. now I am installed the intermediate certs.

there are 3 types of intermediate certs. which one I shall use. Order Reference Number: 999999

Please advise thanks Michael
Staff: M007 Scot
________________________________________
01:03 Your Question: Hi Support, we just bought a cert. now I am installed the intermediate

certs. there are 3 types of intermediate certs. which one I shall use.
Order Reference Number: 999999999
Please advise
thanks
Michael

01:03 Please wait, an operator will be with you shortly.
01:04 You are now chatting with M007 Scot (Sr. Support Executive) - Technical Support
01:04 M007 Scot: Greetings from SSL Helpdesk! How can I help you today?
01:04 M007 Scot: Hello Michael
01:04 Michael : Hi M007, sorry about the typo. I am trying to install mid-cert on IIS 8.5
01:04 M007 Scot: you have to install all the 3 intermediate CA
01:05 Michael : all 3 , RSA SHA-1 SSL Certificates and RSA SHA-2 (under SHA-1 Root) SSL

Certificates
01:05 Michael : actually 2 * 3 = 6
01:06 Michael : ok, my mind is much clear now.
01:06 M007 Scot: ok
01:07 Michael : alright , many thanks for the help.
01:07 M007 Scot: Thank you for using Live Chat support. Have a nice day.
01:07 M007 Scot has left the conversation. Click here to leave a message.
________________________________________

Sunday, September 21, 2014

bone in on 70-417 upgrading MCSA 2008 to server 2012 R2 -- NAP and NPS policy

bone in on 70-417 upgrading MCSA 2008 to server 2012 R2

its a good book,

interested to know NAP /NPS will be de-precated in future versions of windows,,,, good , I never used those unless its sbs 2008 to publish terminal server on the internet,.

its still on server 2012 / R2

update to my iphone 4S to IOS 8.0

update to my iphone 4S to IOS 8.0


inadvertently I used my broken usb cable again (ie very worn cable, ok for charging, but caused huge problem updating IOS) , this cost me going back to recovery mode and restore / update again


gotta remember this,


lession



Friday, September 19, 2014

what happened to BeOS ? https://www.haiku-os.org/about

https://www.haiku-os.org/about

look like it changed to Haiku from BeOS

where are the games in windows 8.1 , soliatarie

http://windows.microsoft.com/en-nz/windows-8/solitaire-minesweeper-hearts

looks like they are in windows store

Wednesday, September 17, 2014

install an IBM rack mount UPS for an IBM x3650 M4 rack mount server - learn something everyday

install an IBM rack mount UPS for an IBM x3650 M4 rack mount server

now UPS power cable included.

the UPS has special square input cable which can do 16amp. local vendor said 15amp cable is 16amp.

UPS has special output to PDU (also square outlet), power distribute unit,

the server cable will always be 10amp. ie server will use 10amp