CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > visual_studio.visual_web_developer_2005_express Tags:
Item Type: NewsGroup Date Entered: 10/27/2006 10:35:50 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 9 Views: 16 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
10 Items, 1 Pages 1 |< << Go >> >|
OSACDave
Asp.Net User
Why are locations a problem?10/27/2006 10:35:50 PM

0/0

 

I’m having a problem creating and connecting to an SQL Express database. I’m using Visual Web Developer 2005 Express to work through a tutorial (found here: http://msdn2.microsoft.com/en-us/library/ms345152.aspx). I have created a website called “StudentActivities” but when I try to create a database from within VWD called “StudentActivities.mdf” I get an error:

 

“The file ‘U:\My Documents\Visual Studio 2005\Websites\StudentActivities\App_data\StudentActivities.mdf’ is on a network path that is not supported for database files.”

 

The problem seems to be that SQL Express tries to create the database in my “My Documents” folder, which resides on a mapped network drive. Why would that be a problem? And how can I make it create my databases on my local machine?

 

Another curious thing is that although I have VWD set to keep projects on my local drive it saves the website files to my network drive and there doesn’t seem to be any way to change that.

 

shados
Asp.Net User
Re: Why are locations a problem?10/28/2006 8:39:04 AM

0/0

MDF files are attached on the fly to the SQL Server Express engine, and for many reasons (security among other things, but a bunch of others), as far as I can tell, it wants the MDF file to be -physicaly- on the same machine as the database engine that it will be attached to. So network drives are no go.
Caddre
Asp.Net User
Re: Why are locations a problem?10/28/2006 9:33:23 AM

0/0

 (Why are locations a problem? )

SQL Server will expects all databases to be created in the location below if it is not going to be there you must let it know the other location which must be a clean network drive with nothing but both MDF and LDF and you should have a very good reason for it.  VS2005 is an IDE(integrated development environment), SQL Server is a database server it is your responsibility to create your database where SQL Server can read it and your IDE folder should not be that location.

I hope one day taking the time to read the  SQL Server BOL(books online) will be on things to do list.

C:\Program Files\Microsoft SQL Server\MSSQL\BACKUP\DATA


Kind regards,
Gift Peddie
OSACDave
Asp.Net User
Re: Why are locations a problem?10/31/2006 8:49:34 PM

0/0

Thing is, it's going to the network drive without any help from me. How do I change that?

Another thing: I used SQL Express Management Tool to create the database (presumably it IS on the local machine) but it doesn't show up in VWD.

OSACDave
Asp.Net User
Re: Why are locations a problem?10/31/2006 8:59:34 PM

0/0

Caddre:

 (Why are locations a problem? )

SQL Server will expects all databases to be created in the location below if it is not going to be there you must let it know the other location which must be a clean network drive with nothing but both MDF and LDF and you should have a very good reason for it.  VS2005 is an IDE(integrated development environment), SQL Server is a database server it is your responsibility to create your database where SQL Server can read it and your IDE folder should not be that location.

I hope one day taking the time to read the  SQL Server BOL(books online) will be on things to do list.

C:\Program Files\Microsoft SQL Server\MSSQL\BACKUP\DATA

 

This seems to be my location for SQL Express 2005:

C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data

Question is: why does Visual Web Developer attempt to create thte database on my network drive? And how can I change it? 

Caddre
Asp.Net User
Re: Why are locations a problem?10/31/2006 9:05:39 PM

0/0

VWD creates what is called a user instance database which SQL Server does not know exist unless you backup and restore the database.  I have found you two resources that will help.

The first is a three part tutorial to use both and the second is to download the Advanced it comes with some better futures to help you manage your databases.  Hope this helps.


http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnsse/html/VWD_SSE.asp

http://msdn.microsoft.com/vstudio/express/sql/compare/default.aspx


Kind regards,
Gift Peddie
shados
Asp.Net User
Re: Why are locations a problem?10/31/2006 9:28:48 PM

0/0

VWD will create a database in your app_data folder. Which, obviously, by default will be in "My Document", since, again by default, your projects will be in my document -> visual studio 2005 -> web sites (or something along that line). If its on a network drive, obviously its an issue. Just create the project elsewhere :)

And its a problem because of a bunch of security and internal decisions... The database just needs to be on the same physical machine as the server, which in your case is your own computer. Just make a folder on your C drive or something and make your projects there :)

OSACDave
Asp.Net User
Re: Why are locations a problem?11/1/2006 9:25:29 PM

0/0

shados:

VWD will create a database in your app_data folder. Which, obviously, by default will be in "My Document", since, again by default, your projects will be in my document -> visual studio 2005 -> web sites (or something along that line). If its on a network drive, obviously its an issue. Just create the project elsewhere :)

And its a problem because of a bunch of security and internal decisions... The database just needs to be on the same physical machine as the server, which in your case is your own computer. Just make a folder on your C drive or something and make your projects there :)

Well, DUH! So simple I couldn't see it! Thanks! Another question occurs, though: if the project is already created on the network drive and you move the folders to the local disk, won't you get an error when trying to load the project? It seems to me that if you created a new project with the same name as an existing project (if Express will let you) then copied the folders/files from the existing project to the new project's folder on your local disk, you'd be in business. Think I'll go try it out.

OSACDave
Asp.Net User
Re: Why are locations a problem?11/1/2006 9:29:21 PM

0/0

Caddre:

VWD creates what is called a user instance database which SQL Server does not know exist unless you backup and restore the database.  I have found you two resources that will help.

The first is a three part tutorial to use both and the second is to download the Advanced it comes with some better futures to help you manage your databases.  Hope this helps.


http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnsse/html/VWD_SSE.asp

http://msdn.microsoft.com/vstudio/express/sql/compare/default.aspx

The first link is the very same tutorial I mentioned in my original post. I'm not familiar with the second link, though, and I thank you for that. 

shados
Asp.Net User
Re: Why are locations a problem?11/1/2006 9:34:43 PM

0/0

Moving the project won't matter, assuming you're using Visual Web Developer Express. The "folder" is the project, so you're fine. If you were using full Visual Studio and had several projects wrapped in a solution, sometimes the path matters depending on how you stuck stuff. Then its just a matter of making a new solution and including the projects in it, no big deal. Projects can be moved around no issues, as long as you move -everything- in one go :) It all use relative paths.
10 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Approximation, Randomization, and Combinatorial Optimization : Algorithms and Techniques: 7th International Workshop on Approximation Algorithms for Combinatorial Optimization Problems, APPROX 2004, and 8th International Workshop on Randomization and Computation, RANDOM 2004, Cambridge, MA, USA, August 22-24, 2004 : Proceedings Authors: Klaus Jansen, Sanjeev Khanna, José D. P. Rolim, Dana Ron, Pages: 428, Published: 2004
Location, Scheduling, Design and Integer Programming Authors: M. W. Padberg, Minendra P. Rijal, Pages: 220, Published: 1996
Distribution Logistics: Advanced Solutions to Practical Problems Authors: Bernhard Fleischmann, Andreas Klose, Pages: 284, Published: 2005
Women and Gender in Southern Africa to 1945 Authors: Cherryl Walker, Pages: 390, Published: 1990
Democratizing Innovation Authors: Eric von Hippel, Pages: 204, Published: -1
Managing with Power: Politics and Influence in Organizations Authors: Jeffrey Pfeffer, Pages: 391, Published: 1993
Violence in Urban America: Mobilizing a Response : Summary of a Conference Authors: Jerome H. Skolnick, John F. Kennedy School of Government, National Research Council (U.S.), Pages: 104, Published: 1994
Geographic Location in the Internet Authors: Behcet Sarikaya, Pages: 214, Published: 2002
Location Theory: A Unified Approach Authors: Stefan Nickel, Justo Puerto, Pages: 437, Published: 2005

Web:
Facility location The general facility location problem is: given a set of facility locations and a set of customers who are served from the facilities then: ...
Facility Location Problem (I) Next: Facility Location Problem (II) Up: Application Problems Previous: Management Problem. Hans D. Mittelmann 2003-09-10.
Location API Problem - Developer Discussion Boards Location API Problem Location Based Services and Navigation.
Multi-location transshipment problem with capacitated production ... Optimal and heuristic algorithms for the multi-location dynamic transshipment problem with fixed transshipment costs, IIE Transactions 35: 419--432. ...
WordPress › Support » Location redirecting problem Location redirecting problem (1 post). GDragoN Member Posted 2 months ago #. I was going through all the actions that WP executes from the start of the page ...
Emerald: Article Request - Optimising the Location-Allocation ... The location-allocation problem involves multiple shipping destinations, ... The problem is to determine the number of facilities and their locations in ...
Simulated annealing for location allocation problem - MatLab - Snipplr Simulated annealing heuristics applied to solve continuous location allocation problem.
Multi-location transshipment problem with capacitated transportation Investigating two problem settings, we show the impact of transshipment capacity between stocking locations on system behavior. ...
SSRN-The Multi-Location Transshipment Problem with Positive ... Dec 23, 2006 ... SSRN-The Multi-Location Transshipment Problem with Positive Replenishment Lead Times by Y. Gong, E. Yucesan.
IngentaConnect A Location-Routing Problem in Designing Optical ... In this paper, we deal with a location-routing problem in designing the optical Internet with WDM systems. This problem arises from the design of broadband ...

Videos:
iPhone 2.0 Location Problem Trying to locate myself using Cell/Wi-Fi triangulation, with no success.
Range Non-Overlapping Indexing Google Tech Talks July 31, 2007 ABSTRACT We present a variation of the indexing problem involving constraints on the location of the pattern in the...
xbox live dwnl problem xbox marketplace problem with some download. it only happens with some of the download. i get the message saying "This item is not available from yo...
Asus P320 screen problem Screen sense wrong location
Range Non-Overlapping Indexing Google Tech Talks July 31, 2007 ABSTRACT We present a variation of the indexing problem involving constraints on the location of the pattern in the...
Pirate High Speed Showreel This is a showreel demonstrating Pirate High Speed's digital high speed camera which shoots up to 2000fps at broadcast resolution. Main features: 1...
virtual band 100 people play notes in different locations Give it a chance. Basically this is made with players of varying ability, many are complete beginners. A new compostion is broken down into notes th...
Problemathic - Chinese Location A video from our breakout-game Problemathic 12-15. The game consists of 5 different locations, 7 levels on each locations. A really engaging breako...
"Window" to the Brain Anatomy and pathology of the nervous system is understood by directly visualizing it. This is best accomplished by handling the brain (or model of th...
Combat Arms Problem I don't know what's up with it. I downloaded the game using all the recommended setting and file locations, but it still isn't working. I have seen t...




Search This Site:










dnn3.0 seeking advice/help to implement custom properties for profile

any reason not to use ctp release?

menu doesnt show, occasionaly

moving through the recordset

does convert.todatetime read dd/mm/yyyy or mm/dd/yyyy?

suggest all validators include property for required

how an accout was locked even input corrected?

personal starter kit upload

autoupgrade error - work around please

pls help ......

suggestion box bug

what is callback function

multiple menu items to reference different controls within a module?

anything that automatically creates forms for dnn, like ironspeed?

i am really confused

form level authentication

another module search ........ so shoot me!

passing properties/variables to custom provider

new module released today - dnnstuff module rotator

step backward with publish web site?

contact list module to handle thousands of contacts

turn off back botton

another image on the right side of the logo on the page (dnn 3.0.12)

windows authentication / impersonate="true"

unable to open .net configuration/security without sqlserverexpress installed.

how can i search for registered users afther installing ucanuse user attributes?

scalability, performance and download.

creating users

help coding website

only authenticate with passwordformat=clear

 
All Times Are GMT