Click here to Skip to main content
15,900,258 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Difference between Response.redirectpermanent and server.transfer Pin
Abhishek Sur8-Sep-09 12:34
professionalAbhishek Sur8-Sep-09 12:34 
AnswerRe: Difference between Response.redirectpermanent and server.transfer Pin
HimaBindu Vejella27-Jan-10 20:21
HimaBindu Vejella27-Jan-10 20:21 
QuestionHow to allow "&" character in URL Pin
meghamaharshi7-Sep-09 2:17
meghamaharshi7-Sep-09 2:17 
AnswerRe: How to allow "&" character in URL Pin
SeMartens7-Sep-09 2:40
SeMartens7-Sep-09 2:40 
AnswerRe: How to allow "&" character in URL Pin
Abhishek Sur7-Sep-09 5:33
professionalAbhishek Sur7-Sep-09 5:33 
QuestionTransfer excel data to oracle Pin
amittinku7-Sep-09 2:01
amittinku7-Sep-09 2:01 
AnswerRe: Transfer excel data to oracle Pin
Robert_Pan7-Sep-09 2:04
Robert_Pan7-Sep-09 2:04 
GeneralRe: Transfer excel data to oracle Pin
amittinku7-Sep-09 2:27
amittinku7-Sep-09 2:27 
I have opned an oledb connection to connect to oracle.
I am working in offline mode.
I fill up the dataset with excel data. Works fine.

Now I open oracle connection with oledb only.
Created oracle adpater also using oledbadapter.
Created the dataset. it contains no rows as table in oracle is empty.

Check the code below:
string connString = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=D:\\ASP1\\Book1.xlsx;Extended Properties=Excel 12.0";
OleDbConnection oledbConn = new OleDbConnection(connString);
OleDbCommand cmd = new OleDbCommand("SELECT * FROM [Sheet1$]", oledbConn);
OleDbDataAdapter oleda = new OleDbDataAdapter();
oleda.SelectCommand = cmd;
DataSet ds = new DataSet();
oleda.Fill(ds, "Sheet1");

OleDbConnection oledbConn1 = new OleDbConnection("Provider=MSDAORA;Data Source=mywork; User Id = system; Password =Infosys123");
OleDbCommand cmd1 = new OleDbCommand("SELECT * FROM excel_ora", oledbConn1);
OleDbDataAdapter oledb = new OleDbDataAdapter(cmd1);
DataSet ds1 = new DataSet();
oledb.Fill(ds1, "excel_ora");
ds1 = ds.Copy();
OleDbCommandBuilder oo = new OleDbCommandBuilder(oledb);

oledb.Update(ds1,"excel_ora");
//the above line thorws error as it does not find table "excel_ora"
Response.Write("hi");
GeneralRe: Transfer excel data to oracle Pin
amittinku7-Sep-09 2:36
amittinku7-Sep-09 2:36 
AnswerRe: Transfer excel data to oracle Pin
r a m e s h7-Sep-09 2:44
r a m e s h7-Sep-09 2:44 
GeneralRe: Transfer excel data to oracle Pin
amittinku7-Sep-09 2:54
amittinku7-Sep-09 2:54 
QuestionHow to publish asp.net website in localhost Pin
vasanth arivali7-Sep-09 1:28
vasanth arivali7-Sep-09 1:28 
AnswerRe: How to publish asp.net website in localhost Pin
Manas Bhardwaj7-Sep-09 1:33
professionalManas Bhardwaj7-Sep-09 1:33 
AnswerRe: How to publish asp.net website in localhost Pin
Arun Jacob7-Sep-09 1:36
Arun Jacob7-Sep-09 1:36 
AnswerRe: How to publish asp.net website in localhost Pin
javeedxp11-Dec-11 2:34
javeedxp11-Dec-11 2:34 
QuestionYahoo! cool clickey Pin
Matt Cavanagh7-Sep-09 1:19
Matt Cavanagh7-Sep-09 1:19 
QuestionBasic XML question Pin
Piya B7-Sep-09 1:01
Piya B7-Sep-09 1:01 
AnswerRe: Basic XML question Pin
Manas Bhardwaj7-Sep-09 1:12
professionalManas Bhardwaj7-Sep-09 1:12 
AnswerRe: Basic XML question Pin
Abhishek Sur7-Sep-09 1:30
professionalAbhishek Sur7-Sep-09 1:30 
AnswerRe: Basic XML question Pin
N a v a n e e t h7-Sep-09 1:42
N a v a n e e t h7-Sep-09 1:42 
GeneralRe: Basic XML question Pin
Piya B7-Sep-09 1:54
Piya B7-Sep-09 1:54 
GeneralRe: Basic XML question Pin
N a v a n e e t h7-Sep-09 6:09
N a v a n e e t h7-Sep-09 6:09 
QuestionUpdate listview items error Pin
Nourayn27-Sep-09 0:54
Nourayn27-Sep-09 0:54 
QuestionAjax Tabcontainer flickering issue? Pin
Pawan Kiran7-Sep-09 0:52
Pawan Kiran7-Sep-09 0:52 
AnswerRe: Ajax Tabcontainer flickering issue? Pin
Robert_Pan7-Sep-09 2:18
Robert_Pan7-Sep-09 2:18 

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.