Click here to Skip to main content
15,885,278 members
Home / Discussions / Database
   

Database

 
GeneralpCommand.CreateInstance(__uuidof (Command)) fails in 98 Pin
kumarbp6-Apr-05 0:49
kumarbp6-Apr-05 0:49 
GeneralCompare record in Visual Studio 2003.NET Pin
sukasukabo6-Apr-05 0:32
sukasukabo6-Apr-05 0:32 
GeneralInsert Rows into a datatable in ado.net Pin
Madhu.A5-Apr-05 23:30
Madhu.A5-Apr-05 23:30 
GeneralRe: Insert Rows into a datatable in ado.net Pin
Ritesh12346-Apr-05 20:46
Ritesh12346-Apr-05 20:46 
Generalindexing service - problem with read html meta tag Pin
a_r_215-Apr-05 6:19
a_r_215-Apr-05 6:19 
GeneralReporting Services - Custom Rendering Extension Pin
blue-ice4-Apr-05 22:56
blue-ice4-Apr-05 22:56 
GeneralRe: Reporting Services - Custom Rendering Extension Pin
JeyKey5-Apr-05 18:51
JeyKey5-Apr-05 18:51 
QuestionShould i use SqlConnection or SqlDataAdapter Only ? Pin
kakarato4-Apr-05 21:57
kakarato4-Apr-05 21:57 
Should i use SqlConnection to connect to server before i use SqlDataAdapter to to fill the dataset ?

Example :
=============
<br />
string ConStr = "server=(local);uid=sa;pwd=password;database=NorthWind";<br />
string cmdString = "select top 3 last name, firstname, title from employees";<br />
SqlConnection conn = new SqlConnection(ConStr);<br />
SqlCommand com = new SqlCommand(cmdString,con);<br />
SqlDataAdapter da = new SqlDataAdapter(com);<br />
DataSet ds = new DataSet();<br />
<br />
conn.open(); // Even without conn.open i stll able to fill the da.<br />
<br />
da.Fill(ds);<br />



I try code above and i found that even without manuall open the connection i still able to fill up the dataadapter (da).

So what is the best method to fill the dataadapter with out connection first out without using connection?
AnswerRe: Should i use SqlConnection or SqlDataAdapter Only ? Pin
Colin Angus Mackay4-Apr-05 23:49
Colin Angus Mackay4-Apr-05 23:49 
GeneralRe: Should i use SqlConnection or SqlDataAdapter Only ? Pin
kakarato5-Apr-05 15:33
kakarato5-Apr-05 15:33 
Questioncan we set foreign key from another database Pin
BSRK4-Apr-05 19:08
BSRK4-Apr-05 19:08 
AnswerRe: can we set foreign key from another database Pin
Nazmul Hassan5-Apr-05 5:02
Nazmul Hassan5-Apr-05 5:02 
GeneralDataAdapter.Fill Pin
Drew Stainton4-Apr-05 18:19
Drew Stainton4-Apr-05 18:19 
GeneralRe: DataAdapter.Fill Pin
Albert Pascual5-Apr-05 5:53
sitebuilderAlbert Pascual5-Apr-05 5:53 
QuestionCan multiple ds's be in a array? Pin
DEWright_CA4-Apr-05 11:52
DEWright_CA4-Apr-05 11:52 
QuestionCan we set foreign key from another database Pin
Anonymous4-Apr-05 2:38
Anonymous4-Apr-05 2:38 
GeneralUrgent Pin
kalikoi4-Apr-05 0:46
kalikoi4-Apr-05 0:46 
GeneralRe: Urgent Pin
WoutL4-Apr-05 0:54
WoutL4-Apr-05 0:54 
Generalconnecting database over internet Pin
Member 4472173-Apr-05 21:02
Member 4472173-Apr-05 21:02 
GeneralRe: connecting database over internet Pin
Colin Angus Mackay3-Apr-05 23:30
Colin Angus Mackay3-Apr-05 23:30 
GeneralMultiple columns Pin
Jaydeanster1-Apr-05 8:00
Jaydeanster1-Apr-05 8:00 
GeneralRe: Multiple columns Pin
Colin Angus Mackay1-Apr-05 8:17
Colin Angus Mackay1-Apr-05 8:17 
GeneralRe: Multiple columns Pin
Jaydeanster1-Apr-05 8:39
Jaydeanster1-Apr-05 8:39 
GeneralRe: Multiple columns Pin
Colin Angus Mackay1-Apr-05 10:06
Colin Angus Mackay1-Apr-05 10:06 
GeneralWriting data to a dataset Pin
Delo1-Apr-05 7:27
Delo1-Apr-05 7:27 

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.