Jim Bonnie's Blog

Sep 1

Written by: jbonnie
Thursday, September 01, 2005 7:00:00 AM 

I could not connect to my SQL Server DB hosted at webhost4life.

It was a real pain using the web based interface provided by webhost4life. I tried to check the online help files and opened a ticket with the help desk and did not get very far.

I wanted to backup the entire DB for a dotnetnuke upgrade to DNN V 3.1 and could not get this done via webhost4life's interface.

After 45 minutes of working with an agent on a ticker going back and forth I decided to poke around and found that the default database was not set. I found the following with a google search and microsoft had the answer posted.

WORKAROUND

If the user's default database no longer exists, or has been marked suspect, use the ISQL command line utility to change the user's default database to a database that is currently available for a connection.
1. At a command line prompt, type the following and then press ENTER: C:\>isql -E

2. At the isql prompt, type the following and then press ENTER: 1>sp_defaultdb 'user's_login', 'master'

3. At the second prompt, type the following and then press ENTER:2>go
The user can now connect normally.

Tags:

1 comment(s) so far...

Re: using Enterprise Manager to connect to webhost4life SQL Server db

I am not able to connect using SQL Server Managment Studio. Can you please explain what tool you are using and how to go ahead.

By Rozack on   Wednesday, July 18, 2007 8:51:04 AM

Your name:
Your email:
(Optional) Email used only to show Gravatar.
Your website:
Title:
Comment:
Add Comment   Cancel 

Navigation

Register Login

About Me

Thanks for stopping by. My name is Jim Bonnie and I have been writing software for over 20 years. After building financial data systems for Reuters for nearly 18 years I have started doing contract work and am excited about technology and currently focus on Microsoft solutions. DotNetNuke has helped provide a good introduction to ASP.NET web application development, and I am now starting to branch out into other areas. Data Access techniques and SubSonic is something that I am looking into now. This has helped me get an invitation to speak at Las Vegas at DNN Open Force 07. it was a great time. And I am looking forward to OpenForce08, where I wil be presenting on TDD for DNN.

 

Reading the codebetter blogs and attending a nothing but .net training class with JP Boodhoo helped spark my interest in ALT.NET. I attended the first conference in Austin Texas, and it was amazing to see Scott Guthrie introduce the ASP.NET MVC framework.

Add to Technorati Favorites

View blog top tags

Links

Jim Bonnie's Blog

Jim Bonnie's Blog

Jim Bonnie's Blog