Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 2005 > C# 2005
|
C# 2005 For discussion of Visual C# 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# 2005 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 1st, 2008, 06:32 AM
Friend of Wrox
 
Join Date: Dec 2006
Posts: 176
Thanks: 0
Thanked 0 Times in 0 Posts
Default do we have to install MSSQL?

hi expert
when we write a project that needs to connect to database for store data and.... we should attach the data base on end user computer who use Our Application
what things we need for attaching the data file? do we should install the microsoft sql server 2000 or sql server 2005 express edition? and we should attach the data base files manualy or we can attach them with some codes inside the application?
thanks
 
Old January 1st, 2008, 08:25 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

This depends on the application architecture.

If your application is a "client/server" database desktop application, then generally you would have a single database instance that all desktop applications connect to. In this case you need an attached and running instance of your database on a server running SQL Server.

If the application is designed around a "local" database, then each desktop running the application needs to have some flavor of SQL Server running. This could be SQL Server Express to which a database file is dynamically attached at run-time or any other configuration of SQL Server running locally that provides a live database.

There are many options, all of which depend on your application design.

-Peter
 
Old January 2nd, 2008, 05:19 AM
samjudson's Avatar
Friend of Wrox
 
Join Date: Aug 2007
Posts: 2,128
Thanks: 1
Thanked 189 Times in 188 Posts
Default

There is also SQL Server Compact edition, which doesn't require any install (unlike SQL Server Express).

/- Sam Judson : Wrox Technical Editor -/
 
Old January 19th, 2008, 03:24 AM
Friend of Wrox
 
Join Date: Dec 2006
Posts: 176
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
quote:Originally posted by samjudson
 There is also SQL Server Compact edition, which doesn't require any install (unlike SQL Server Express).

/- Sam Judson : Wrox Technical Editor -/
SQL CE ? it is used for smart Device Application !!!!

 
Old January 19th, 2008, 05:26 AM
samjudson's Avatar
Friend of Wrox
 
Join Date: Aug 2007
Posts: 2,128
Thanks: 1
Thanked 189 Times in 188 Posts
Default

It can be used on the desktop just fine as well (in fact I currently am doing just that on a project at work).

/- Sam Judson : Wrox Technical Editor -/





Similar Threads
Thread Thread Starter Forum Replies Last Post
Connecting to MSSQL-- All about it Chrisman ASP.NET 3.5 Basics 3 May 17th, 2008 03:23 AM
MSSQL 2005 and MSSQL 2000 tiredcat Visual Basic 2005 Basics 0 April 9th, 2007 12:56 AM
PHP and MSSQL on Linux rvanandel PHP Databases 1 November 15th, 2005 08:55 PM
Help!!!! MSSQL will not connect jts7979 Classic ASP Databases 1 December 12th, 2004 11:34 PM
MySQL and MsSQL stevenckh MySQL 2 September 12th, 2003 12:17 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.