Click here to Skip to main content
15,915,093 members
Home / Discussions / Database
   

Database

 
AnswerRe: Error while installing Reporting services Pin
ednrgc12-Dec-06 8:52
ednrgc12-Dec-06 8:52 
Questionclarification Pin
therasa12345vijay11-Dec-06 23:49
therasa12345vijay11-Dec-06 23:49 
AnswerRe: clarification Pin
Pete O'Hanlon11-Dec-06 23:52
mvePete O'Hanlon11-Dec-06 23:52 
AnswerRe: clarification Pin
Colin Angus Mackay11-Dec-06 23:54
Colin Angus Mackay11-Dec-06 23:54 
GeneralRe: clarification Pin
therasa12345vijay11-Dec-06 23:55
therasa12345vijay11-Dec-06 23:55 
AnswerRe: clarification Pin
ednrgc12-Dec-06 8:54
ednrgc12-Dec-06 8:54 
QuestionHelp needed....Please tell me how can i find all table information from access in to ASP.NET Pin
NileshUpadhyay11-Dec-06 22:37
NileshUpadhyay11-Dec-06 22:37 
AnswerRe: Help needed....Please tell me how can i find all table information from access in to ASP.NET Pin
Pete O'Hanlon11-Dec-06 23:21
mvePete O'Hanlon11-Dec-06 23:21 
Nilesh, you can try the following:

Use this to get all of the tables in a particular database.

private DataTable GetSchema()
{
	DataTable schema = null;

	using (OleDbConnection dbConn = new OleDbConnection(_connectionString))
	{
		dbConn.Open();
		schema = dbConn.GetOleDbSchemaTable(OleDbSchemaGuid.Tables,
			new object[]{null, null, null, "TABLE"});
		dbConn.Close();
		// The table name is in the schema field "TABLE_NAME";
	}
	return schema;
	
}


To retrieve the column information for a particular table, call this function with the name of the table:

private DataView GetSchema(string table)
{
	DataTable schema = null;

	using (OleDbConnection dbConn = new OleDbConnection(_connectionString))
	{
		dbConn.Open();
		schema = dbConn.GetOleDbSchemaTable(OleDbSchemaGuid.Columns,
			new object[]{null, null, table});
		dbConn.Close();
	}
	return schema.DefaultView;
}




the last thing I want to see is some pasty-faced geek with skin so pale that it's almost translucent trying to bump parts with a partner - John Simmons / outlaw programmer

Deja View - the feeling that you've seen this post before.

QuestionMySQl -> SELECT ALL BUT TheseField Pin
Tomy140211-Dec-06 21:24
Tomy140211-Dec-06 21:24 
AnswerRe: MySQl -> SELECT ALL BUT TheseField Pin
Colin Angus Mackay11-Dec-06 21:40
Colin Angus Mackay11-Dec-06 21:40 
GeneralRe: MySQl -> SELECT ALL BUT TheseField Pin
Tomy140211-Dec-06 21:44
Tomy140211-Dec-06 21:44 
GeneralRe: MySQl -> SELECT ALL BUT TheseField Pin
Pete O'Hanlon11-Dec-06 23:24
mvePete O'Hanlon11-Dec-06 23:24 
GeneralRe: MySQl -> SELECT ALL BUT TheseField Pin
therasa12345vijay11-Dec-06 23:54
therasa12345vijay11-Dec-06 23:54 
GeneralRe: MySQl -> SELECT ALL BUT TheseField Pin
Tomy140212-Dec-06 14:43
Tomy140212-Dec-06 14:43 
QuestionHow to use stored procedureof SQL Server in vc++ Pin
With_problem11-Dec-06 20:13
With_problem11-Dec-06 20:13 
QuestionSql Server 2000 Connection Problem Pin
kirankanchinadam11-Dec-06 20:00
kirankanchinadam11-Dec-06 20:00 
AnswerRe: Sql Server 2000 Connection Problem Pin
Paul Conrad25-Dec-06 18:25
professionalPaul Conrad25-Dec-06 18:25 
Questionhow to connect to database Pin
Rmesh11-Dec-06 17:41
Rmesh11-Dec-06 17:41 
AnswerRe: how to connect to database Pin
Paul Conrad11-Dec-06 19:31
professionalPaul Conrad11-Dec-06 19:31 
GeneralRe: how to connect to database Pin
karam chandrabose12-Dec-06 0:48
karam chandrabose12-Dec-06 0:48 
QuestionMySQL -> InnoDB error code 1005 Pin
Tomy140211-Dec-06 17:09
Tomy140211-Dec-06 17:09 
AnswerRe: MySQL -> InnoDB error code 1005 Pin
Rob Graham11-Dec-06 17:42
Rob Graham11-Dec-06 17:42 
GeneralRe: MySQL -> InnoDB error code 1005 Pin
Tomy140211-Dec-06 17:49
Tomy140211-Dec-06 17:49 
GeneralRe: MySQL -> InnoDB error code 1005 Pin
Tomy140211-Dec-06 18:05
Tomy140211-Dec-06 18:05 
QuestionDeleting DataRows Pin
Karma3125111-Dec-06 10:48
Karma3125111-Dec-06 10:48 

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.