how to get the table names via c sharp and column names
also?
Answers were Sorted based on User's Feedback
Answer / ganesh
i dont know the answer pls send it to me..........
Is This Answer Correct ? | 0 Yes | 2 No |
Answer / krishna
create a data reader object and call the method GetName(n)
where n is the index no of the column name.In this way u can
get the name of the column and place it in a label.
Eg: Label1.Text=datareader_obj.GetName(0);
the above code will give you the name of the first colunmn.
Is This Answer Correct ? | 1 Yes | 4 No |
Code for Reading and writing from a file?
Code for IP Address Comparison and Conversion in C#?
program for string reverse(eg:- i am boy -> boy am i)
8 Answers Black Pepper, Infosys, Mind Tree,
Write a program which has a function and that function should take 2 or 3 or any number of strings and it should return the largest common prefix of all those strings. If there is no common prefix it should return an empty string. for eg:- INPUT OUTPUT glo {glory,glorious,glod} gl {glad,glow} {calendar,phone} empty string
How to Create Files by Using the FileInfo Class?
how to change password in .net with c # with ado.net and also SQL server 2008 change password
program to reverse the order of digits in a given number of any length.
how to get the table names via c sharp and column names also?
"c sharp" code for factorial using static variables
write a Program to copy the string using switch case.
Write a program. there are 1..n numbers placed in an array in random fashion with one integer missing. find the missing number.
c# code to Count number of 1's in a given range of integer (0 to n)