h1

Day 9: sql error 4064… What the $*&#

March 25, 2010

Can I just say to Microsoft… SERIOUSLY?????

So I went in to start creating the login page today, and I ran into a stinking weird error.  The database wouldn’t let me connect to it.  I don’t mean just in the code, but literally, through Web Developer Express, I couldn’t connect.  Well, I did some research online (thank you Google), and nothing that I found either: A) made any sense to me as a novice, B) helped with the problem.  So I took a stab in the dark.  Here is what you can do to get around the problem:

  1. Delete the connection string out of your database (go to the database explorer, right click on the database, click delete)
  2. Go into the physical folder where the database is stored and make a copy of the file.
  3. Delete the old database, and rename the copy with a 2 before the extension
  4. Now go into your web config file in the solution explorer of visual web developer and find the connection string to the original database connection string.
  5. Finally, change the name of the database to connect to so that it also has the 2 before the extension.

That solved the problem, but needless to say it set me back a little bit from getting the login form working.  That is coming soon.

The Question For You:

Have you run into weird issues while working with .net or MS-SQL?  If so, what did you do to deal with it.

The Call For Help:

If anybody has any resources, suggested links, or tutorial locations you would suggest please send them my way.  I will be created a resources page to include all of your suggestions.

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.