I keep trying with bcp command , but keep on failing with the same erros
C:\Program Files\Microsoft SQL Server\90\Tools\Binn>bcp TestDBA.dbo.LOggingA queryout G:\December.txt "select * from LoggingA with (nolock) where date_time between '2010-12-31 23:59:59.99
9' and '2011-01-31 23:59:59.999'" -S Testserver 4 -T -c -b 100000
Unknown argument 'select * from LoggingA with (nolock) where date_time between '2010-12-31 23:59:59.999' and '2011-01-31 23:59:59.999'' on command line.
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.