Geekzone: technology news, blogs, forums
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.

411 posts

Ultimate Geek

# 38604 1-Aug-2009 21:43
Send private message

So, im workiing on this project at th emoment and I have the ASPNETDB database (The one which does all the login stuff, is a tool that you drag on and the database gets automatically created.

I migrated that .MDF database file to live on a proper SQL Server Database, but the problem I now have is that the program now cant find that database.

I cant figure out how to change the link to point at the SQL database rather than the .MDF file
Does anyone know how to do this?

Im using Visual Studio 2008 and SQL Server 2005 Developer on Server 2003

Thanks in advanced!

-- Divett Enterprises -- The Power Of Tomorrow --

Create new topic
Phil Gale
1108 posts

Uber Geek

Red Jungle

  # 241328 1-Aug-2009 22:03
Send private message

If I'm understanding that correctly, then it should be just a matter of updating your SQL connection string in the Web.config

Rather than pointing to the .mdf, you'll want something like this:

Data Source=myServerAddress;Initial Catalog=myDataBase;User Id=myUsername;Password=myPassword;

Red Jungle: we make fantastic software

RSS  Twitter  Facebook  Skype

96 posts

Master Geek

  # 241684 3-Aug-2009 09:02
Send private message

Here is the connection string from my web.config file on a server connecting to a MSSQL database
name="name" connectionString="Data Source=DBSERVERIP;Initial Catalog=DBNAME;User ID=DBUSERD;password=DBPASSWORD;Trusted_Connection=no;


8035 posts

Uber Geek


  # 241828 3-Aug-2009 15:35
Send private message

411 posts

Ultimate Geek

  # 242307 4-Aug-2009 12:19
Send private message

Does anyone have an example connection string for the ASPNETDB database (The default one when creating the login form)

-- Divett Enterprises -- The Power Of Tomorrow --

Create new topic

Twitter and LinkedIn »

Follow us to receive Twitter updates when new discussions are posted in our forums:

Follow us to receive Twitter updates when news items and blogs are posted in our frontpage:

Follow us to receive Twitter updates when tech item prices are listed in our price comparison site:

News »

Microsoft Translator understands te reo Māori
Posted 22-Nov-2019 08:46

Chorus to launch Hyperfibre service
Posted 18-Nov-2019 15:00

Microsoft launches first Experience Center worldwide for Asia Pacific in Singapore
Posted 13-Nov-2019 13:08

Disney+ comes to LG Smart TVs
Posted 13-Nov-2019 12:55

Spark launches new wireless broadband "Unplan Metro"
Posted 11-Nov-2019 08:19

Malwarebytes overhauls flagship product with new UI, faster engine and lighter footprint
Posted 6-Nov-2019 11:48

CarbonClick launches into Digital Marketplaces
Posted 6-Nov-2019 11:42

Kordia offers Microsoft Azure Peering Service
Posted 6-Nov-2019 11:41

Spark 5G live on Auckland Harbour for Emirates Team New Zealand
Posted 4-Nov-2019 17:30

BNZ and Vodafone partner to boost NZ Tech for SME
Posted 31-Oct-2019 17:14

Nokia 7.2 available in New Zealand
Posted 31-Oct-2019 16:24

2talk launches Microsoft Teams Direct Routing product
Posted 29-Oct-2019 10:35

New Breast Cancer Foundation app puts power in Kiwi women's hands
Posted 25-Oct-2019 16:13

OPPO Reno2 Series lands, alongside hybrid noise-cancelling Wireless Headphones
Posted 24-Oct-2019 15:32

Waikato Data Scientists awarded $13 million from the Government
Posted 24-Oct-2019 15:27

Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.

Support Geekzone »

Our community of supporters help make Geekzone possible. Click the button below to join them.

Support Geezone on PressPatron

Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.

Alternatively, you can receive a daily email with Geekzone updates.