dbTalk Databases Forums  

DTS, Stored Procedure and ODBC data source

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


Discuss DTS, Stored Procedure and ODBC data source in the microsoft.public.sqlserver.dts forum.



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

Default DTS, Stored Procedure and ODBC data source - 01-05-2004 , 11:46 AM






We have some data source configured with ODBC connection.

Is there anyway I can use like cursor in DTS package to access this ODBC data source?

Or any way in stored procedure to access this ODBC data source and copy them over to local SQL server.


Thanks,



HG



Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: DTS, Stored Procedure and ODBC data source - 01-05-2004 , 12:21 PM






If all you want to do is take all the tables and all the data then the
easiest way is to use

On the database into which you want to import

Right Click | All Tasks |Import Data

Specify the source as your ODBC source and the destination will be filled in
already for you.

It then gives you the ability to specify multiple tables there.

--
--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.allisonmitchell.com - Expert SQL Server Consultancy.
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


"HG" <anonymous (AT) discussions (DOT) microsoft.com> wrote

Quote:
We have some data source configured with ODBC connection.

Is there anyway I can use like cursor in DTS package to access this ODBC
data source?

Or any way in stored procedure to access this ODBC data source and copy
them over to local SQL server.


Thanks,



HG





Reply With Quote
  #3  
Old   
DTS ODBC trasaction
 
Posts: n/a

Default Re: DTS, Stored Procedure and ODBC data source - 01-05-2004 , 12:51 PM



If I ues DTS import/export , any way to setup the trasaction control for the ODBC source.
Like in SQL Begin Transaction ... Commit. Seems I try in DTS ODBC connection, would't work.

Thanks,

HG



Reply With Quote
  #4  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: DTS, Stored Procedure and ODBC data source - 01-06-2004 , 02:12 AM



No not in the Wizard (Import/Export). Save the package to a SQL Server
instead of running it. You can then implement transactions using the
following method

1. Enable transactions at the package level (Package Properties)
2. On Success between each task
3. In the workflow properties for each task (check "Join transaction if
present","Rollback Transaction on Failure")
4. Make sure MSDTC is started

NOTE: Not everything supports joining a transaction

--

----------------------------
Allan Mitchell (Microsoft SQL Server MVP)
MCSE,MCDBA
www.SQLDTS.com
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org



"DTS ODBC trasaction" <anonymous (AT) discussions (DOT) microsoft.com> wrote

Quote:
If I ues DTS import/export , any way to setup the trasaction control for
the ODBC source.
Like in SQL Begin Transaction ... Commit. Seems I try in DTS ODBC
connection, would't work.

Thanks,

HG





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.