Click here to Skip to main content
15,902,189 members
Home / Discussions / C#
   

C#

 
QuestionDataGridViewComboBoxColumn selection disappear Pin
Maddie from Dartford17-May-09 2:00
Maddie from Dartford17-May-09 2:00 
QuestionSplitting a string Pin
KIDYA17-May-09 1:25
KIDYA17-May-09 1:25 
AnswerRe: Splitting a string Pin
S. Senthil Kumar17-May-09 1:28
S. Senthil Kumar17-May-09 1:28 
GeneralRe: Splitting a string Pin
KIDYA17-May-09 1:30
KIDYA17-May-09 1:30 
GeneralRe: Splitting a string Pin
S. Senthil Kumar17-May-09 1:33
S. Senthil Kumar17-May-09 1:33 
GeneralRe: Splitting a string Pin
KIDYA17-May-09 1:51
KIDYA17-May-09 1:51 
AnswerRe: Splitting a string Pin
fly90417-May-09 1:33
fly90417-May-09 1:33 
GeneralRe: Splitting a string Pin
KIDYA17-May-09 1:54
KIDYA17-May-09 1:54 
GeneralRe: Splitting a string Pin
fly90417-May-09 2:02
fly90417-May-09 2:02 
GeneralRe: Splitting a string Pin
KIDYA17-May-09 2:10
KIDYA17-May-09 2:10 
Questionwhat's the diff between lock(Employees.SyncRoot) and lock(Employees)? Pin
devvvy17-May-09 0:42
devvvy17-May-09 0:42 
AnswerRe: what's the diff between lock(Employees.SyncRoot) and lock(Employees)? Pin
S. Senthil Kumar17-May-09 1:04
S. Senthil Kumar17-May-09 1:04 
AnswerRe: what's the diff between lock(Employees.SyncRoot) and lock(Employees)? Pin
A.m.a.L17-May-09 1:06
A.m.a.L17-May-09 1:06 
GeneralRe: what's the diff between lock(Employees.SyncRoot) and lock(Employees)? Pin
devvvy17-May-09 1:22
devvvy17-May-09 1:22 
QuestionCoping data from dataset to table Pin
KIDYA16-May-09 23:57
KIDYA16-May-09 23:57 
Hello Experts......

i have problem in my dataset has a table which i retrieve from a file,now i want to copy values from dataset to table.i used SQLBULKCOPY but cant work.

Help me!!

My Code:-
<pre>

DataTable dt= ds.Tables["MyNewTable"]; // This is a table i have in my dataset
using (SqlBulkCopy bc = new SqlBulkCopy(conn))
{
conn.Open();

bc.DestinationTableName = "dbo.XYZ"; // This is a table wid same schema as MyNewTable.

// Starts the bulk copy.
DataTable dt1=new DataTable("MyNewTable");
bc.WriteToServer(dt); ;

// Closes the SqlBulkCopy instance
bc.Close();
}


AnswerRe: Coping data from dataset to table Pin
Samer Aburabie17-May-09 1:04
Samer Aburabie17-May-09 1:04 
GeneralRe: Coping data from dataset to table Pin
KIDYA17-May-09 1:17
KIDYA17-May-09 1:17 
GeneralRe: Coping data from dataset to table Pin
Samer Aburabie17-May-09 1:27
Samer Aburabie17-May-09 1:27 
GeneralRe: Coping data from dataset to table Pin
KIDYA17-May-09 1:36
KIDYA17-May-09 1:36 
QuestionHow do i delete a file Pin
YiXiang_8916-May-09 22:46
YiXiang_8916-May-09 22:46 
AnswerRe: How do i delete a file Pin
Nuri Ismail16-May-09 23:28
Nuri Ismail16-May-09 23:28 
AnswerRe: How do i delete a file Pin
A.m.a.L17-May-09 1:01
A.m.a.L17-May-09 1:01 
Questionsend some keystrokes to another application Pin
benams16-May-09 21:42
benams16-May-09 21:42 
AnswerRe: send some keystrokes to another application Pin
Nuri Ismail16-May-09 22:07
Nuri Ismail16-May-09 22:07 
GeneralRe: send some keystrokes to another application Pin
benams17-May-09 0:11
benams17-May-09 0:11 

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.