Click here to Skip to main content
15,886,799 members
Home / Discussions / Database
   

Database

 
GeneralRe: Database redesign advice, please. Pin
Mark Churchill15-Dec-07 18:27
Mark Churchill15-Dec-07 18:27 
GeneralRe: Database redesign advice, please. Pin
jimbaloo17-Dec-07 2:20
jimbaloo17-Dec-07 2:20 
GeneralRe: Database redesign advice, please. Pin
Mark Churchill17-Dec-07 3:30
Mark Churchill17-Dec-07 3:30 
GeneralLinking databases across servers Pin
Leo Smith13-Dec-07 4:39
Leo Smith13-Dec-07 4:39 
GeneralReporting Services reports: Display problem in Firefox Pin
Ziggy98112-Dec-07 23:16
Ziggy98112-Dec-07 23:16 
GeneralRe: Reporting Services reports: Display problem in Firefox Pin
pmarfleet13-Dec-07 2:37
pmarfleet13-Dec-07 2:37 
GeneralSELECT MAX() with a CRecordeset on an Oracle database Pin
ilgale12-Dec-07 21:19
ilgale12-Dec-07 21:19 
Questionimporting excel sheet into a database table [modified] Pin
sivaram praveen12-Dec-07 19:51
sivaram praveen12-Dec-07 19:51 
hi,

In my application i need to import the excel sheet data into a database table "Emp_Profile_Tbl" which is created in the database.

Dim connstr As String = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + Server.MapPath("Team wise EMP Profile (2).xls") + ";Extended Properties=Excel 8.0;"
Dim objconn As New OleDbConnection(connstr)
Dim ds As New DataSet
Dim objadapter As New OleDbDataAdapter("SELECT * FROM [Sheet1$]", objconn)
objadapter.TableMappings.Add("Table", "Emp_Profile_Tbl")
Try

'in excel: insert->name->seleziono il range:nomi
objconn.Open()
objadapter.Fill(ds)
dg_empprofile.DataSource = ds.Tables(0).DefaultView
dg_empprofile.DataBind()

Finally
objconn.Close()
End Try

i'm getting the values into datgrid but the values are not saving in "Emp_Profile_Tbl" database table.

pls help me to sort this out.

Thank u,

modified on Thursday, December 13, 2007 2:37:51 AM

GeneralRe: importing excel sheet into a database table Pin
pmarfleet12-Dec-07 21:45
pmarfleet12-Dec-07 21:45 
News[ANN] The Compete Guide to ODBC Escape Sequences in Firebird and Interbase. Pin
AndrewMerkulov12-Dec-07 18:30
AndrewMerkulov12-Dec-07 18:30 
GeneralErrorMsg:Syntax error converting the varchar value ' ' to a column of data type int. Pin
Giri K12-Dec-07 14:53
Giri K12-Dec-07 14:53 
GeneralRe: ErrorMsg:Syntax error converting the varchar value ' ' to a column of data type int. Pin
Rocky#12-Dec-07 18:33
Rocky#12-Dec-07 18:33 
GeneralRe: ErrorMsg:Syntax error converting the varchar value ' ' to a column of data type int. Pin
Giri K13-Dec-07 12:09
Giri K13-Dec-07 12:09 
GeneralRe: ErrorMsg:Syntax error converting the varchar value ' ' to a column of data type int. Pin
Giri K13-Dec-07 12:34
Giri K13-Dec-07 12:34 
GeneralADO INSERT Pin
CSharpDavid12-Dec-07 9:44
CSharpDavid12-Dec-07 9:44 
GeneralRe: ADO INSERT Pin
Christian Graus12-Dec-07 10:46
protectorChristian Graus12-Dec-07 10:46 
GeneralRe: ADO INSERT Pin
pmarfleet12-Dec-07 10:47
pmarfleet12-Dec-07 10:47 
GeneralUpdatable view Pin
Goodway12-Dec-07 9:22
Goodway12-Dec-07 9:22 
GeneralRe: Updatable view Pin
pmarfleet12-Dec-07 10:44
pmarfleet12-Dec-07 10:44 
Generalcompare 2 datasets Pin
mfmaneef12-Dec-07 8:44
mfmaneef12-Dec-07 8:44 
GeneralRe: compare 2 datasets Pin
pmarfleet12-Dec-07 10:42
pmarfleet12-Dec-07 10:42 
GeneralNaming Convention for Indexes and Triggers and Constraints Pin
Brendan Vogt12-Dec-07 3:00
Brendan Vogt12-Dec-07 3:00 
GeneralCreating an Index on a Foreign Key Pin
Brendan Vogt12-Dec-07 2:54
Brendan Vogt12-Dec-07 2:54 
GeneralRe: Creating an Index on a Foreign Key Pin
DoomedOne12-Dec-07 3:33
DoomedOne12-Dec-07 3:33 
GeneralRe: Creating an Index on a Foreign Key Pin
andyharman12-Dec-07 23:44
professionalandyharman12-Dec-07 23:44 

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.