Click here to Skip to main content
15,911,039 members

Comments by Mokshagna (Top 12 by date)

Mokshagna 9-Jan-13 0:35am View    
It'll be less than 1000 rows
Mokshagna 9-Jan-13 0:34am View    
using (OleDbDataReader dr = command.ExecuteReader())
{
using (bulkcopy = new SqlBulkCopy(ConnectionString))
{
SqlBulkCopy s = new SqlBulkCopy(ConnectionString);

bulkcopy.DestinationTableName = "tablename";
bulkcopy.WriteToServer(dr);
}
dr.Close();
}
}

If I'm using datatable in this....I'm getting error: No rows found in the table eventhough I have data in the excel sheet.

Please help me...
Mokshagna 15-Dec-11 0:35am View    
I declared SessionID variable in my Global.asax page.
I'm using that SessionID in my aspx.cs page like "Session["UserID"].ToString"....
How can I get Session UserName from ID...Plz help on this...
Mokshagna 15-Dec-11 0:29am View    
I tried using the above code....

I got USERNAME which was in my login..it's like "PTC\210102" but how can I get name of that ID.please help on this...

Thank u!!!
Mokshagna 21-Nov-11 9:26am View    
I have checked that already....Is there anything I need to check for that error??