Your pretty much stuck with DTS or BCP (Bulk Copy Program) for loading data. If your data file format is consistent, BCP is quick and easy to use, although you don't have the capabilities that DTS has (e.g. constructs to clean or change data during the load process).
From QA, you can always save your results to a text file or even a delimited file like a csv.
You use bcp from the command line of your machine. If you embed it in dynamic sql then the database server will need to know where to find the file you're trying to import.
Part of the command will be -U"Username" -P"Password" -S"Server"
You will need to have the BCP utility installed on your machine. You can just install the sql client tools to get this if you do not wish to install all of sql server.
I prefer bulk insert though. It's not as fast as BCP but it is easier to script in a pinch.
Use DTS for designing reusable packages. This is really an interface built for managing common import tasks and not so much for the adhoc importing of data (unless you use the wizard which is rather simple)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.