Sunday, October 25, 2009

SQL server Connection Issue

We have our server and our server was running two instances of the SQL Server.I did'nt notice a minor thing that was causing me the following error


"Named Pipes Provider, error: 40 - Could not open a connection to SQL Server".

so in my case the solution was to give full name in the connection string.

Like before i was trying giving 10.x.x.98

But later i tried using 10.x.x.98\instancename and then it worked.

Bcoz what was happening SQL was SQL server was redirecting me to the default instance and that why i was having this problem.

Wednesday, October 21, 2009

SQL server Prevent save changes Problem

Save not permitted in SQL Server 2008 - Management Studio

For those who tested the new SQL Server 2008, you probably got this message, when trying to change the columns in some tables, add columns or change nullity conditions. "Save is not permitted"... and something like tables have to be dropped and re-created. The only choice you have is to click cancel, or to choose to save the message to a text file, which is, i think, not very useful :). The solution i found today is in SQL Books Online, and it is pretty easy:
Tools -> Options -> Designers, and uncheck the option "Prevent saving changes that require table re-creation".