Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using OpenRowSet Instead of DTS/SSIS or Data Stage

Status
Not open for further replies.

smedvid

MIS
May 28, 1999
1,228
US
I have a slight issue with my attempt to not use DTS/SSIS or 3rd party ETL (Data Stage). Basically, IT will no longer support DTS/SSIS and want to force developers to offshore ETL work using a product called Data Stage... So I am attempting to find alternatives for Import/Export...

For Import; it appears I can use OpenRowSet; with one issue. The DTS previously imported a field (rtecur) from MS Access as a true number (i.e. 9.9899975). When I use OpenRowSet; it appears to round up and truncate the values (i.e. 9.99).

How can I capture the true number using OpenRowSet?

My guess is some type of format statement perhaps?


Code:
INSERT INTO dbo.tblData
(ID,age,rtecur)
SELECT ID,age,rtecur 
FROM OPENROWSET('Microsoft.Jet.OLEDB.4.0',
      '\\TestServer\data\00_Test_Data.mdb';
      'admin';'',tblData);

Steve Medvid
IT Consultant & Web Master

Chester County, PA Residents
Please Show Your Support...
 
What is the precision of this:
Code:
SELECT ID,age,rtecur
FROM OPENROWSET('Microsoft.Jet.OLEDB.4.0',
      '\\TestServer\data\00_Test_Data.mdb';
      'admin';'',tblData) Test


Borislav Borissov
VFP9 SP2, SQL Server 2000,2005 & 2008.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top