Click here to Skip to main content
15,921,793 members
Home / Discussions / Database
   

Database

 
GeneralRe: Moving through each record Pin
Colin Angus Mackay8-Feb-07 4:21
Colin Angus Mackay8-Feb-07 4:21 
GeneralRe: Moving through each record Pin
RugbyLeague8-Feb-07 4:26
RugbyLeague8-Feb-07 4:26 
GeneralRe: Moving through each record Pin
Colin Angus Mackay8-Feb-07 5:30
Colin Angus Mackay8-Feb-07 5:30 
GeneralRe: Moving through each record Pin
RugbyLeague8-Feb-07 5:33
RugbyLeague8-Feb-07 5:33 
AnswerRe: Moving through each record Pin
gauthee8-Feb-07 0:49
gauthee8-Feb-07 0:49 
AnswerWell it hasn't been said Pin
Ennis Ray Lynch, Jr.9-Feb-07 3:33
Ennis Ray Lynch, Jr.9-Feb-07 3:33 
QuestionConfigure Report Server Pin
Shahzad.Aslam7-Feb-07 23:15
Shahzad.Aslam7-Feb-07 23:15 
Question[Ask] Using GetSchemaTable() in C# Pin
Jati Indrayanto7-Feb-07 19:51
Jati Indrayanto7-Feb-07 19:51 
Hello C# coder,

Lets straight to the point;
I'm trying to get the schema of a table in Database (SQL Server, Access) using GetSchemaTable() method.

With same table structure (both in SQL, Access), I got different result of schema. For example, Field that has attribute Required=True in my table, the schema of SQL DB showed AllowDBNULL = FALSE but in Access showed AllowDBNULL = TRUE.

These are the snippets of my code

<br />
//Results table schema of SQL DB <br />
OleDbConnection conn1 = new OleDbConnection("Provider=SQLNCLI.1;Datasource=DEV06\\SQLEXPRESS;Integrated Security=SSPI;Initial Catalog=JatiDB");<br />
<br />
conn1.Open();<br />
OleDbCommand command = new OleDbCommand("select * from parent",conn1);<br />
OleDbDataReader reader = command.ExecuteReader();<br />
DataTable schema = reader.GetSchemaTable();<br />
conn1.Close();<br />


In my program, I've changed the value of ConnectionString for accessing Ms. Access, and works.
So my question is;

1. Does GetSchemaTable() results different output for each database?
2. If so, is there another alternative to get the schema with same output?


Thanks, any suggestion is greatly appreciated.
TIA.

Jati Indrayanto.






Everything is possible.

AnswerRe: [Ask] Using GetSchemaTable() in C# Pin
andyharman7-Feb-07 23:13
professionalandyharman7-Feb-07 23:13 
QuestionForm Generator Pin
xoxoxoxoxoxox7-Feb-07 6:57
xoxoxoxoxoxox7-Feb-07 6:57 
QuestionSQL 2000 table size Pin
lost in transition 7-Feb-07 6:12
lost in transition 7-Feb-07 6:12 
AnswerRe: SQL 2000 table size Pin
andyharman7-Feb-07 6:51
professionalandyharman7-Feb-07 6:51 
GeneralRe: SQL 2000 table size Pin
lost in transition 7-Feb-07 9:36
lost in transition 7-Feb-07 9:36 
QuestionHelp needed in update query Pin
vidhu raj7-Feb-07 3:02
vidhu raj7-Feb-07 3:02 
GeneralRe: Help needed in update query Pin
Ware@Work7-Feb-07 4:35
Ware@Work7-Feb-07 4:35 
GeneralRe: thanks i got it worked Pin
vidhu raj7-Feb-07 5:06
vidhu raj7-Feb-07 5:06 
GeneralRe: thanks i got it worked Pin
Ware@Work7-Feb-07 9:23
Ware@Work7-Feb-07 9:23 
QuestionAimed @ the SQL Guru's Pin
Illegal Operation7-Feb-07 1:28
Illegal Operation7-Feb-07 1:28 
AnswerRe: Aimed @ the SQL Guru's Pin
andyharman7-Feb-07 6:32
professionalandyharman7-Feb-07 6:32 
Questionchecking null values Pin
minkinin6-Feb-07 22:45
minkinin6-Feb-07 22:45 
AnswerRe: checking null values Pin
Colin Angus Mackay6-Feb-07 23:35
Colin Angus Mackay6-Feb-07 23:35 
GeneralRe: checking null values Pin
minkinin7-Feb-07 0:31
minkinin7-Feb-07 0:31 
GeneralRe: checking null values Pin
Pete O'Hanlon7-Feb-07 4:28
mvePete O'Hanlon7-Feb-07 4:28 
GeneralRe: checking null values Pin
minkinin11-Feb-07 20:23
minkinin11-Feb-07 20:23 
AnswerRe: checking null values Pin
Rakesh.Jha.01107-Feb-07 18:15
Rakesh.Jha.01107-Feb-07 18:15 

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.