Re: Which Method to Create a Database Do I Use?



Bill,

I don't know why this is so infuriatingly difficult. I would say I get a successful database connection maybe one out of every hundred attempts. And the messages are virtually useless.

Here's the current:

{"Cannot open database \"BlackBelt\" requested by the login. The login failed.\r\nLogin failed for user 'Jonathan-PC\\Jonathan'."}

I don't know how much hair I can withstand pulling out before this starts making a bit of sense to me.

Thanks.

(Also, I noticed that, when I create a database via the Server Explorer, it appears to create a DBO file instead of an MDF file. There seems to be other differences as well. I've been programming for a hundred years (almost) but feel completely useless right now.)

--
Jonathan Wood
SoftCircuits Programming
http://www.softcircuits.com


"William (Bill) Vaughn" <billvaRemoveThis@xxxxxxxxx> wrote in message news:%23UKpvJvqHHA.4624@xxxxxxxxxxxxxxxxxxxxxxx
Either method is acceptable. They both create a database .mdf file that can be populated with appropriate schema. As a matter of fact, there are probably a half-dozen ways to create a database and populate it with schema. The fact that you're going to use it in an ASP project suggests that the SQL Server engine be located on another system in a heavily used production application, but for most other installations it does not make much difference.

I discuss how to decide in depth in my book.

--
____________________________________
William (Bill) Vaughn
Author, Mentor, Consultant
Microsoft MVP
INETA Speaker
www.betav.com/blog/billva
www.betav.com
Please reply only to the newsgroup so that others can benefit.
This posting is provided "AS IS" with no warranties, and confers no rights.
__________________________________
Visit www.hitchhikerguides.net to get more information on my latest book:
Hitchhiker's Guide to Visual Studio and SQL Server (7th Edition)
and Hitchhiker's Guide to SQL Server 2005 Compact Edition (EBook)
-----------------------------------------------------------------------------------------------------------------------

"Jonathan Wood" <jwood@xxxxxxxxxxxxxxxx> wrote in message news:%23iHid8uqHHA.3380@xxxxxxxxxxxxxxxxxxxxxxx
It appears there are two methods for creating a database as part of an ASP project.

I can use the Server Explorer and create a database that I can't easily see as a file, and create a connection. On the other hand, I can right click in the Solution Explorer window and select Add New Item, and then create an SQL Database. This creates an MDF file directly.

I'm having trouble getting up to speed on the database stuff and have two seemingly unrelated ways to create my database makes it all the more confusing.

Can anyone explain the difference between these two methods, and then help me understand which is the best method for creating a database to be used by my Web page?

Thanks!

--
Jonathan Wood
SoftCircuits Programming
http://www.softcircuits.com




.



Relevant Pages

  • Re: "Hidden" Replication Stored Procedures?
    ... Since the engine has hooks that hide the mssqlsystemresource database from ... 4.)Start the SQL Server service; ... Chris Jones ... aforementioned MDF file in Notepad and doing a quick search, ...
    (microsoft.public.sqlserver.replication)
  • Re: Problem with updating MDF Data file as opposed to updating a running SQL Server DB
    ... In Visual C# Express, I created a windows application, then "Added" a ... Doing this created an MDF file in my project folder, ... database into my database explorer window in the IDE. ... It would seem with this option, then one could use a SQL Server MDF ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: MS Access DAO -> ADO.NET Migration
    ... William Vaughn ... Microsoft MVP ... Hitchhiker's Guide to Visual Studio and SQL Server ... My migration app works building a SSCE database file with imported data ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Cluster will not fail over.
    ... > As far as the TCP/IP issue goes, you had to rebuild the cluster and were ... > able to restore the master database. ... > a cluster installation you'll have to revisit. ... >> This worked bringing up the sql server in minimal mode. ...
    (microsoft.public.sqlserver.clustering)
  • Re: MS Access DAO -> ADO.NET Migration
    ... full SQL Server and I see the logic you explained in a multi user ... allow two users to access the same database file Read/Write at any given ... The book was a pleasure to read after the gibberish that Microsoft 'puts ... Hitchhiker's Guide to Visual Studio and SQL Server ...
    (microsoft.public.dotnet.framework.adonet)