473,608 Members | 2,479 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

create aspnetdb from scratch

Hello.
How can I create aspnetdb from scratch ?
(I want a script that create all table, views, etc... on that database).

Thanks :)
Oct 28 '08 #1
6 8807

This link:
http://sholliday.space s.live.com/Blog/cns!A68482B9628 A842A!160.entry
has the link to the cmd line tool to create a fresh / blank db. (scottgu
link)
My addition is a "data transferer"


"Mr. X." <no_spam_please @nospam_please. comwrote in message
news:OA******** *****@TK2MSFTNG P03.phx.gbl...
Hello.
How can I create aspnetdb from scratch ?
(I want a script that create all table, views, etc... on that database).

Thanks :)

Oct 28 '08 #2
I need especially the aspnetdb database's script
In that site
(http://sholliday.space s.live.com/Blog/cns!A68482B9628 A842A!160.entry
) for creating all the elements (tables, views, etc...),
that I should copy & paste it into Query Analyser on my site.

Thanks :)
Oct 28 '08 #3
build the database once, then use enterprise manager or a database project to
generate the scripts
-- bruce (sqlwork.com)
"Mr. X." wrote:
I need especially the aspnetdb database's script
In that site
(http://sholliday.space s.live.com/Blog/cns!A68482B9628 A842A!160.entry
) for creating all the elements (tables, views, etc...),
that I should copy & paste it into Query Analyser on my site.

Thanks :)
Oct 28 '08 #4
If the DB was just on my computer, I could do it long time ago,
but the database, which is aspnetdb - a specific database, that for some
unknown reason, Microsoft enforce someone who deploy his site to have,
should be on the hosting site only SQL-Server 2005.

I try some ways to create a database :
founded on http://www.4shared.com/file/59591680...NETDB_TMP.html,
.... then by Microsoft SQL Server Management I created a "bak" file,
but the hosting provider tell me everything O.K, except I should send him a
SQL-Server 2005.

I don't know how to check the version of SQL-Server 2005 (of the link
above),
but if I found a link as the previous one (for SQL-Server 2005), it would be
fine.

I just need a file : bakup file or script file, that I can put on the
hosting server, without any problems.
I am searching that file (.bak or .sql of SQL-Server 2005 version), but I
didn't find yet.
I don't know why just putting a file on the internet, and save efforts
creating it, since this is a standard file (aspnetdb), that always should be
when deploying my site.

If you have a link to that file (bak or sql for SQL-Server 2005 version), it
would be great.

Please, help.

Thanks :)
Oct 29 '08 #5
You are not forced to deploy this db. Either you have something in your
web.config that tells to use this db either your provider is forcing its
use.

Though creating a dummy db would solve your problem I would rather check the
web.config file to make sure it is not used unintentionaly (as you don't
need it locally it would seem your hoster is forcing (unintentionaly ) this
use ???.

--
Patrice
"Mr. X." <no_spam_please @nospam_please. coma écrit dans le message de
groupe de discussion : u0************* *@TK2MSFTNGP06. phx.gbl...
If the DB was just on my computer, I could do it long time ago,
but the database, which is aspnetdb - a specific database, that for some
unknown reason, Microsoft enforce someone who deploy his site to have,
should be on the hosting site only SQL-Server 2005.

I try some ways to create a database :
founded on
http://www.4shared.com/file/59591680...NETDB_TMP.html,
... then by Microsoft SQL Server Management I created a "bak" file,
but the hosting provider tell me everything O.K, except I should send him
a SQL-Server 2005.

I don't know how to check the version of SQL-Server 2005 (of the link
above),
but if I found a link as the previous one (for SQL-Server 2005), it would
be fine.

I just need a file : bakup file or script file, that I can put on the
hosting server, without any problems.
I am searching that file (.bak or .sql of SQL-Server 2005 version), but I
didn't find yet.
I don't know why just putting a file on the internet, and save efforts
creating it, since this is a standard file (aspnetdb), that always should
be when deploying my site.

If you have a link to that file (bak or sql for SQL-Server 2005 version),
it would be great.

Please, help.

Thanks :)
Oct 29 '08 #6
Hi.

First time after deployment on VS 2008.
(Just create the login wizard in VS 2008 - VB, and deploy).

The I got the following error :
=============== =======

Server Error in '/' Application.
--------------------------------------------------------------------------------

Failed to generate a user instance of SQL Server due to failure in
retrieving the user's local application data path. Please make sure the user
has a local user profile on the computer. The connection will be closed.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.

Exception Details: System.Data.Sql Client.SqlExcep tion: Failed to generate a
user instance of SQL Server due to failure in retrieving the user's local
application data path. Please make sure the user has a local user profile on
the computer. The connection will be closed.

Source Error:

An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of the
exception can be identified using the exception stack trace below.
******
******
After looking in google (I may be wrong, but too much sites, telling the
same),
I see that the above is related to sqlnetdb.mdf, and I should create one.
Yet, I don't use any database.

Here is the web.config, what the deployment enviormnet by VS 2008 put
automatically :

<?xml version="1.0"?>
<configuratio n>
<appSettings/>
<system.web>
<!--
Set compilation debug="true" to insert debugging
symbols into the compiled page. Because this
affects performance, set this value to true only
during development.

Visual Basic options:
Set strict="true" to disallow all data type conversions
where data loss can occur.
Set explicit="true" to force declaration of all variables.
-->
<customErrors mode="Off"/>
<compilation debug="true" strict="false" explicit="true" >
</compilation>
<pages>
<namespaces>
<clear/>
<add namespace="Syst em"/>
<add namespace="Syst em.Collections"/>
<add namespace="Syst em.Collections. Generic"/>
<add namespace="Syst em.Collections. Specialized"/>
<add namespace="Syst em.Configuratio n"/>
<add namespace="Syst em.Text"/>
<add namespace="Syst em.Text.Regular Expressions"/>
<add namespace="Syst em.Linq"/>
<add namespace="Syst em.Xml.Linq"/>
<add namespace="Syst em.Web"/>
<add namespace="Syst em.Web.Caching"/>
<add namespace="Syst em.Web.SessionS tate"/>
<add namespace="Syst em.Web.Security "/>
<add namespace="Syst em.Web.Profile"/>
<add namespace="Syst em.Web.UI"/>
<add namespace="Syst em.Web.UI.WebCo ntrols"/>
<add namespace="Syst em.Web.UI.WebCo ntrols.WebParts "/>
<add namespace="Syst em.Web.UI.HtmlC ontrols"/>
</namespaces>
</pages>
<!--
The <authentication section enables configuration
of the security authentication mode used by
ASP.NET to identify an incoming user.
-->
<authenticati on mode="Windows"/>
<!--
The <customErrorsse ction enables configuration
of what to do if/when an unhandled error occurs
during the execution of a request. Specifically,
it enables developers to configure html error pages
to be displayed in place of a error stack trace.

<customErrors mode="RemoteOnl y"
defaultRedirect ="GenericErrorP age.htm">
<error statusCode="403 " redirect="NoAcc ess.htm" />
<error statusCode="404 " redirect="FileN otFound.htm" />
</customErrors>
-->
</system.web>
<system.codedom >
</system.codedom>
<!--
The system.webServe r section is required for running ASP.NET AJAX
under Internet
Information Services 7.0. It is not necessary for previous version
of IIS.
-->
<system.webServ er>
</system.webServe r>
</configuration>

Second : I put the file on the link I gave
=============== ===============
http://www.4shared.com/file/59591680...NETDB_TMP.html
and also the ASPNETDB_TMP_lo g.LDF

What I see, that this database is just using to record and trace members (or
something like that).

I have tried to add a reference in web.config like this :
....
<configuratio n>
<connectionStri ngs>
<remove name="LocalSqlS erver" />

<add name="LocalSqlS erver" connectionStrin g="data
source=.\SQLEXP RESS;Integrated
Security=True;A ttachDBFilename =|DataDirectory |aspnetdb.mdf;U ser
Instance=true"
providerName="S ystem.Data.SqlC lient" />
</connectionStrin gs>
...

Still I got the same error.

The hosting company supports sqlexpress & also sql-server 2005, and insist
to send them a ".bak" or ".sql" version
of SQL-Server-2005.

Neighter of them are right, since they are not SQL-Server-2005 version.

I would be glade, whether I not need now the ASPNETDB.MDF (for some reason,
I understood that aspnetdb.mdf is a database that must be on server site,
when doing deployment, and also app_data folder).

Look for any solution.

Thanks :)
Oct 29 '08 #7

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

Similar topics

2
2106
by: Arne | last post by:
Can I copy aspnetdb.mdf tp another computer and expect the ASPNet account to have rights to open this database? What is the proper way copy ASPNETDB to another webserver? What is the proper wat to admin aspnetdb.mdf on a non-development computer?
5
3054
by: VB Programmer | last post by:
My web hoster says that I have to rename my ASPNETDB.MDF SqlExpress db for my 2.0 site to work. Is this accurate? If so, how can I rename it without breaking anything on my site? FYI: This is the error I'm getting after I publish my site to their servers... An attempt to attach an auto-named database for file c:\hosting\myhost\member\myaccount\customerdomains\mysite\App_Data\ASPNETDB.MDF failed. A database with the same name exists,...
2
2513
by: te goody | last post by:
Problem summary: Web Site Admin Tool is not generating the application services database (aspnetdb.mdf); i.e. The DB is not found under the app_data directory. The Question: What configuration am I missing to allow WAT to create the application services database? Scenarios I tried: On a dedicated developer workstation running WXP w/ SP2, I installed
0
1878
by: te goody | last post by:
Problem summary: Web Site Admin Tool is not generating the application services database (aspnetdb.mdf) in a SS 2005 only environment; i.e. The DB is not found under the app_data directory. The Question: What configuration am I missing to allow WAT to create the application services database? Scenarios I tried:
0
1177
by: RAM | last post by:
Hello, I have written simple ASP.NET application with logging in. I need to open ASPNETDB database to read some information which is not available using class library (custom table). I have written: using (SqlConnection aspnetdb = new SqlConnection(ConfigurationManager.ConnectionStrings.ConnectionString)) { aspnetdb.Open(); // here problem
1
1827
by: CFTK | last post by:
This is the error I get when I try to login in my application from another machine: An attempt to attach an auto-named database for file C:\Documents and Settings\....\App_Data\aspnetdb.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share. What should I do..? I´m lost..!
16
3863
by: Mich | last post by:
Hi, i'm building an web application for anonymous users. They can take a look in the website, nothing more. In order to perform other actions, the anonymous user must be logged. So i create an aspx page with the CreateUserWizard control. The user can fill his username, password etc .... My problem is: when an user fills everything and clicks on button "create an account", nothing happens (no error, but no user account created). I...
3
1983
by: GaryDean | last post by:
I noticed that my asp.net project contains a 10 meg ASPNETDB.MDF database in the App_data folder. I never intentionally put it there, have never ran regsql.exe. Reading back on my logs it got there on March 7th the day I was adding some web references. How might this have gotten added to the project? -- Regards, Gary Blakely
3
3529
by: R.A.M. | last post by:
Hello, I have created ASP.NET application with aspnetdb database. In the following codeI have an error: System.Security.Principal.IPrincipal user = HttpContext.Current.User; if (user.IsInRole("Manager")) // HERE ERROR The error is: Generating user instances in SQL Server is disabled. Use sp_configure 'user
0
8059
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8000
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8495
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8470
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8330
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6011
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
3960
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2474
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1589
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.