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

Database

 
Questionhow to get name of the day in SQL2000 Pin
isroavi8-May-06 17:24
isroavi8-May-06 17:24 
AnswerRe: how to get name of the day in SQL2000 Pin
isroavi8-May-06 17:33
isroavi8-May-06 17:33 
Questionhow can i index the column ?? Pin
Mohammed Amine8-May-06 13:12
Mohammed Amine8-May-06 13:12 
AnswerRe: how can i index the column ?? Pin
Eric Dahlvang9-May-06 11:25
Eric Dahlvang9-May-06 11:25 
Questiondate & time can you saparate them ?? Pin
Mohammed Amine8-May-06 13:10
Mohammed Amine8-May-06 13:10 
AnswerRe: date & time can you saparate them ?? Pin
Daniel Santillanes9-May-06 13:10
professionalDaniel Santillanes9-May-06 13:10 
GeneralRe: date & time can you saparate them ?? Pin
Mohammed Amine10-May-06 4:01
Mohammed Amine10-May-06 4:01 
QuestionHow to Add Two dataSets Data ************* Urgent Pin
Rupesh Shivarkar8-May-06 7:51
Rupesh Shivarkar8-May-06 7:51 
Hello Coders

In my 2.0 Application 2 DataSets. Here 2 DataSets tables are same. Let us assume the first DataSets Table is one, Second DataSet is also having one Table. both tables are same Tables.

DatasetA.table[0].rows.count=1000
DatasetB.table[0].rows.count=0
DatasetB.Tables[0].Merge(DatasetA.Tables[0]);
DatasetA.table[0].rows.count=1000
DatasetB.table[0].rows.count=1000

But i want this changes should be reflected to database table.

Here where i done the Mistake,

<br />
cnn = new SqlConnection("server=figmdtest01;database=CPOPMFigMD04Dev25ACA;uid=CPOPM;pwd=CPOPM");<br />
                cnn.Open();<br />
<br />
                cnn1 = new SqlConnection("server=(local);database=Master;uid=sa;pwd=''");<br />
                cnn1.Open();<br />
<br />
                cmd = new SqlCommand("select PatientProfileId,First,Middle,Last,SSN,Birthdate,Zip,MedicalRecordNumber from cus_FigMD_PatientSearch", cnn);<br />
<br />
                SqlDataAdapter dataAdapt1 = new SqlDataAdapter(cmd);<br />
              <br />
                DataSet ds11 = new DataSet();<br />
                dataAdapt1.Fill(ds11);<br />
<br />
                cmd2 = new SqlCommand("select PatientProfileId,First,Middle,Last,SSN,Birthdate,Zip,MedicalRecordNumber from demo", cnn1);<br />
<br />
                SqlDataAdapter dataAdapt3 = new SqlDataAdapter(cmd2);<br />
<br />
                DataSet ds33 = new DataSet();<br />
                dataAdapt3.Fill(ds33);<br />
                MessageBox.Show(ds33.Tables[0].Rows.Count.ToString()); <br />
                ds33.Tables[0].Merge(ds11.Tables[0]);<br />
                MessageBox.Show(ds33.Tables[0].Rows.Count.ToString()); <br />
                ds33.AcceptChanges();<br />
                MessageBox.Show(ds33.Tables[0].Rows.Count.ToString()); <br />
                //ds33.<br />
                dataAdapt3.S.Update(ds33.Tables[0]);<br />
                MessageBox.Show(ds33.Tables[0].Rows.Count.ToString()); <br />


anybody anysounds, plz help me will be appriciated greatly



regards
Rupesh
QuestionMSDE is not running Pin
K. narasimharao7-May-06 18:48
K. narasimharao7-May-06 18:48 
QuestionIs it worth learning SQL server 2k now? Pin
CoolAmir7-May-06 13:18
CoolAmir7-May-06 13:18 
AnswerRe: Is it worth learning SQL server 2k now? Pin
Rob Graham7-May-06 14:22
Rob Graham7-May-06 14:22 
QuestionPass value from dropdownlist to SQL select using SelectedIndexChanged? Pin
FionaDM7-May-06 5:37
FionaDM7-May-06 5:37 
AnswerRe: Pass value from dropdownlist to SQL select using SelectedIndexChanged? Pin
Rob Graham7-May-06 6:01
Rob Graham7-May-06 6:01 
GeneralRe: Pass value from dropdownlist to SQL select using SelectedIndexChanged? Pin
FionaDM7-May-06 22:12
FionaDM7-May-06 22:12 
Questionsql Pin
naidu nagam7-May-06 0:43
naidu nagam7-May-06 0:43 
AnswerRe: sql Pin
Rob Graham7-May-06 6:18
Rob Graham7-May-06 6:18 
QuestionFullTextSearch and Arabic Words Pin
TheEagle6-May-06 22:56
TheEagle6-May-06 22:56 
AnswerRe: FullTextSearch and Arabic Words Pin
Rob Graham7-May-06 6:04
Rob Graham7-May-06 6:04 
GeneralRe: FullTextSearch and Arabic Words Pin
TheEagle7-May-06 6:56
TheEagle7-May-06 6:56 
GeneralRe: FullTextSearch and Arabic Words Pin
Rob Graham7-May-06 7:08
Rob Graham7-May-06 7:08 
GeneralRe: FullTextSearch and Arabic Words Pin
TheEagle7-May-06 7:14
TheEagle7-May-06 7:14 
GeneralRe: FullTextSearch and Arabic Words Pin
Rob Graham7-May-06 7:19
Rob Graham7-May-06 7:19 
GeneralRe: FullTextSearch and Arabic Words Pin
TheEagle7-May-06 7:24
TheEagle7-May-06 7:24 
GeneralRe: FullTextSearch and Arabic Words Pin
TheEagle7-May-06 16:55
TheEagle7-May-06 16:55 
GeneralRe: FullTextSearch and Arabic Words Pin
Rob Graham7-May-06 17:24
Rob Graham7-May-06 17:24 

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.