Click here to Skip to main content
15,918,596 members
Home / Discussions / Database
   

Database

 
GeneralRe: manual incrementation of a field Pin
Ritesh12348-Apr-05 3:58
Ritesh12348-Apr-05 3:58 
GeneralRe: manual incrementation of a field Pin
Ritesh12348-Apr-05 20:48
Ritesh12348-Apr-05 20:48 
GeneralPassing ref cursor between 2 databases Pin
laavsjj7-Apr-05 20:29
laavsjj7-Apr-05 20:29 
Generalreporting services sql server 2000 Pin
tvprithiv6-Apr-05 23:19
tvprithiv6-Apr-05 23:19 
GeneralRe: reporting services sql server 2000 Pin
NewSilence23-Apr-05 13:35
NewSilence23-Apr-05 13:35 
Generalfrom vb6 to vbnet Pin
cyrusmila6-Apr-05 22:49
cyrusmila6-Apr-05 22:49 
GeneralDataSet properties - Global - Local Pin
WindSailor6-Apr-05 11:59
WindSailor6-Apr-05 11:59 
GeneralRe: DataSet properties - Global - Local Pin
WindSailor8-Apr-05 6:35
WindSailor8-Apr-05 6:35 
GeneralMaster Detail Relationship in Strongly Typed Dataset Pin
C_Simpkins6-Apr-05 5:15
C_Simpkins6-Apr-05 5:15 
GeneralSQl -simple SP Pin
Anonymous6-Apr-05 4:48
Anonymous6-Apr-05 4:48 
GeneralRe: SQl -simple SP Pin
Scott Serl6-Apr-05 9:11
Scott Serl6-Apr-05 9:11 
GeneralHelp combing rows to columns Pin
BrockVnm6-Apr-05 3:59
BrockVnm6-Apr-05 3:59 
GeneralRe: Help combing rows to columns Pin
A.Wegierski7-Apr-05 1:57
A.Wegierski7-Apr-05 1:57 
GeneralNeed Connectivity Help ! Pin
Jethro636-Apr-05 3:22
Jethro636-Apr-05 3:22 
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 

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.