Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase 12»»

How to know if connection can be made to SQL 2008 R2 in my case? Thanks. Expand / Collapse
Author
Message
Posted Wednesday, September 19, 2012 12:43 PM


SSC Eights!

SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!

Group: General Forum Members
Last Login: Tuesday, August 19, 2014 6:53 AM
Points: 806, Visits: 1,440
Hello,

I have an IIS server running on Windows 2008, it needs to connect to a SQL 2008 R2 on a remote machine.

Both the two servers are newly built and we have not received licenses for them and the 30 days evaluation period already expires.

When I test my website, it hangs there forever. I checked the eventlog on SQL server, there is a warning:

Event ID: 4105: Windows is in Notification period.

I don't know if I can still make connection even the license is ready, is there a way to find out or maybe there is some trick I can at least test out if the connection can be set up or not?

I am using Windows Authentication, a dedicated ID is created on the same domain, the ID is used to run the application pool on the IIS server and the ID is also added into the SQL server. Presumably it should be passed over to SQL server.

Thank you.
Post #1361569
Posted Wednesday, September 19, 2012 12:48 PM


Hall of Fame

Hall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of Fame

Group: General Forum Members
Last Login: Tuesday, January 28, 2014 8:15 AM
Points: 3,068, Visits: 4,639
halifaxdal (9/19/2012)
Event ID: 4105: Windows is in Notification period.


I think your Windows O/S has also expired the license... message is consistent with unlicensed O/S


_____________________________________
Pablo (Paul) Berzukov

Author of Understanding Database Administration available at Amazon and other bookstores.

Disclaimer: Advice is provided to the best of my knowledge but no implicit or explicit warranties are provided. Since the advisor explicitly encourages testing any and all suggestions on a test non-production environment advisor should not held liable or responsible for any actions taken based on the given advice.
Post #1361574
Posted Wednesday, September 19, 2012 1:28 PM


SSC Eights!

SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!

Group: General Forum Members
Last Login: Tuesday, August 19, 2014 6:53 AM
Points: 806, Visits: 1,440
PaulB-TheOneAndOnly (9/19/2012)
halifaxdal (9/19/2012)
Event ID: 4105: Windows is in Notification period.


I think your Windows O/S has also expired the license... message is consistent with unlicensed O/S


Other than waiting and applying the licenses, is there any way to test it out? I want to save some time before the licenses arrive.

Thanks.
Post #1361594
Posted Wednesday, September 19, 2012 2:08 PM


SSChampion

SSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampion

Group: General Forum Members
Last Login: Today @ 12:00 PM
Points: 13,302, Visits: 12,166
halifaxdal (9/19/2012)
PaulB-TheOneAndOnly (9/19/2012)
halifaxdal (9/19/2012)
Event ID: 4105: Windows is in Notification period.


I think your Windows O/S has also expired the license... message is consistent with unlicensed O/S


Other than waiting and applying the licenses, is there any way to test it out? I want to save some time before the licenses arrive.

Thanks.


You can see if the IIS server can ping the SQL box. That will at least let you know that it can see the sql box. If it can ping it any other connection issues should be pretty quick and simple to sort out.


_______________________________________________________________

Need help? Help us help you.

Read the article at http://www.sqlservercentral.com/articles/Best+Practices/61537/ for best practices on asking questions.

Need to split a string? Try Jeff Moden's splitter.

Cross Tabs and Pivots, Part 1 – Converting Rows to Columns
Cross Tabs and Pivots, Part 2 - Dynamic Cross Tabs
Understanding and Using APPLY (Part 1)
Understanding and Using APPLY (Part 2)
Post #1361614
Posted Wednesday, September 19, 2012 2:13 PM


SSChampion

SSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampion

Group: General Forum Members
Last Login: Today @ 7:44 AM
Points: 12,910, Visits: 32,015
You could test agaisnt an express instance until your license comes in...just change your connection string;

there's pretty much only 3 or 4 things in the string anyway; server, database, trusted connection or not, and if not, username and password.

you can change those things whenever you need to change to teh Standard version once it gets installed.


Lowell

--There is no spoon, and there's no default ORDER BY in sql server either.
Actually, Common Sense is so rare, it should be considered a Superpower. --my son
Post #1361617
Posted Wednesday, September 19, 2012 2:36 PM


SSC Eights!

SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!

Group: General Forum Members
Last Login: Tuesday, August 19, 2014 6:53 AM
Points: 806, Visits: 1,440
No problem ping the SQL server, BUT: telnet 1433 failed!

The firewalls for both the servers are turned off; netstat -an returns no 1433 is being listened. WHY?
Post #1361624
Posted Thursday, September 20, 2012 4:38 AM


SSC Eights!

SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!

Group: General Forum Members
Last Login: Tuesday, August 19, 2014 6:53 AM
Points: 806, Visits: 1,440
After further troubleshooting, I have manually enabled both servers' inbound/outbound 1433 TCP/UDP ports

My connection string is:

connectionString="Data Source=10.40.2.90,1433\SQL_SGCS;

I've tried:
connectionString="Data Source=servername\SQL_SGCS;
connectionString="Data Source=servername,1433\SQL_SGCS;

I got similar error message saying the instance couldn't be found:

A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: TCP Provider, error: 0 - A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.)

How should I write my connection string in this case?

On the SQL server, I can get in via management studio by servername\SQL_SGCS

Thank you in advance.
Post #1361858
Posted Thursday, September 20, 2012 7:47 AM


SSChampion

SSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampion

Group: General Forum Members
Last Login: Today @ 12:00 PM
Points: 13,302, Visits: 12,166
Take a look here. http://www.connectionstrings.com/

This site has connection string details for just about everything.


_______________________________________________________________

Need help? Help us help you.

Read the article at http://www.sqlservercentral.com/articles/Best+Practices/61537/ for best practices on asking questions.

Need to split a string? Try Jeff Moden's splitter.

Cross Tabs and Pivots, Part 1 – Converting Rows to Columns
Cross Tabs and Pivots, Part 2 - Dynamic Cross Tabs
Understanding and Using APPLY (Part 1)
Understanding and Using APPLY (Part 2)
Post #1361982
Posted Thursday, September 20, 2012 8:15 PM


SSC Eights!

SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!

Group: General Forum Members
Last Login: Tuesday, August 19, 2014 6:53 AM
Points: 806, Visits: 1,440
Sean Lange (9/20/2012)
Take a look here. http://www.connectionstrings.com/

This site has connection string details for just about everything.


So far I haven't found a working connection string, it always returns me error like the server/instance couldn't be found, or the remote connection is not enabled.

I double checked in configuration manager as well as SSMS and the remote connection is open and TCP/UDP port 1433 is open.

But I do have a new finding: I create a udl file and double click it to open a connection window, I then input the server/instance name just like the one I put in SSMS (which works fine), then I choose windows authentication, it fails; I tried to create a SQL account and I enabled the mix mode authentication and restarted the server, it still failed. However, I don't see any items in SQL's errorlog

Wouldn't this be weird? What did I miss?

Any clue is appreciated


  Post Attachments 
Screenshot - 20_09_2012 , 10_05_01 PM.jpg (1 view, 39.42 KB)
Screenshot - 20_09_2012 , 10_11_35 PM.jpg (1 view, 40.50 KB)
Screenshot - 20_09_2012 , 10_12_26 PM.jpg (1 view, 73.32 KB)
Post #1362396
Posted Thursday, September 20, 2012 8:25 PM


SSC Eights!

SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!

Group: General Forum Members
Last Login: Tuesday, August 19, 2014 6:53 AM
Points: 806, Visits: 1,440
I also tried to start profiler to monitor the server, unfortunately it seems it didn't capture any login request.

In order to verify that the profiler is working, on the server itself, I use SSMS to log into the server, both windows authentication and SQL authentication are captured.

What else I can try?
Post #1362398
« Prev Topic | Next Topic »

Add to briefcase 12»»

Permissions Expand / Collapse