Click here to Skip to main content
15,926,596 members
Home / Discussions / C#
   

C#

 
GeneralRe: Data validation in c# and SQL server 2000 Pin
phokojoe5-Jan-07 1:33
phokojoe5-Jan-07 1:33 
QuestionLimitation of FSWatcher & Windows Service Pin
Fayyaz Lodhi4-Jan-07 21:23
Fayyaz Lodhi4-Jan-07 21:23 
Questionxml reading/editing/writing Pin
divakarjmc104-Jan-07 19:37
divakarjmc104-Jan-07 19:37 
AnswerRe: xml reading/editing/writing Pin
sajid.salim.khan4-Jan-07 20:11
sajid.salim.khan4-Jan-07 20:11 
AnswerRe: xml reading/editing/writing Pin
Mircea Puiu4-Jan-07 20:43
Mircea Puiu4-Jan-07 20:43 
QuestionHow to Make EXE Pin
sajid.salim.khan4-Jan-07 19:07
sajid.salim.khan4-Jan-07 19:07 
GeneralRe: How to Make EXE Pin
Tyler454-Jan-07 19:31
Tyler454-Jan-07 19:31 
GeneralBut Sir Pin
sajid.salim.khan4-Jan-07 20:17
sajid.salim.khan4-Jan-07 20:17 
AnswerRe: But Sir Pin
Tyler454-Jan-07 20:28
Tyler454-Jan-07 20:28 
GeneralRe: But Sir Pin
sajid.salim.khan4-Jan-07 20:38
sajid.salim.khan4-Jan-07 20:38 
AnswerRe: But Sir Pin
Tyler454-Jan-07 20:58
Tyler454-Jan-07 20:58 
GeneralRe: But Sir Pin
JacquesDP4-Jan-07 20:34
JacquesDP4-Jan-07 20:34 
AnswerRe: How to Make EXE Pin
Mircea Puiu4-Jan-07 21:05
Mircea Puiu4-Jan-07 21:05 
AnswerRe: How to Make EXE Pin
Christian Graus4-Jan-07 23:58
protectorChristian Graus4-Jan-07 23:58 
AnswerRe: How to Make EXE Pin
TrooperIronMan5-Jan-07 5:34
TrooperIronMan5-Jan-07 5:34 
AnswerRe: How to Make EXE Pin
Tyler455-Jan-07 12:14
Tyler455-Jan-07 12:14 
QuestionDateTime.CompareTo() runtime miss Pin
swjam4-Jan-07 18:17
swjam4-Jan-07 18:17 
AnswerRe: DateTime.CompareTo() runtime miss Pin
Christian Graus4-Jan-07 18:32
protectorChristian Graus4-Jan-07 18:32 
AnswerRe: DateTime.CompareTo() runtime miss Pin
Phillip M. Hoff4-Jan-07 18:41
Phillip M. Hoff4-Jan-07 18:41 
AnswerRe: DateTime.CompareTo() runtime miss Pin
Russell Jones4-Jan-07 21:56
Russell Jones4-Jan-07 21:56 
QuestionCPU Usage in % Pin
Praveen Raghuvanshi4-Jan-07 17:14
professionalPraveen Raghuvanshi4-Jan-07 17:14 
AnswerRe: CPU Usage in % Pin
Phillip M. Hoff4-Jan-07 18:24
Phillip M. Hoff4-Jan-07 18:24 
Questionconnect db to crystal report Pin
amilapradeep4-Jan-07 17:12
amilapradeep4-Jan-07 17:12 
i,m using c#2005 and sqlexpress.

in my projects i use separate class for db connection and call that on project.
there i use connection string as

ConnectionString = "Data Source=.\\SQLEXPRESS;AttachDbFilename=|DataDirectory|\\Database\\stock.mdf;Integrated Security=True;User Instance=True";

as i understand this db created on project location and it attached to sql server when project(or build exe) running. after successfully build project i could see db had attached to server as "D:\Equipmanager\Equipmanager\bin\Debug\Database\stock.mdf"

everything ok.db connection works fine.
but problem comes when i start reports.
there i tried on ADO.net and OLE DB.but wizard shows only default dbs.master etc....(actually my project db attached to server when running.show how it show there?)
here's my problem...

1. can i use this connection string...is there any problem...
2. how to use project db for reporting(use crystal report)..?should i attached db manually and do report?

if i use sql 2000 this problem ok.because there every db is attached and not separate file.

currently i get db details by code and pass those to report(actually this connection string fine.because when deploying db is automatically attached.no need to do it manually)

but passing parameter is not good when long report.that's why i want to find way connect db to report?


AnswerRe: connect db to crystal report Pin
Tyler454-Jan-07 21:34
Tyler454-Jan-07 21:34 
GeneralRe: connect db to crystal report Pin
amilapradeep5-Jan-07 2:07
amilapradeep5-Jan-07 2:07 

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.