Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / December 2007

Tip: Looking for answers? Try searching our database.

SQL Server and ASP.Net

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
James - 11 Dec 2007 17:36 GMT
Hello all

I am relatively good with ASP.net, been making lots of websites and logins
etc etc for a while now but always using Access as a data source.

Time has come to move up to SQL Server mainly because my new venture is
massive and many people will be updating data at the same time.

I have created my website on my computer, I have created a SQL database, all
works perfectly.

Now I want to copy the website to the webserver, the Data source is a mdf
file. With access it was easy, just copy it to the server. However this does
not work with SQL data source.

Has anyone any tips for how to do this, or a link that could help? The
server is Small Business Server with all the updates, and it has a SQL Server
Service Manager installed.

What do I need to do to get it to work. The only thing I can see that might
be a problem is in the webconfig it refers to SQLEXPRESS as the database,
should it be different?

Many thanks
James
Peter Bromberg [C# MVP] - 11 Dec 2007 17:50 GMT
You need to copy the MDF (and optional LDF log file) to the Database server
and use SQL Management studio to ATTACH the database. Then change your
connection string to not use User Instance, e.g.
server=myserver;database=mydatabase;uid=myuser;pwd=mypassword

-- Peter
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
MetaFinder: http://www.blogmetafinder.com 

> Hello all
>
[quoted text clipped - 21 lines]
> Many thanks
> James

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.