Click here to Skip to main content
15,897,273 members
Home / Discussions / C#
   

C#

 
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 
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 
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

GeneralRe: Access dataset update into Sql sever Pin
I.explore.code17-Oct-07 21:44
I.explore.code17-Oct-07 21:44 
QuestionClick event in DOM document Pin
A.Asif17-Oct-07 19:37
A.Asif17-Oct-07 19:37 
AnswerRe: Click event in DOM document Pin
Guffa17-Oct-07 19:49
Guffa17-Oct-07 19:49 
QuestionHow to move picturebox along with cursor movements Pin
Chintan.Desai17-Oct-07 19:19
Chintan.Desai17-Oct-07 19:19 
AnswerRe: How to move picturebox along with cursor movements Pin
Abhijit Jana17-Oct-07 19:35
professionalAbhijit Jana17-Oct-07 19:35 
GeneralRe: How to move picturebox along with cursor movements Pin
Chintan.Desai25-Oct-07 22:55
Chintan.Desai25-Oct-07 22:55 
QuestionHow can I add properties to a property? Pin
JoeRip17-Oct-07 19:05
JoeRip17-Oct-07 19:05 
AnswerRe: How can I add properties to a property? Pin
JoeRip17-Oct-07 19:21
JoeRip17-Oct-07 19:21 
AnswerRe: How can I add properties to a property? Pin
Guffa17-Oct-07 20:01
Guffa17-Oct-07 20:01 
AnswerRe: How can I add properties to a property? Pin
N a v a n e e t h17-Oct-07 19:41
N a v a n e e t h17-Oct-07 19:41 
GeneralRe: How can I add properties to a property? Pin
JoeRip17-Oct-07 19:45
JoeRip17-Oct-07 19:45 
GeneralRe: How can I add properties to a property? Pin
N a v a n e e t h17-Oct-07 19:54
N a v a n e e t h17-Oct-07 19:54 
Questionclasses Pin
kabutar17-Oct-07 19:02
kabutar17-Oct-07 19:02 
AnswerRe: classes Pin
Chintan.Desai17-Oct-07 19:33
Chintan.Desai17-Oct-07 19:33 
GeneralRe: classes Pin
kabutar17-Oct-07 19:35
kabutar17-Oct-07 19:35 
Questionhow to get the innerHtml from iframe in C# ? Pin
kkun17-Oct-07 16:51
kkun17-Oct-07 16:51 
AnswerRe: how to get the innerHtml from iframe in C# ? Pin
N a v a n e e t h17-Oct-07 18:58
N a v a n e e t h17-Oct-07 18:58 

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.