Click here to Skip to main content
15,901,284 members
Home / Discussions / C#
   

C#

 
GeneralRe: is there a quick and dirty way to add 'st' 'rd' 'th' to numbers? Pin
Rob Philpott26-Dec-05 11:16
Rob Philpott26-Dec-05 11:16 
GeneralRe: is there a quick and dirty way to add 'st' 'rd' 'th' to numbers? Pin
leppie26-Dec-05 11:35
leppie26-Dec-05 11:35 
GeneralRe: is there a quick and dirty way to add 'st' 'rd' 'th' to numbers? Pin
Colin Angus Mackay26-Dec-05 14:09
Colin Angus Mackay26-Dec-05 14:09 
AnswerRe: is there a quick and dirty way to add 'st' 'rd' 'th' to numbers? Pin
manasvarpe26-Dec-05 18:05
manasvarpe26-Dec-05 18:05 
GeneralRe: is there a quick and dirty way to add 'st' 'rd' 'th' to numbers? Pin
peshkunta26-Dec-05 18:59
peshkunta26-Dec-05 18:59 
GeneralRe: is there a quick and dirty way to add 'st' 'rd' 'th' to numbers? Pin
manasvarpe26-Dec-05 22:44
manasvarpe26-Dec-05 22:44 
Newsconnect serial comm port with VS.NET2003 Pin
sharapova26-Dec-05 6:50
sharapova26-Dec-05 6:50 
Question.net 2.0 SqlDependency Pin
fmardani26-Dec-05 6:45
fmardani26-Dec-05 6:45 
Hi,
I am trying to get the SqlDependency to work in an application. Here is the problem:
One windows application connects to northwind database using a user login. It then diplays the data in the Employees table.

Another project is using the the login as the previous App to display the same data BUT it displays an error when it gets to da.Fill(ds, "Customer");

The error is:

Message "When using SqlDependency without providing an options value, SqlDependency.Start() must be called prior to execution of a command added to the SqlDependency instance." string

Thanks

Here is code that I am using.

ds.Clear();

SqlConnection conn = new SqlConnection(txtConnect.Text);

conn.Open();

SqlCommand cmd = new SqlCommand(txtSelect.Text, conn);

SqlDataAdapter da = new SqlDataAdapter(cmd);



//SqlDependency.Start(txtConnect.Text); //test...

SqlDependency dep = new SqlDependency(cmd);

//The ERROR is on this line...///////
da.Fill(ds, "Employees");
/////////////////////////////////////

grdDemo.DataSource = ds;
grdDemo.DataMember = "Employees";

AnswerRe: .net 2.0 SqlDependency Pin
Xodiak26-Dec-05 14:53
Xodiak26-Dec-05 14:53 
GeneralRe: .net 2.0 SqlDependency Pin
fmardani26-Dec-05 20:43
fmardani26-Dec-05 20:43 
QuestionProblem with Label control Pin
naglbitur26-Dec-05 5:56
naglbitur26-Dec-05 5:56 
AnswerRe: Problem with Label control Pin
Curtis Schlak.26-Dec-05 6:13
Curtis Schlak.26-Dec-05 6:13 
GeneralRe: Problem with Label control Pin
naglbitur26-Dec-05 6:28
naglbitur26-Dec-05 6:28 
GeneralRe: Problem with Label control Pin
Curtis Schlak.26-Dec-05 7:03
Curtis Schlak.26-Dec-05 7:03 
GeneralRe: Problem with Label control Pin
naglbitur26-Dec-05 6:45
naglbitur26-Dec-05 6:45 
GeneralRe: Problem with Label control Pin
Curtis Schlak.26-Dec-05 7:04
Curtis Schlak.26-Dec-05 7:04 
QuestionContext menu strips event sources? Pin
Dominik Reichl26-Dec-05 4:57
Dominik Reichl26-Dec-05 4:57 
AnswerRe: Context menu strips event sources? Pin
Darryl Borden29-Dec-05 9:17
Darryl Borden29-Dec-05 9:17 
QuestionRegarding SQL Database Pin
manojk_batra26-Dec-05 1:48
manojk_batra26-Dec-05 1:48 
AnswerRe: Regarding SQL Database Pin
Colin Angus Mackay26-Dec-05 2:19
Colin Angus Mackay26-Dec-05 2:19 
GeneralRe: Regarding SQL Database Pin
manojk_batra26-Dec-05 17:30
manojk_batra26-Dec-05 17:30 
GeneralRe: Regarding SQL Database Pin
Colin Angus Mackay27-Dec-05 0:06
Colin Angus Mackay27-Dec-05 0:06 
AnswerRe: Regarding SQL Database Pin
Johny Ng26-Dec-05 11:17
Johny Ng26-Dec-05 11:17 
GeneralRe: Regarding SQL Database Pin
manojk_batra26-Dec-05 17:20
manojk_batra26-Dec-05 17:20 
GeneralRe: Regarding SQL Database Pin
Johny Ng26-Dec-05 18:33
Johny Ng26-Dec-05 18:33 

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.