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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DTS Package to Change Object Owner for Excel Import

Status
Not open for further replies.

Cheryl3D

Programmer
Mar 26, 2002
116
US
Hi:

I have a development project where I'm using an Microsoft Access (ADP) Project file front-end and SQL Server 2000 backend. Users are logged on via the Windows NT authentication. I import a file into SQL Server via a function within a module using as part of the code:

DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel97...

I need for the imported spreadsheet that becomes a table in SQL Server to automatically set the object owner as 'dbo' instead of the current username (who is performing the import).

Can I use a DTS package to get this done? If so, please explain how.

Thanks,
Cheryl3D
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top