472,791 Members | 1,127 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,791 software developers and data experts.

Microsoft SQL Server Error 5123

Hi,

I have VStudio2005, SQLServer 2005 dev edition loaded on a windowsXP Pro
machine.

I installed it ok. I just attempted to load the Personal Web Site Starter
Kit (I downloaded off Microsoft's site) to use with VStudio 2005 --
Installing it from the MS site failed without any error messages. When I
used VSTudio to open, it loaded ok, but when I went to view the
default.aspx page I got this error:

-----------------
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: SQL Network Interfaces, error: 26 - Error Locating
Server/Instance Specified)
------------------

So I tried to attach the database itself to my SQL 2005 instance and
received this error:

------------------
Attach database failed for Server 'XXXXXXX'. (Microsoft.SqlServer.Smo)

Additional Information

An exception occurred while executing a Transact-SQL statement or batch.
(Microsoft.SqlServer.ConnectionInfo)

CREATE FILE encountered operating system error 123(The filename, directory
name or volume label syntax is incorrect.) while attempting to open or
create the physical file 'C:\Documents and Settings\thisUser\My
Documents\Visual Studio 2005\WebSites\WebSite1\App_Data\D:\Documents and
Settings\JKING\My Documents\Visual Studio
2005\WebSites\WebSite1\App_Data\Personal.MDF_log.L DF'. Could not open new
database 'D:\Documents and Settings\JKING\My Documents\Visual Studio
2005\WebSites\WebSite1\App_Data\Personal.MDF'. CREATE DATABASE is aborted.
File activation failure. The physical file name D:\Documents and
Settings\jking\My Documents\Visual Studio
2005\WebSites\WebSite1\App_Data\Personal+log.LDF" may be incorrect.
(Microsoft SQL Server, Error:5123)

--------------------------------

I don't have a clue who JKING is and my D: drive is my dvd drive.

I googled error 5123 and found this page:
http://support.microsoft.com/kb/836873 -- and began the workaround section
titled : Use SQL Server Enterprise Manager. I located the property sheet in
my SQL 2005 Server Management Studio for the default location of the db and
logs -- those fields were empty. I did not change as of yet -- because I
would like a little clarity on what is going on before I proceed.

Can anyone illuminate why I am getting these errors? Why attaching a db
errors because of a JKING user that does not even exist? Why the property
sheet on my SQL 2005 install has no default db and log entries?

thanks

Dec 29 '06 #1
2 10767

When you restore a database, it defaults to the physical paths used by the
original person.
You have to override those......

C:\Program Files\Microsoft SQL Server\MSSQL\Data is typical.

C:\Program Files\Microsoft SQL Server\MSSQL\Data\Mydatabase.mdf and
Myadatbase.ldf

You have options here, because in a production environment, you want the mdf
and ldf(log) on seperate disk drives.

"thersitz" <th******@gmail.comwrote in message
news:eo**************@TK2MSFTNGP04.phx.gbl...
Hi,

I have VStudio2005, SQLServer 2005 dev edition loaded on a windowsXP Pro
machine.

I installed it ok. I just attempted to load the Personal Web Site Starter
Kit (I downloaded off Microsoft's site) to use with VStudio 2005 --
Installing it from the MS site failed without any error messages. When I
used VSTudio to open, it loaded ok, but when I went to view the
default.aspx page I got this error:

-----------------
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: SQL Network Interfaces, error: 26 - Error Locating
Server/Instance Specified)
------------------

So I tried to attach the database itself to my SQL 2005 instance and
received this error:

------------------
Attach database failed for Server 'XXXXXXX'. (Microsoft.SqlServer.Smo)

Additional Information

An exception occurred while executing a Transact-SQL statement or batch.
(Microsoft.SqlServer.ConnectionInfo)

CREATE FILE encountered operating system error 123(The filename, directory
name or volume label syntax is incorrect.) while attempting to open or
create the physical file 'C:\Documents and Settings\thisUser\My
Documents\Visual Studio 2005\WebSites\WebSite1\App_Data\D:\Documents and
Settings\JKING\My Documents\Visual Studio
2005\WebSites\WebSite1\App_Data\Personal.MDF_log.L DF'. Could not open new
database 'D:\Documents and Settings\JKING\My Documents\Visual Studio
2005\WebSites\WebSite1\App_Data\Personal.MDF'. CREATE DATABASE is aborted.
File activation failure. The physical file name D:\Documents and
Settings\jking\My Documents\Visual Studio
2005\WebSites\WebSite1\App_Data\Personal+log.LDF" may be incorrect.
(Microsoft SQL Server, Error:5123)

--------------------------------

I don't have a clue who JKING is and my D: drive is my dvd drive.

I googled error 5123 and found this page:
http://support.microsoft.com/kb/836873 -- and began the workaround section
titled : Use SQL Server Enterprise Manager. I located the property sheet
in
my SQL 2005 Server Management Studio for the default location of the db
and
logs -- those fields were empty. I did not change as of yet -- because I
would like a little clarity on what is going on before I proceed.

Can anyone illuminate why I am getting these errors? Why attaching a db
errors because of a JKING user that does not even exist? Why the property
sheet on my SQL 2005 install has no default db and log entries?

thanks

Dec 29 '06 #2
Thanks Sloan. That at leasts verifies what I was able to cipher via google.
This is a new install on a new machine, though, so there is no previous user
or no restored db. Does that account for why the property sheet had no
default directories for the db and log files? Shouldn't those directories
have been inputted upon install?

I've been doing a lot of googling and have found numerous folk come across
these errors I cited below -- though no definite explanation on how to
confront them or what they are. Apparently the Starter Kit I downloaded and
installed is faulty -- even though I downloaded it from a Microsoft site --
and maybe this jking is or was a Microsoft employee and the starter kit was
developed on his desktop. Regardless, I dumped it.

Before getting VStudio 2005 and SQLServer 2005 developer edition -- I toyed
a bit with the Express versions Microsoft offers up. I had no problems
installing some starter kits with those apps. Do you know if these Starter
Kits by chance work only with the express editions of the apps?

thanks again.


"sloan" <sl***@ipass.netwrote in message
news:ur**************@TK2MSFTNGP04.phx.gbl...
>
When you restore a database, it defaults to the physical paths used by the
original person.
You have to override those......

C:\Program Files\Microsoft SQL Server\MSSQL\Data is typical.

C:\Program Files\Microsoft SQL Server\MSSQL\Data\Mydatabase.mdf and
Myadatbase.ldf

You have options here, because in a production environment, you want the
mdf
and ldf(log) on seperate disk drives.

"thersitz" <th******@gmail.comwrote in message
news:eo**************@TK2MSFTNGP04.phx.gbl...
>Hi,

I have VStudio2005, SQLServer 2005 dev edition loaded on a windowsXP Pro
machine.

I installed it ok. I just attempted to load the Personal Web Site Starter
Kit (I downloaded off Microsoft's site) to use with VStudio 2005 --
Installing it from the MS site failed without any error messages. When I
used VSTudio to open, it loaded ok, but when I went to view the
default.aspx page I got this error:

-----------------
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: SQL Network Interfaces, error: 26 - Error Locating
Server/Instance Specified)
------------------

So I tried to attach the database itself to my SQL 2005 instance and
received this error:

------------------
Attach database failed for Server 'XXXXXXX'. (Microsoft.SqlServer.Smo)

Additional Information

An exception occurred while executing a Transact-SQL statement or batch.
(Microsoft.SqlServer.ConnectionInfo)

CREATE FILE encountered operating system error 123(The filename,
directory
name or volume label syntax is incorrect.) while attempting to open or
create the physical file 'C:\Documents and Settings\thisUser\My
Documents\Visual Studio 2005\WebSites\WebSite1\App_Data\D:\Documents and
Settings\JKING\My Documents\Visual Studio
2005\WebSites\WebSite1\App_Data\Personal.MDF_log. LDF'. Could not open new
database 'D:\Documents and Settings\JKING\My Documents\Visual Studio
2005\WebSites\WebSite1\App_Data\Personal.MDF'. CREATE DATABASE is
aborted.
File activation failure. The physical file name D:\Documents and
Settings\jking\My Documents\Visual Studio
2005\WebSites\WebSite1\App_Data\Personal+log.LD F" may be incorrect.
(Microsoft SQL Server, Error:5123)

--------------------------------

I don't have a clue who JKING is and my D: drive is my dvd drive.

I googled error 5123 and found this page:
http://support.microsoft.com/kb/836873 -- and began the workaround
section
titled : Use SQL Server Enterprise Manager. I located the property sheet
in
>my SQL 2005 Server Management Studio for the default location of the db
and
>logs -- those fields were empty. I did not change as of yet -- because I
would like a little clarity on what is going on before I proceed.

Can anyone illuminate why I am getting these errors? Why attaching a db
errors because of a JKING user that does not even exist? Why the property
sheet on my SQL 2005 install has no default db and log entries?

thanks


Dec 29 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: Seeker | last post by:
Hi! I have to do some developing and I'm trying to configure my server to mimic the operation of our production server. The issue I'm having is that I'm trying to use CDONTS to send an email...
1
by: Albert | last post by:
Hi guys, it's nice to join the forum. Can someone can help me? After 2 years of using a program, i suddenly got this error. I tried re-installing SQL but im still getting the message. ...
2
by: J. Marshall Latham | last post by:
I have a simple page trying to enter three pieces of information into a database using ODBC on a web site that has .NET Framework 1.0, so I have to use this Microsoft.Data.Odbc.dll which has been...
1
by: Tim Groulx | last post by:
Hello All, I am getting the following error when attemping to open a table in SQL2kSP3a. ________________________________________ SQL Server Enterprise Manager Database Server: Microsoft SQL...
1
by: PaulieS | last post by:
Hi all. Am migrating a customer from IIS5 on W2K server to IIS6 on W2K3. Zipped all the websites and unzipped them to the identical locations on new server. Used IISMT to migrate metabase. ...
0
by: bazzer | last post by:
hey, im trying to access a microsoft access database from an ASP.NET web application in visual basic 2003.NET. i get the following error when i try running it: Server Error in...
14
by: =?Utf-8?B?VmFuZXNzYQ==?= | last post by:
I've been searching everywhere online to find an alternative method besides using Microsoft.XMLHTTP (as it freezes the server up alot!!) but with no luck at all. I am using server side ASP, and...
0
by: .nLL | last post by:
Erorr is --------------------- Microsoft VBScript runtime error '800a0046' Permission denied /a.asp, line 3 -----------------------
2
by: kevinr | last post by:
Hi, I am brand new to VB, and I am trying to deploy Office 2007 on my network here at work. We used part of this script to do another deployment, and I have taken pieces and tried to edit for this...
0
linyimin
by: linyimin | last post by:
Spring Startup Analyzer generates an interactive Spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it. Support for...
0
by: erikbower65 | last post by:
Here's a concise step-by-step guide for manually installing IntelliJ IDEA: 1. Download: Visit the official JetBrains website and download the IntelliJ IDEA Community or Ultimate edition based on...
0
by: kcodez | last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Sept 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Taofi | last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same This are my field names ID, Budgeted, Actual, Status and Differences ...
14
DJRhino1175
by: DJRhino1175 | last post by:
When I run this code I get an error, its Run-time error# 424 Object required...This is my first attempt at doing something like this. I test the entire code and it worked until I added this - If...
0
by: Rina0 | last post by:
I am looking for a Python code to find the longest common subsequence of two strings. I found this blog post that describes the length of longest common subsequence problem and provides a solution in...
0
by: lllomh | last post by:
How does React native implement an English player?
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.