StrataFrame Forum
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      



Error accesing SQL Server (Express 2005)Expand / Collapse
Author
Message
Posted 11/21/2005 11:51:04 AM
StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: Forum Members
Last Login: 02/04/2008 8:43:02 AM
Posts: 176, Visits: 1,519
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

Post #34
Posted 11/21/2005 12:17:07 PM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Today @ 11:24:42 AM
Posts: 2,686, Visits: 1,889
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.


www.bungie.net
Post #35
Posted 11/21/2005 1:51:12 PM
StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: Forum Members
Last Login: 02/04/2008 8:43:02 AM
Posts: 176, Visits: 1,519
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?

Post #39
Posted 11/21/2005 2:01:15 PM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Today @ 11:24:42 AM
Posts: 2,686, Visits: 1,889
It is quite possible that your connection string is off...

When you run the application, click File -> Database Connection and edit the database connection you created. In the SQL Server blank, add \SqlExpress to the end of the server name (i.e. if your computer name is "ScottComp," the SQL Server name will need to be "ScottComp\SqlExpress" or "192.168.1.10\SqlExpress" if you want to use your IP address for the servername).

It is quite possible that the autodetection of the server did not find the instance name SqlExpress, so you might have to add it manually.


www.bungie.net
Post #40
Posted 11/21/2005 6:59:31 PM
StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: Forum Members
Last Login: 02/04/2008 8:43:02 AM
Posts: 176, Visits: 1,519
un-installed SQL 05 and reinstalled it.... had nothing to do today but look at the framework.  Made the change you suggested... works just fine now.

Thanks for the help.

Post #61
Posted 11/21/2005 7:02:26 PM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Today @ 11:24:42 AM
Posts: 2,686, Visits: 1,889
Glad to hear it... just start up a new post with any other questions you have


www.bungie.net
Post #65
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Ben Chase, Trent L. Taylor, Steve L. Taylor

PermissionsExpand / Collapse

All times are GMT -6:00, Time now is 12:32pm

Powered by InstantForum.NET v4.1.4 © 2008
Execution: 0.063. 12 queries. Compression Enabled.
Site Map - Home - My Account - Forum - About Us - Contact Us - Try It - Buy It

Microsoft, Visual Studio, and the Visual Studio logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.