Click here to Skip to main content
15,900,378 members
Home / Discussions / C#
   

C#

 
AnswerRe: Use of Application.DoEvents() or multithreading Pin
Gwannoes8-Feb-12 20:30
Gwannoes8-Feb-12 20:30 
Questioniserting,deleting,updating mysql database FROM form in C# Pin
Xonel6-Feb-12 20:18
Xonel6-Feb-12 20:18 
AnswerRe: iserting,deleting,updating mysql database FROM form in C# Pin
V.6-Feb-12 21:37
professionalV.6-Feb-12 21:37 
AnswerRe: iserting,deleting,updating mysql database FROM form in C# Pin
Mycroft Holmes7-Feb-12 0:00
professionalMycroft Holmes7-Feb-12 0:00 
Questionhow to calculate other forms textbox values from one form in c#? Pin
v surya dev6-Feb-12 19:46
v surya dev6-Feb-12 19:46 
AnswerRe: how to calculate other forms textbox values from one form in c#? Pin
Abhinav S6-Feb-12 20:09
Abhinav S6-Feb-12 20:09 
AnswerRe: how to calculate other forms textbox values from one form in c#? Pin
AmbiguousName6-Feb-12 20:17
AmbiguousName6-Feb-12 20:17 
GeneralRe: how to calculate other forms textbox values from one form in c#? Pin
v surya dev7-Feb-12 5:31
v surya dev7-Feb-12 5:31 
AnswerRe: how to calculate other forms textbox values from one form in c#? Pin
BillWoodruff7-Feb-12 15:17
professionalBillWoodruff7-Feb-12 15:17 
QuestionBasic ComboBox Problem :( Pin
AmbiguousName6-Feb-12 18:58
AmbiguousName6-Feb-12 18:58 
AnswerRe: Basic ComboBox Problem :( Pin
Abhinav S6-Feb-12 19:07
Abhinav S6-Feb-12 19:07 
GeneralRe: Basic ComboBox Problem :( Pin
AmbiguousName6-Feb-12 19:21
AmbiguousName6-Feb-12 19:21 
GeneralRe: Basic ComboBox Problem :( Pin
Mycroft Holmes6-Feb-12 19:49
professionalMycroft Holmes6-Feb-12 19:49 
GeneralRe: Basic ComboBox Problem :( Pin
Abhinav S6-Feb-12 20:07
Abhinav S6-Feb-12 20:07 
GeneralRe: Basic ComboBox Problem :( Pin
AmbiguousName6-Feb-12 20:09
AmbiguousName6-Feb-12 20:09 
NewsRe: Basic ComboBox Problem :( Pin
V.6-Feb-12 21:38
professionalV.6-Feb-12 21:38 
GeneralRe: Basic ComboBox Problem :( Pin
BobJanova6-Feb-12 22:21
BobJanova6-Feb-12 22:21 
GeneralRe: Basic ComboBox Problem :( Pin
Mycroft Holmes6-Feb-12 23:56
professionalMycroft Holmes6-Feb-12 23:56 
GeneralRe: Basic ComboBox Problem :( Pin
BobJanova8-Feb-12 4:05
BobJanova8-Feb-12 4:05 
AnswerRe: Basic ComboBox Problem :( Pin
Luc Pattyn7-Feb-12 0:20
sitebuilderLuc Pattyn7-Feb-12 0:20 
GeneralRe: Basic ComboBox Problem :( Pin
ProEnggSoft7-Feb-12 6:25
ProEnggSoft7-Feb-12 6:25 
Questionhow to get names and count of tables Pin
phowarso6-Feb-12 17:25
phowarso6-Feb-12 17:25 
AnswerRe: how to get names and count of tables Pin
PIEBALDconsult6-Feb-12 18:08
mvePIEBALDconsult6-Feb-12 18:08 
While some database systems provide that functionality in various ways, with any database system that provides an ADO.net provider, the Connection derives (or should derive*) from System.Data.Common.DbConnection, which has a GetSchema method which returns a DataTable with that information. So I have been using the following:

System.Data.Common.DbConnection con =
  this.command.Connection as System.Data.Common.DbConnection ;

if ( con != null )
{
  System.Data.DataTable temp = con.GetSchema
  (
    "TABLES"
  ) ;

  temp.DefaultView.RowFilter = "TABLE_TYPE='TABLE' OR TABLE_TYPE='BASE TABLE'" ;
  temp.DefaultView.Sort = "TABLE_NAME" ;


This is good enough for SQL Server, Access, and Excel. But this is old code; a week or so ago I started using Oracle and MySql (and FireBird, just because) again and found that the tables provided by them are more different than I expected so I had to adapt.


* I'm looking at you Cache. Mad | :mad:
GeneralRe: how to get names and count of tables Pin
Mycroft Holmes6-Feb-12 19:43
professionalMycroft Holmes6-Feb-12 19:43 
GeneralRe: how to get names and count of tables Pin
PIEBALDconsult7-Feb-12 2:32
mvePIEBALDconsult7-Feb-12 2: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.