Click here to Skip to main content
15,907,281 members
Home / Discussions / C#
   

C#

 
AnswerRe: Use property or field Pin
half-life17-Oct-07 20:57
half-life17-Oct-07 20:57 
AnswerRe: Use property or field Pin
Guffa17-Oct-07 22:05
Guffa17-Oct-07 22:05 
QuestionODBC Pin
half-life17-Oct-07 20:17
half-life17-Oct-07 20:17 
AnswerRe: ODBC Pin
Abhijit Jana17-Oct-07 20:33
professionalAbhijit Jana17-Oct-07 20:33 
GeneralRe: ODBC Pin
half-life17-Oct-07 20:47
half-life17-Oct-07 20:47 
GeneralRe: ODBC Pin
Abhijit Jana17-Oct-07 21:01
professionalAbhijit Jana17-Oct-07 21:01 
GeneralRe: ODBC Pin
half-life17-Oct-07 21:11
half-life17-Oct-07 21:11 
GeneralRe: ODBC Pin
Abhijit Jana17-Oct-07 22:28
professionalAbhijit Jana17-Oct-07 22:28 
GeneralRe: ODBC Pin
Abhijit Jana17-Oct-07 22:58
professionalAbhijit Jana17-Oct-07 22:58 
AnswerRe: ODBC Pin
V.17-Oct-07 21:02
professionalV.17-Oct-07 21:02 
GeneralRe: ODBC Pin
half-life17-Oct-07 21:08
half-life17-Oct-07 21:08 
GeneralRe: ODBC Pin
V.17-Oct-07 22:19
professionalV.17-Oct-07 22:19 
GeneralRe: ODBC Pin
half-life17-Oct-07 22:25
half-life17-Oct-07 22:25 
GeneralRe: ODBC Pin
V.17-Oct-07 22:30
professionalV.17-Oct-07 22:30 
GeneralRe: ODBC Pin
half-life17-Oct-07 22:30
half-life17-Oct-07 22:30 
GeneralRe: ODBC Pin
V.17-Oct-07 22:37
professionalV.17-Oct-07 22:37 
GeneralRe: ODBC Pin
half-life17-Oct-07 22:48
half-life17-Oct-07 22:48 
GeneralRe: ODBC Pin
Abhijit Jana17-Oct-07 22:57
professionalAbhijit Jana17-Oct-07 22:57 
GeneralRe: ODBC Pin
V.17-Oct-07 23:04
professionalV.17-Oct-07 23:04 
QuestionRegarding sending attachment Pin
Hum Dum17-Oct-07 20:09
Hum Dum17-Oct-07 20:09 
QuestionAccess dataset update into Sql sever Pin
pekhaleyogesh17-Oct-07 19:44
pekhaleyogesh17-Oct-07 19:44 
AnswerRe: Access dataset update into Sql sever Pin
N a v a n e e t h17-Oct-07 19:55
N a v a n e e t h17-Oct-07 19:55 
GeneralRe: Access dataset update into Sql sever Pin
pekhaleyogesh17-Oct-07 20:14
pekhaleyogesh17-Oct-07 20:14 
i writr following code
Hi there,


I have two databases, MS Access and SQL Server 2000


Using a procedure in Visual Studio i would like to copy all the records from one table in MS Access into an existing table in SQL Server (the tables have the same name and the same layout)



I tried to prepare one Dataset to copy from Access into SQL Server but when i run the command 'DaSQL.Update(DsSQL, "Tabella") nothing happens (not even an exeption has been raised), looking during debug, the DataSet seems filled though...



Please could anyone explain what's wrong and / or is there a more quicker way to copy data from a table to another?



Note i woul have as a final goal to get data from an AS400 database by ODBC, manage it, and put it on SQL Server for a 'data mining' scope (eliminating the use of MS Access, not suited for FE-BE).



the procedure goes like this;



' Create a connection to the MS Access Database

Dim connectionToAccess As New OleDbConnection(DBConnectionAccString)

strsql = "SELECT * FROM [TABELLA]"

connectionToAccess.Open()

Dim DaAccess As New OleDbDataAdapter(strsql, connectionToAccess)



Dim DsAccess As New DataSet("ACCESS")

DaAccess.FillSchema(DsAccess, SchemaType.Source, "Tabella")

DaAccess.Fill(DsAccess, "Tabella")



' Create a connection to the SQL Database

Dim connectionToSQL As New SqlConnection(DBConnectionSQLString)

connectionToSQL.Open()

Dim DaSQL As New SqlDataAdapter(strsql, connectionToSQL)



Dim DsSQL As New DataSet("SQL")

DaSQL.FillSchema(DsSQL, SchemaType.Source, "Tabella")

DaSQL.Fill(DsAccess, "Tabella")



DaSQL.Update(DsSQL, "Tabella")



Note I tried also the following, withou a result;



DsSQL = DsAccess.Copy

DaSQL.Update(DsSQL, "Tabella")



Please is there someone who could respond !!???



Yogesh Pekhale
pekhaleyogesh@gmail.com

AnswerRe: Access dataset update into Sql sever Pin
Tobias Schoenig17-Oct-07 19:57
Tobias Schoenig17-Oct-07 19:57 
GeneralRe: Access dataset update into Sql sever Pin
pekhaleyogesh17-Oct-07 20:14
pekhaleyogesh17-Oct-07 20:14 

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.