CodeVerge.Net Beta


   Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums




Can Reply:  No Members Can Edit: No Online: Yes
Zone: > Asp.Net Forum > starter_kits_and_source_projects.personal_site_starter_kit Tags:
Item Type: Date Entered: 1/19/2006 1:02:16 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
NR
XPoints: N/A Replies: 6 Views: 25 Favorited: 0 Favorite
7 Items, 1 Pages 1 |< << Go >> >|
"Gonzee" <>
NewsGroup User
Starter Kits with SQL Server 2005 Dev not Express1/19/2006 1:02:16 PM

0

I Visual Studio 2005 Pro and SQL Server 2005 Developer, so when I installed VS I chose not to install SQLExpress. Do I need this to effectively use the starter kits? I have changed the instance to my SQL 2005 instance rather that SQLExpress in Options-Data Connections, but it still creates the database in the app-data folder and make the connection string SQLExpress. Do I need to attach the database to my server and then change the connection string?
Thanks in advance.
Gonz
"suegooge" <>
NewsGroup User
Re: Starter Kits with SQL Server 2005 Dev not Express1/19/2006 2:44:18 PM

0

Gonz,

SQL Server 2005 has better performance than SQL Express 2005 for sure. It doesn't matter where your SQL Server 2005 locate as long as you have the credential conenct to it. Yes, change the connection string in your web.config file. Just Forget about SQL Express 2005.


Sue's edream - www.edream.org


"whighfield" <>
NewsGroup User
Re: Starter Kits with SQL Server 2005 Dev not Express1/19/2006 2:48:50 PM

0

Yes you will need to attach both databases (personal and aspnet) and change both connection strings.  If you will be eventually hosting this site on a third party hosting company you should change the SQL Server to mixed authentication (windows/sql server) and use a user/password to access the database.  This will make moving the site to live that much easier especially if you setup the hosting sites db and your developement db with the same user/password.

You also would be wise not to attach the databases in the app_data folder either.

- Will


- William

Give my enhanced version of the PWSK a look.

www.willyd.ca
"jwadsworth" <>
NewsGroup User
Re: Starter Kits with SQL Server 2005 Dev not Express1/19/2006 3:35:14 PM

0

You do not need SQL Express. I use both depending on what I'm doing.

You can cut-and-paste the database from the App_Data folder to where ever you keep your database files, and then attach the db from SQL Server.

Then change the connection strings. Here is what I use for working back and forth between SQLExpress and SQL Server.

<remove name="Personal"/>

<!-- Connection for SQL 2005 Express -->
<
add name="Personal" connectionString="Data Source=.\SQLExpress;Integrated Security=True;User Instance=True;AttachDBFilename=|DataDirectory|personal.mdf" providerName="System.Data.SqlClient"/>

<!-- Connection for SQL Server 2005 -->
<!--
add name="Personal" connectionString="Server=(Local);user id=test;password=test;database=Personal"/-->

<remove name="LocalSqlServer"/>

<!-- Connection for SQL 2005 Express -->
<
add name="LocalSqlServer" connectionString="Data Source=.\SQLExpress;Integrated Security=True;User Instance=True;AttachDBFilename=|DataDirectory|personal.mdf" providerName="System.Data.SqlClient"/>

<!-- Connection for SQL Server 2005 -->
<!--
add name="LocalSqlServer" connectionString="Server=localhost;user id=test;password=test;database=Personal" providerName="System.Data.SqlClient"/-->

Just a couple of things to note:

If you study the connection strings you'll notice everything points to the same database name. You may want to consider combining your appservicesdb with the personal db. There are links to scripts in the forums for accomplishing this task.

In addition, I have been using Visual Studio.net since beta back 4 or 5 years ago, can't remember now. Anyhow, I decided to give Visual Web Developer a try and it far exceeded all my expectations. It is truly a great web development tool.

I hope this was helpful.


Jeremy

Extended Personal Site Starter kit
"Gonzee" <>
NewsGroup User
Re: Starter Kits with SQL Server 2005 Dev not Express1/19/2006 8:46:10 PM

0

Thanks everyone for the prompt responses. That was the information that I was looking for.
Thanks again,
Gonz
"Michael404" <>
NewsGroup User
Re: Starter Kits with SQL Server 2005 Dev not Express1/24/2006 7:26:35 PM

0

I have been struggling with this very same issue...tried your connection string but am not able to get it to work. 

Cannot open database requested in login 'Personal'. Login fails.
Login failed for user 'personal'.

for testing Personal is the db name and the username.

From looking at the connection string for express it looks like the database is created when you build which makes sense.  However, what confuses is me is that the connection string for 2005 doesnt appear to be creating the database.

Do I need to create the database first if I am not using Express?

Thanks in Advance!
Michael

 

 

"XIII" <>
NewsGroup User
Re: Starter Kits with SQL Server 2005 Dev not Express1/24/2006 7:51:11 PM

0

Michael404 wrote:
I have been struggling with this very same issue...tried your connection string but am not able to get it to work. 

Cannot open database requested in login 'Personal'. Login fails.
Login failed for user 'personal'.

I'm getting this error too when I want to create something with SQL Express. I have also SQL Server 2005 installed (that one first).

Michael404 wrote:
From looking at the connection string for express it looks like the database is created when you build which makes sense.  However, what confuses is me is that the connection string for 2005 doesnt appear to be creating the database.

Do I need to create the database first if I am not using Express?

Yes, if you only use SQL Express then aspnetdb.mdf is created automatically for you but when you want to use SQL Server then you first need to install it with the aspnet_regsql.exe tool. A good explanation can be found here: http://weblogs.asp.net/scottgu/archive/2005/08/25/423703.aspx

Grz, Kris.


Kris van der Mast [MVP] || 101 LINQ to SQL samples
7 Items, 1 Pages 1 |< << Go >> >|


Free Download:













3.1 log viewer

"potentially dangerous" error message

why dnn does not use dsfck as default htmleditorprovider ? it seems much butter then the actual ftb3 (compatible mozilla, ie7 beta !)

how to open dotnetnuke.mdb.resources?

problem with the child portal

solpart menu module issue on server

newbie - errors on installation / first access

is there any documentation on creating modules for dnn 2.x

problems after upgrading to new gallery

audio questions

new users in dnn 2.1.2

product display

could not find stored procedure 'updateportalinfo'.

favicon and child portal

intermittent bug v2.1.2 - top admin section occassionally shows

external app authentication

visibility icon centering

dnn2 manifest / .dnn file creator

problem saving non english strings to the db via an insert into module upload script

can't select logo

new dnn site: for a band

winforms + webservices + membership (dotnetnuke 3.x)

help! flash integration in header

off topic: map location web service

quality hosting suggestions?

restored my db and now the site wont work?

role based security

dnn 2.0 file manager only uploads content

css question for containers

dnn performance enhancement suggestions

dnn 3.07 user properties...

dotnetnuke news module enhancement: limiting the number of news items

dotnetbb forum & dnn2

server error at the first start

dnn 3.04 beta skin and container issue

do telerik components work on dnn 3.0.11 beta?

suggested change for hostname alias

who's using dotnetnuke?

dnn 3 issue: text editor unavailable

automatically create blog when new user is created???

how to change title

references broken in 3.2.2

a caution sign with the text "an error has occured"

how to refresh dnn after the administrator add contents?

howto: login the site without putting a [login] skinobject to the skin?

module error when localizing !

the dotnetnuke experience is a disaster.

adding core elements in dnn

help about.. helpdesk module?

changeing tree menu, document module look and feel + container problems

   
  Privacy | Contact Us
All Times Are GMT