dbTalk Databases Forums  

Importing data from mysql

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Importing data from mysql in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Imran Prasla
 
Posts: n/a

Default Importing data from mysql - 10-01-2004 , 09:07 AM






I have a database at mysql over a different host. In DSN connection I am
providing all necessary information to connect to that database. The
connection is verified too. Now when I do Import/Export wizard for data
import I select MySQL as my source and SQL Server as my destination table.
Now I am running this query that is working fine in sql query analyzer and
returning me the results that it should do but as soon as i implement them in
DTS query builder it doesn't like it and gives me this error "runtime error:
data provider or other service returned an E_FAIL status". I tried to some
how validates the sql syntax and then when I ran that query again it doesn't
show me the records. I am so stuck don't know what the heck is sql server
want from me. I want to do is a simple import of data using a query so that I
don't have to import all old data from the table. The query is somewhat like
this
SELECT * from sometable where startdate <= getdate() and
startdate>=dateadd(day,-1,getdate())

Please help me o' sql lord!

Reply With Quote
  #2  
Old   
Imran Prasla
 
Posts: n/a

Default RE: Importing data from mysql - 10-01-2004 , 09:57 AM






never mind. I found the solution. I was doing such a dumb thing.

"Imran Prasla" wrote:

Quote:
I have a database at mysql over a different host. In DSN connection I am
providing all necessary information to connect to that database. The
connection is verified too. Now when I do Import/Export wizard for data
import I select MySQL as my source and SQL Server as my destination table.
Now I am running this query that is working fine in sql query analyzer and
returning me the results that it should do but as soon as i implement them in
DTS query builder it doesn't like it and gives me this error "runtime error:
data provider or other service returned an E_FAIL status". I tried to some
how validates the sql syntax and then when I ran that query again it doesn't
show me the records. I am so stuck don't know what the heck is sql server
want from me. I want to do is a simple import of data using a query so that I
don't have to import all old data from the table. The query is somewhat like
this
SELECT * from sometable where startdate <= getdate() and
startdate>=dateadd(day,-1,getdate())

Please help me o' sql lord!

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.