Viewing 15 posts - 2,926 through 2,940 (of 3,543 total)
isql /S servername /U username /P password -d databasename -b /m-1 /i filename
if ERRORLEVEL 1 pause
I use this in .bat files to process my...
November 19, 2003 at 7:24 am
Duplicate post.
Edited by - davidburrows on 11/19/2003 07:07:07 AM
November 19, 2003 at 7:05 am
How about
cast(year(GETDATE()) as varchar) +
REPLACE(STR(DATEDIFF(d,cast(year(GETDATE()) as varchar)
+ '-01-01',GETDATE())+1,3),' ','0')
November 19, 2003 at 6:51 am
Check the contents of the input file for the record in question (use a hex editor) and check that the row has the correct number of columns and is terminated...
November 19, 2003 at 6:42 am
Not a good solution but if the process time is small you could change the proc to have additional parameters, one to return the number of years and another to...
November 19, 2003 at 6:36 am
Simple example
UPDATE b
SET b.col = a.col
FROM tableb b
INNER JOIN tablea a
ON a.rowid = b.rowid
November 19, 2003 at 6:28 am
Valid date conversions depend on many factors including the language setting of the connecting user. The error will occur is you try to convert dmy date when sql expects mdy....
November 19, 2003 at 2:22 am
Sorry Frank, couldn't resist
FOTFL & WMP
November 18, 2003 at 8:19 am
Keith,
quote:
My questions are easy
Easy for you to say...
Agree...
November 18, 2003 at 7:29 am
quote:
Can you help me understanding this?
Och No!
many a mickel makes a muckel
Edited by -...
November 18, 2003 at 7:18 am
Jim,
Define the input text file as delimited using a character that is not in the input. This will give you each line as a single column.
Create an ActiveX transformation from...
November 18, 2003 at 6:56 am
The table you are trying to update has a trigger called 'Movement' that uses RAISERROR to generate an ad-hoc error mesage if update attempted.
November 18, 2003 at 6:16 am
Depends on the input format. I prefer to convert input to dates first and then compare. You will have to convert anyway.
set @from = year1...
November 14, 2003 at 7:39 am
Viewing 15 posts - 2,926 through 2,940 (of 3,543 total)