Click here to Skip to main content
15,899,679 members
Home / Discussions / C#
   

C#

 
AnswerRe: Save as ico Pin
leppie30-Oct-05 23:15
leppie30-Oct-05 23:15 
Questionproblem using a function for several tablenames Pin
da vinci coder30-Oct-05 13:45
da vinci coder30-Oct-05 13:45 
AnswerRe: problem using a function for several tablenames Pin
Rob Graham30-Oct-05 14:55
Rob Graham30-Oct-05 14:55 
GeneralRe: problem using a function for several tablenames Pin
da vinci coder30-Oct-05 15:47
da vinci coder30-Oct-05 15:47 
GeneralRe: problem using a function for several tablenames Pin
Rob Graham30-Oct-05 16:38
Rob Graham30-Oct-05 16:38 
GeneralRe: problem using a function for several tablenames Pin
da vinci coder30-Oct-05 16:48
da vinci coder30-Oct-05 16:48 
GeneralRe: problem using a function for several tablenames Pin
Rob Graham30-Oct-05 17:03
Rob Graham30-Oct-05 17:03 
GeneralRe: problem using a function for several tablenames Pin
da vinci coder30-Oct-05 17:10
da vinci coder30-Oct-05 17:10 
my mssql server and everything seems fine, this is just a function of the system, i can add, delete, update records on my program right now and there is no problem, what i wanted to do is, i'm using this code 5 times in the program but each time i have to specify the tablename , so i had to use 5 functions only the tablenames are different. and instead of doing like that i wanted to use only one function and take the tablename as a string so i could use it..

try
{
SqlDataReader reader = cmd.ExecuteReader(); // error points here
while(reader.Read())
...

when i do like this , it gives error like where the heck is the reader but

SqlDataReader reader = cmd.ExecuteReader(); // error points here
try
{
while(reader.Read())
...

no errors but when i wanted to use the function it gives sql error and points
SqlDataReader reader = cmd.ExecuteReader();

thanks for your help but i guess i have to use 5 function grrr

Smile | :)


GeneralRe: problem using a function for several tablenames Pin
Rob Graham30-Oct-05 17:19
Rob Graham30-Oct-05 17:19 
GeneralRe: problem using a function for several tablenames Pin
da vinci coder30-Oct-05 17:27
da vinci coder30-Oct-05 17:27 
QuestionPDF application Pin
amitmohanty30-Oct-05 12:34
amitmohanty30-Oct-05 12:34 
AnswerRe: PDF application Pin
MalikRizwan30-Oct-05 18:23
MalikRizwan30-Oct-05 18:23 
QuestionRe: PDF application Pin
amitmohanty30-Oct-05 23:56
amitmohanty30-Oct-05 23:56 
AnswerRe: PDF application Pin
MalikRizwan31-Oct-05 18:32
MalikRizwan31-Oct-05 18:32 
QuestionExposing global data Pin
1nsp1r3d30-Oct-05 11:23
1nsp1r3d30-Oct-05 11:23 
AnswerRe: Exposing global data Pin
Christian Graus30-Oct-05 11:43
protectorChristian Graus30-Oct-05 11:43 
GeneralRe: Exposing global data Pin
1nsp1r3d30-Oct-05 12:11
1nsp1r3d30-Oct-05 12:11 
AnswerRe: Exposing global data Pin
Joe Woodbury30-Oct-05 13:13
professionalJoe Woodbury30-Oct-05 13:13 
AnswerRe: Exposing global data Pin
Guffa30-Oct-05 18:57
Guffa30-Oct-05 18:57 
QuestionDrawing on a form Pin
naglbitur30-Oct-05 5:42
naglbitur30-Oct-05 5:42 
AnswerRe: Drawing on a form Pin
Robert Rohde30-Oct-05 5:55
Robert Rohde30-Oct-05 5:55 
GeneralRe: Drawing on a form Pin
naglbitur30-Oct-05 6:37
naglbitur30-Oct-05 6:37 
GeneralRe: Drawing on a form Pin
Robert Rohde30-Oct-05 7:42
Robert Rohde30-Oct-05 7:42 
QuestionDumb question Pin
Kerby30-Oct-05 5:13
Kerby30-Oct-05 5:13 
AnswerRe: Dumb question Pin
Christian Graus30-Oct-05 11:44
protectorChristian Graus30-Oct-05 11:44 

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.