Viewing 9 posts - 1 through 9 (of 9 total)
I got a new problem...how do i import a pipe delimiter file. This is what I try but it's not working
--Example to open CSV file
SELECT *
FROM OPENROWSET ('MSDASQL',
'Driver={Microsoft...
June 18, 2008 at 9:35 pm
thanks Adam, you are a genious
June 18, 2008 at 3:08 pm
still wont work 🙁
June 18, 2008 at 2:30 pm
SELECT *
FROM OPENROWSET ('MSDASQL',
'Driver={Microsoft Text Driver (*.txt; *.csv)};
DefaultDir=C:\;
Extensions=csv;',
'SELECT * FROM myFile.csv')
Same problem occurs with XLS file and with import wizard as well
June 18, 2008 at 2:10 pm
I would add the result into a #tempTable and use your group by to count again
June 18, 2008 at 1:49 pm
no problem...it was very simple once...
CREATE FUNCTION
(
@inputDT int
)
RETURNS datetime
AS
BEGIN
RETURN DATEADD(SECOND, @inputDT, '1/1/1970')
END
GO
June 18, 2008 at 1:09 pm
I just figure it out. Apparently the apps stores it in Unix Time (UTC.) So I wrote a function to convert it
thanks anyway
June 18, 2008 at 1:03 pm
For my first issue. I have tried this code in which I found on previous posted
select *
from OpenRowset('MSDASQL',
'Driver={Microsoft Text Driver (*.csv)};
DBQ=C:\myFolder\',
'select * from myFile')
However, I get the...
June 16, 2008 at 10:52 am
Viewing 9 posts - 1 through 9 (of 9 total)