Viewing 15 posts - 2,926 through 2,940 (of 3,544 total)
Replace filename with the name of the .sql file, eg if the file you want to execute is called test.sql in the temp directory of your c: drive then would...
Far away is close at hand in the images of elsewhere.
Anon.
November 19, 2003 at 7:34 am
Posted answer in other thread
Far away is close at hand in the images of elsewhere.
Anon.
November 19, 2003 at 7:25 am
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...
Far away is close at hand in the images of elsewhere.
Anon.
November 19, 2003 at 7:24 am
Duplicate post.
Edited by - davidburrows on 11/19/2003 07:07:07 AM
Far away is close at hand in the images of elsewhere.
Anon.
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')
Far away is close at hand in the images of elsewhere.
Anon.
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...
Far away is close at hand in the images of elsewhere.
Anon.
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...
Far away is close at hand in the images of elsewhere.
Anon.
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
Far away is close at hand in the images of elsewhere.
Anon.
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....
Far away is close at hand in the images of elsewhere.
Anon.
November 19, 2003 at 2:22 am
Nah!
Wet Me Pants ![]()
Far away is close at hand in the images of elsewhere.
Anon.
November 18, 2003 at 8:28 am
Sorry Frank, couldn't resist ![]()
FOTFL & WMP
Far away is close at hand in the images of elsewhere.
Anon.
November 18, 2003 at 8:19 am
Keith,
quote:
My questions are easy
Easy for you to say... ![]()
Agree...
Far away is close at hand in the images of elsewhere.
Anon.
November 18, 2003 at 7:29 am
quote:
Can you help me understanding this?
Och No!
many a mickel makes a muckel
Edited by -...
Far away is close at hand in the images of elsewhere.
Anon.
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...
Far away is close at hand in the images of elsewhere.
Anon.
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.
Far away is close at hand in the images of elsewhere.
Anon.
November 18, 2003 at 6:16 am
Viewing 15 posts - 2,926 through 2,940 (of 3,544 total)