DTShttp://www.geekzilla.co.uk/Innovation Team's dumping grounden-usTue, 10 Jun 2003 04:00:00 GMTTue, 10 Jun 2003 09:41:01 GMTGeekZilla.co.ukeditor@GeekZilla.co.ukwebmaster@GeekZilla.co.uk Exporting large amounts of Data from SQL http://www.geekzilla.co.uk/viewD5B835AF-CCA4-47CF-8C64-0A8787841F85.htm Exporting Large amounts of Data from SQL If you have ever had an issue transfering large amount of data from SQL you can use the command line tool to solve this problem. From the command line ||'''<database_name>'''|| is an optional parameter specifying the name of the database. It can only be omitted if the desired database is the default database. || ||'''<owner>'''|| the name of the table owner. || ||'''<table_name>'''|| the name of the table. || ||'''<csv-file>'''|| The name of the comma separated file to generate. || ||'''<username>'''|| The SQL Server username to use. This can be left blank if NT authentication is used. || ||'''<password>'''|| The password to use for the account. || ||'''<server_name>'''|| The name of the server on which the database resides. This can be omitted if the database is on the local machine (i.e. the same machine. as the bcp command is issued from). || For example This is less bulking and a lot faster than using the built in function within Enterprise Manager. 31/8/2006 http://www.geekzilla.co.uk/viewD5B835AF-CCA4-47CF-8C64-0A8787841F85.htm DTS, Excel and mixed format columns http://www.geekzilla.co.uk/viewB8886C25-B4CC-4E27-9498-C13D0F458C70.htm DTS, Excel and mixed format columns I recently had a problem DTS importing an Excel spreadsheet which contained columns with mixed text and data values. After a bit of hunting around, I found an extended property IMEX=1. The IMEX=1 property forces everything to text when reading from a source. Easy to change in your connection string, but how do you edit it in DTS? Answer: Dynamic Properties. '''In DTS:''' * Add a Dynamic Properties step (before the copy data step) * Add a new "change" for "Your Connection > OLE DB Properties > Extended Properties" * Give it a constant value of '''Excel 8.0;HDR=YES;IMEX=1''' 14/6/2006 http://www.geekzilla.co.uk/viewB8886C25-B4CC-4E27-9498-C13D0F458C70.htm