Click here to Skip to main content
15,890,376 members
Home / Discussions / C#
   

C#

 
GeneralRe: I want to get the create query of existing table Pin
Russell Jones19-Mar-07 21:56
Russell Jones19-Mar-07 21:56 
GeneralRe: I want to get the create query of existing table Pin
joerozario19-Mar-07 22:42
joerozario19-Mar-07 22:42 
GeneralRe: I want to get the create query of existing table Pin
Russell Jones20-Mar-07 3:36
Russell Jones20-Mar-07 3:36 
GeneralRe: how to get create query of msaccess table through c# Pin
V.19-Mar-07 22:57
professionalV.19-Mar-07 22:57 
QuestionOleDBConnection Pin
zenithmaximus19-Mar-07 17:27
zenithmaximus19-Mar-07 17:27 
AnswerRe: OleDBConnection Pin
sujithkumarsl19-Mar-07 19:16
sujithkumarsl19-Mar-07 19:16 
AnswerRe: OleDBConnection Pin
spotl19-Mar-07 22:48
spotl19-Mar-07 22:48 
QuestionAnyone that has used SQLExpress as their db? Pin
Glen Harvy19-Mar-07 16:57
Glen Harvy19-Mar-07 16:57 
Hi,

I am new to SQLExpress (although not SQL) and am about to create a project in C# using it instead of MS Access.

I am a bit confused about some issues and would like advice/guidence on these issues please:

1. In the VS2005 IDE I can view the db, add tables etc manually which avoids the need of moving backwards and forwards with SQL Server Manager which is good.

As I have previously distributed my Access db in a subdirectory of the main program without problems, I would like to think I can do the same with the new .mdf file.

When coding however, the connection string would appear to require it to point to the orginal db in VS2005 Studio as follows:

string dbLocation = @"d:\vs2005 projects\mybookings\mybookings\mybookings.mdf";<br />
string connectionString = "Data Source=.\\SQLExpress;Integrated Security=True;Timeout=60;Initial Catalog = MyBookings;Application Name=SQLExpressTest;AttachDBFilename=" + dbLocation;


If I point the connection string to the copy of the db file in the subdirectory of the main program (like I do with MS Access) then I keep getting connection errors.

The question is - "How will this affect my program when I distribute it as obviously the connection string will point nowhere?"

2. I think I must be missing some basic understanding of use and deployment of SQLExpress enabled programs and would appreciate any references to any online sites you may be aware of. I've looked at the MSDN site and read the information there and no doubt I will eventually master it. However, the above problem concerns me now and I don't wish to start of wrong and have to go back and re-do my code. Unfortunately, almost everything I can find on this subject relates to ASP.Net and vb (which I find difficult to interpret particularly when I am trying to learn the subject - not the language).

TIA.

PS. PLease forgive the xpost but I think in this case it was warranted.

Glen Harvy

AnswerRe: Anyone that has used SQLExpress as their db? Pin
Russell Jones19-Mar-07 22:27
Russell Jones19-Mar-07 22:27 
GeneralRe: Anyone that has used SQLExpress as their db? [modified] Pin
Glen Harvy19-Mar-07 23:25
Glen Harvy19-Mar-07 23:25 
JokeRe: Anyone that has used SQLExpress as their db? Pin
joon vh.20-Mar-07 0:47
joon vh.20-Mar-07 0:47 
GeneralRe: Anyone that has used SQLExpress as their db? Pin
Glen Harvy20-Mar-07 1:38
Glen Harvy20-Mar-07 1:38 
GeneralRe: Anyone that has used SQLExpress as their db? Pin
Russell Jones20-Mar-07 1:02
Russell Jones20-Mar-07 1:02 
GeneralRe: Anyone that has used SQLExpress as their db? Pin
Glen Harvy20-Mar-07 1:48
Glen Harvy20-Mar-07 1:48 
AnswerRe: Anyone that has used SQLExpress as their db? Pin
Glen Harvy22-Mar-07 22:26
Glen Harvy22-Mar-07 22:26 
QuestionHow to get data from PHP into C# Windows Application? [modified] Pin
Khoramdin19-Mar-07 15:57
Khoramdin19-Mar-07 15:57 
AnswerRe: How to get data from PHP into C# Windows Application? Pin
Vasudevan Deepak Kumar19-Mar-07 16:11
Vasudevan Deepak Kumar19-Mar-07 16:11 
QuestionRe: How to get data from PHP into C# Windows Application? Pin
Khoramdin19-Mar-07 16:21
Khoramdin19-Mar-07 16:21 
AnswerRe: How to get data from PHP into C# Windows Application? Pin
dsl/fahk19-Mar-07 16:41
dsl/fahk19-Mar-07 16:41 
AnswerRe: How to get data from PHP into C# Windows Application? Pin
Christian Graus19-Mar-07 16:45
protectorChristian Graus19-Mar-07 16:45 
QuestionRe: How to get data from PHP into C# Windows Application? Pin
Khoramdin19-Mar-07 20:51
Khoramdin19-Mar-07 20:51 
AnswerRe: How to get data from PHP into C# Windows Application? Pin
joon vh.20-Mar-07 0:49
joon vh.20-Mar-07 0:49 
QuestionIn a forms app, how to get a reference to object that has focus? Pin
sherifffruitfly19-Mar-07 14:15
sherifffruitfly19-Mar-07 14:15 
AnswerRe: In a forms app, how to get a reference to object that has focus? Pin
dsl/fahk19-Mar-07 16:05
dsl/fahk19-Mar-07 16:05 
GeneralRe: In a forms app, how to get a reference to object that has focus? Pin
sherifffruitfly19-Mar-07 17:32
sherifffruitfly19-Mar-07 17:32 

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.