Viewing 7 posts - 1 through 7 (of 7 total)
Your problem is that you converted the number to a string, which sorts alphabetically, not numerically.
I would use a different name for the alias of the sort column so you...
June 13, 2008 at 8:00 am
isa (6/13/2008)
Declare @myTestVar varchar(100)
set @myTestVar = '10,11,12,13'
select *...
June 13, 2008 at 7:22 am
Try using "Format=Delimited(|)" instead.
See this website: http://www.connectionstrings.com/?carrier=textfile
- Paul
June 13, 2008 at 7:05 am
Try this syntax to read from junk.txt:
select * from OpenRowset('MSDASQL',
'Driver={Microsoft Text Driver (*.txt; *.csv)}; DefaultDir=C:\Temp;Extended properties=''ColNameHeader=True;Format=CSVDelimited;''','select * from junk.txt')
I shamelessly copied this (with modification) from Vasc's March 2006 post.
He also...
June 12, 2008 at 1:59 pm
I believe your assumption that [Unit Price] should be additive is incorrect, so the result of 83,417 should be the right one. Since both [Sales Price] and [Quantity] are additive,...
January 8, 2004 at 12:37 pm
I second the use of TABLE variables. In my own application, the use of table variables improved performance dramatically (2x or greater in many cases). Also, regarding indices, if you...
January 7, 2004 at 12:51 pm
Thanks for the suggestion. I have not yet been able to get this to work, however.
I use .NET and not VB6, so I ran the conversion utility. There were some...
January 7, 2004 at 9:29 am
Viewing 7 posts - 1 through 7 (of 7 total)