Solved

Transfert Data from AS/400 to SQL Server via VB .Net

Posted on 2004-08-04
3
180 Views
Last Modified: 2012-05-05
Hi,
   I'm trying to update the data of a table on SQL Server with the data of a table on AS/400 (both with the same structure) using VB .NET. I can fill dataSets with the data of both and merge them, I can also display the result of the merge in a data grid and everything seems fine. But still the update seems to fail because of a conversion problem between fields of Date and Time type. Is there a way to do this without using to much code since I'll probably have to repeat this with 400+ tables? Or is there a completely different way to do this transfer with or without VB .NET ?

Thanks in advance

Olivier
0
Comment
Question by:lussier
  • 2
3 Comments
 
LVL 17

Expert Comment

by:AerosSaga
ID: 11719275
There is built in functionality for such issues:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vblr7/html/vafctdatevalue.asp

If you tell me the formats that you want I could work out a lil snippit for ya.

Regards,

Aeros
0
 

Author Comment

by:lussier
ID: 11720410
Ok on the AS/400 the format we have is 'YYYY-MM-DD' and on SLQ Server it seems to be 'YYYY-MM-DD 00:00:00', the date and time are in the same field. Is there a way to separate date and time in a SQL field?
0
 
LVL 17

Accepted Solution

by:
AerosSaga earned 400 total points
ID: 11720442
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Introduction When many people think of the WebBrowser (http://msdn.microsoft.com/en-us/library/2te2y1x6%28v=VS.85%29.aspx) control, they immediately think of a control which allows the viewing and navigation of web pages. While this is true, it's a…
It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now