Click here to Skip to main content
15,888,579 members
Home / Discussions / C#
   

C#

 
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 
GeneralRe: send some keystrokes to another application Pin
A.m.a.L17-May-09 1:02
A.m.a.L17-May-09 1:02 
QuestionPreventing user from changing dates and breaching software license Pin
Sunnt16-May-09 18:51
Sunnt16-May-09 18:51 
AnswerRe: Preventing user from changing dates and breaching software license Pin
mav.northwind16-May-09 19:37
mav.northwind16-May-09 19:37 
GeneralRe: Preventing user from changing dates and breaching software license Pin
OriginalGriff17-May-09 8:56
mveOriginalGriff17-May-09 8:56 
AnswerRe: Preventing user from changing dates and breaching software license Pin
Mycroft Holmes16-May-09 20:47
professionalMycroft Holmes16-May-09 20:47 
GeneralRe: Preventing user from changing dates and breaching software license Pin
PIEBALDconsult17-May-09 3:54
mvePIEBALDconsult17-May-09 3:54 
Questionhow to create even_click for dynamic button ? Pin
xingselex16-May-09 17:25
xingselex16-May-09 17:25 

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.