Click here to Skip to main content
15,900,110 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionVB code for sending an email through .net application using smtp Pin
lostboy2411-Oct-08 4:09
lostboy2411-Oct-08 4:09 
AnswerRe: VB code for sending an email through .net application using smtp Pin
Tom Deketelaere1-Oct-08 5:13
professionalTom Deketelaere1-Oct-08 5:13 
GeneralRe: VB code for sending an email through .net application using smtp Pin
lostboy2411-Oct-08 7:46
lostboy2411-Oct-08 7:46 
GeneralRe: VB code for sending an email through .net application using smtp Pin
Jon_Boy1-Oct-08 9:10
Jon_Boy1-Oct-08 9:10 
GeneralRe: VB code for sending an email through .net application using smtp Pin
Tom Deketelaere1-Oct-08 9:12
professionalTom Deketelaere1-Oct-08 9:12 
GeneralRe: VB code for sending an email through .net application using smtp Pin
lostboy2411-Oct-08 14:50
lostboy2411-Oct-08 14:50 
QuestionVB.NET: Import Excel Data into SQL (Error: Could not find installable ISAM.) Pin
Indra PR1-Oct-08 2:40
Indra PR1-Oct-08 2:40 
AnswerRe: VB.NET: Import Excel Data into SQL (Error: Could not find installable ISAM.) Pin
Ashfield1-Oct-08 3:40
Ashfield1-Oct-08 3:40 
Looks like you are totally mixed up. This connection works for me

OleDbConnection con = new OleDbConnection(string.Format("Data Source={0};Provider=Microsoft.Jet.OLEDB.4.0;Extended Properties=Excel 8.0;", excelfileName));


and your insert is total rubbish as far as I can see. Try something like this

sqlToRun= string.Format("insert into mytable(mycolumn1,mycolumn2) values ('{0}','{1}'",val1,val2);
cmd = new OleDbCommand(sqlToRun, con);
cmd.ExecuteNonQuery();


Hope this helps.

Bob
Ashfield Consultants Ltd

GeneralRe: VB.NET: Import Excel Data into SQL (Error: Could not find installable ISAM.) Pin
Ashfield1-Oct-08 3:42
Ashfield1-Oct-08 3:42 
GeneralRe: VB.NET: Import Excel Data into SQL (Error: Could not find installable ISAM.) Pin
Paul Conrad1-Oct-08 10:13
professionalPaul Conrad1-Oct-08 10:13 
GeneralRe: VB.NET: Import Excel Data into SQL (Error: Could not find installable ISAM.) Pin
Indra PR2-Oct-08 0:50
Indra PR2-Oct-08 0:50 
GeneralRe: VB.NET: Import Excel Data into SQL (Error: Could not find installable ISAM.) Pin
Ashfield2-Oct-08 8:39
Ashfield2-Oct-08 8:39 
GeneralRe: VB.NET: Import Excel Data into SQL (Error: Could not find installable ISAM.) Pin
Indra PR5-Oct-08 18:44
Indra PR5-Oct-08 18:44 
GeneralRe: VB.NET: Import Excel Data into SQL (Error: Could not find installable ISAM.) Pin
Ashfield6-Oct-08 1:35
Ashfield6-Oct-08 1:35 
AnswerRe: VB.NET: Import Excel Data into SQL (Error: Could not find installable ISAM.) Pin
Paddy Boyd2-Oct-08 2:31
Paddy Boyd2-Oct-08 2:31 
QuestionProblem in retrieving computer information in the active directory Pin
Chaitanya kumar CVSS1-Oct-08 2:37
Chaitanya kumar CVSS1-Oct-08 2:37 
QuestionConection to SQLExpress Server Pin
nitin_ion30-Sep-08 22:49
nitin_ion30-Sep-08 22:49 
AnswerRe: Conection to SQLExpress Server Pin
Guffa30-Sep-08 23:08
Guffa30-Sep-08 23:08 
GeneralRe: Conection to SQLExpress Server Pin
nitin_ion30-Sep-08 23:11
nitin_ion30-Sep-08 23:11 
GeneralRe: Conection to SQLExpress Server Pin
Guffa1-Oct-08 3:01
Guffa1-Oct-08 3:01 
AnswerRe: Conection to SQLExpress Server Pin
jzonthemtn1-Oct-08 1:07
jzonthemtn1-Oct-08 1:07 
AnswerRe: Conection to SQLExpress Server Pin
Anoop Brijmohun1-Oct-08 1:48
Anoop Brijmohun1-Oct-08 1:48 
GeneralRe: Conection to SQLExpress Server Pin
nitin_ion1-Oct-08 1:50
nitin_ion1-Oct-08 1:50 
QuestionChange back color of selected dates in Month calender control in vb.net Pin
~Khatri Mitesh~30-Sep-08 21:43
~Khatri Mitesh~30-Sep-08 21:43 
AnswerRe: Change back color of selected dates in Month calender control in vb.net Pin
HemJoshi1-Oct-08 1:18
HemJoshi1-Oct-08 1: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.