Click here to Skip to main content
15,914,398 members
Home / Discussions / Database
   

Database

 
QuestionHow do I change the location of (LOCAL)? Pin
Marcus J. Smith30-Mar-07 5:01
professionalMarcus J. Smith30-Mar-07 5:01 
AnswerRe: How do I change the location of (LOCAL)? Pin
Colin Angus Mackay30-Mar-07 5:08
Colin Angus Mackay30-Mar-07 5:08 
GeneralRe: How do I change the location of (LOCAL)? Pin
Marcus J. Smith30-Mar-07 5:12
professionalMarcus J. Smith30-Mar-07 5:12 
GeneralRe: How do I change the location of (LOCAL)? Pin
Colin Angus Mackay30-Mar-07 6:49
Colin Angus Mackay30-Mar-07 6:49 
GeneralRe: How do I change the location of (LOCAL)? Pin
Marcus J. Smith30-Mar-07 7:13
professionalMarcus J. Smith30-Mar-07 7:13 
GeneralRe: How do I change the location of (LOCAL)? Pin
Colin Angus Mackay30-Mar-07 8:40
Colin Angus Mackay30-Mar-07 8:40 
AnswerRe: How do I change the location of (LOCAL)? Pin
kubben30-Mar-07 13:44
kubben30-Mar-07 13:44 
QuestionExtracting just the date portion Pin
Marc Clifton30-Mar-07 4:28
mvaMarc Clifton30-Mar-07 4:28 
AnswerRe: Extracting just the date portion Pin
Colin Angus Mackay30-Mar-07 4:39
Colin Angus Mackay30-Mar-07 4:39 
GeneralRe: Extracting just the date portion Pin
Marc Clifton30-Mar-07 4:47
mvaMarc Clifton30-Mar-07 4:47 
GeneralRe: Extracting just the date portion Pin
Colin Angus Mackay30-Mar-07 5:11
Colin Angus Mackay30-Mar-07 5:11 
AnswerRe: Extracting just the date portion Pin
kubben30-Mar-07 5:08
kubben30-Mar-07 5:08 
GeneralRe: Extracting just the date portion Pin
Marc Clifton30-Mar-07 5:14
mvaMarc Clifton30-Mar-07 5:14 
Questiongetting RecordCount = -1 Pin
Ankur.Bakliwal30-Mar-07 3:48
Ankur.Bakliwal30-Mar-07 3:48 
AnswerRe: getting RecordCount = -1 Pin
Christian Graus30-Mar-07 3:55
protectorChristian Graus30-Mar-07 3:55 
GeneralRe: getting RecordCount = -1 Pin
Ankur.Bakliwal30-Mar-07 3:59
Ankur.Bakliwal30-Mar-07 3:59 
GeneralRe: getting RecordCount = -1 Pin
Christian Graus30-Mar-07 4:03
protectorChristian Graus30-Mar-07 4:03 
AnswerRe: getting RecordCount = -1 Pin
roel_v31-Mar-07 2:45
roel_v31-Mar-07 2:45 
QuestionDistribution of software Pin
drc_no130-Mar-07 3:41
drc_no130-Mar-07 3:41 
AnswerRe: Distribution of software Pin
Colin Angus Mackay30-Mar-07 4:32
Colin Angus Mackay30-Mar-07 4:32 
drc_no1 wrote:
the connection string to the database. On my computer it is:
connectionString="Data Source=DRC;Initial Catalog=Consulting_co;Integrated Security=True" providerName="System.Data.SqlClient"
//from app.config
as far as i know, datasource indicates the name of the sql server and this name must modify when the program is run from another place.


Well, you only need to modify it is the database is in another place. In an organisation setting each computer will point to the same SQL Server on the network.

In your case you might want to just change Data Source=(local) instead. Specifying the server as (local), including the brackets, just means the default instance of SQL Server on this machine.

Back to attaching and detaching the database. I tend not to do this. Usually I take a backup and then restore the backup on the target machine. The other thing you have to watch out for is user accounts. Logins are stored in the master database, the user permissions are stored on a per-database level. Off the top of my head I don't recall how to match them up again (if they get mismatched), but it is something you will have to consider.


QuestionUrgent Pin
Test27030730-Mar-07 2:51
Test27030730-Mar-07 2:51 
AnswerRe: Urgent Pin
Christian Graus30-Mar-07 3:06
protectorChristian Graus30-Mar-07 3:06 
GeneralRe: Urgent Pin
Test27030730-Mar-07 3:44
Test27030730-Mar-07 3:44 
GeneralRe: Urgent Pin
Christian Graus30-Mar-07 4:00
protectorChristian Graus30-Mar-07 4:00 
GeneralRe: Urgent Pin
Test27030730-Mar-07 4:02
Test27030730-Mar-07 4:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.