Error accesing SQL Server (Express 2005)


Author
Message
Scott
Scott
StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)
Group: Forum Members
Posts: 176, Visits: 1.5K
I get the following error when hitting the "browse" button in the sample application.  I have setup the connection to the database and can see the "StrataFrame Sample" database using the connection wizard.  I am using a user name and password to connection,  I have also tried to used integrated security to connection,  both are not working.  I am thinking that there is just something not setup correctly on my machine,  but I know very little about SQL server, any help would be appreciated.

An error has occurred while establishing a connection to the server.  When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)

Thanks,

Scott

Replies
StrataFrame Team
S
StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
Ah, yes, the connection string is configured to connect using TCP/IP and the SQL server instance is not configured to allow that. Pretty simple fix:



1) Open the SQL Configuration Manager from Start -> Program Files -> Microsoft SQL Server 2005 -> Configuration Tools -> SQL Server Configuration Manager

2) In the configuration manager click the plus sign beside SQL Server 2005 Network Configuration and select Protocols for MSSQLSERVER.

3) In the right hand menu, it should say 'Disabled' for TCP/IP. Right-click the TCP/IP and select Enable.

4) Right click TCP/IP again and select Properties.

5) From the properties dialog, make sure all of the IP Addresses say 'Yes' for active, (blank) for TCP Dynamic Ports, and 1433 for TCP Port. I don't think the Enabled in here matters on each IP Address because all of them say 'No' on our production server and we connect to it fine.



That should get you going. You'll have to at least re-start the service and maybe even reboot your computer, not sure.
Scott
Scott
StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)
Group: Forum Members
Posts: 176, Visits: 1.5K
Made all the changes, restarted my machine and I am still getting the same message.  I then enabled named pipes,  same result.

Any thing else I should be looking at?

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search