Viewing 15 posts - 2,431 through 2,445 (of 3,544 total)
from (select distinct playerID,teamId
where teamId in (1,2,3,4,5,6)) a
group by playerID
Far away is close at hand in the images of elsewhere.
Anon.
January 7, 2005 at 6:56 am
Following on from Frank's post
select t1.c2, sum(t2.c2) as [RunningSum]
from #rt t1
inner join #rt t2
on t2.c1 <= t1.c1
group by t1.c1, t1.c2
order by t1.c1
Has the table...
Far away is close at hand in the images of elsewhere.
Anon.
January 7, 2005 at 6:44 am
CREATE PROCEDURE usp_copy_session
@SessionID int,
@UniqueID int
AS
INSERT INTO
(UniqueID, QuestionID, ColumnID, Answer)
SELECT @UniqueID, QuestionID, AnswerID, Answer
FROM
WHERE SessionID = @SessionID...
Far away is close at hand in the images of elsewhere.
Anon.
January 7, 2005 at 3:50 am
Probably too late but I posted this solution in another thread with the same question
order by cast(
(case when patindex('%[a-z]%',[col]) = 0
then [col]
else left([col],patindex('%[a-z]%',[col])-1)
end) as int),[col]
Far away is close at hand in the images of elsewhere.
Anon.
January 7, 2005 at 2:31 am
I picked the right answer which was recorded as wrong, now that the wrong answer has been changed to the right answer, I now have the correct answer and 1 point...
Far away is close at hand in the images of elsewhere.
Anon.
January 6, 2005 at 9:17 am
It has a .PNG (Portable Network Graphics) extension
Displays OK in IE 6
Far away is close at hand in the images of elsewhere.
Anon.
January 6, 2005 at 9:05 am
Is the file 'Fixed Field Length', that is each column is the same width which would describe your problem as the number of spaces would vary depending on how many...
Far away is close at hand in the images of elsewhere.
Anon.
January 4, 2005 at 7:15 am
What do you mean by 'empty' (null, zero?)
This will check for NULL
SELECT
h.client,
count(*) as Count_Total_Slots,
SUM(CASE WHEN h.Value IS NULL THEN 1 ELSE 0 END) as Count_Free_Slots
FROM database1.dbo.Hardware...
Far away is close at hand in the images of elsewhere.
Anon.
January 4, 2005 at 6:57 am
I agree Andy, I have seen some threads go 'cold' (I think this a minority though) which means you do not know if the solution(s) worked or not or whether the...
Far away is close at hand in the images of elsewhere.
Anon.
January 4, 2005 at 2:37 am
All output, errors as well are put in the output, whether redirected or if using the -o parameter.
Far away is close at hand in the images of elsewhere.
Anon.
December 23, 2004 at 7:24 am
Add
-m-1
to your osql parameters
Create your batch file like this
CALL batchfile.bat servername databasename scriptname1.sql
IF ERRORLEVEL 1 GOTO ER
CALL batchfile.bat servername databasename scriptname2.sql
IF ERRORLEVEL 1 GOTO ER
CALL...
Far away is close at hand in the images of elsewhere.
Anon.
December 23, 2004 at 6:50 am
| I did see the solution in this Forum |
If there is a solution then I'd be interested.
Far away is close at hand in the images of elsewhere.
Anon.
December 21, 2004 at 2:39 am
Yes, for that to work the end user will have to have bcp.exe. What you could do is create a random filename file on the server, put the data into...
Far away is close at hand in the images of elsewhere.
Anon.
December 21, 2004 at 2:33 am
Just tried again with my Access 2000 db and can save the query and run it OK. Wonder if it is something to do with your database that I have...
Far away is close at hand in the images of elsewhere.
Anon.
December 20, 2004 at 8:12 am
By 'Local Drive' I am assuming to mean the client and not the server
If so, then you have to run bcp via scripting in the html not in the code...
Far away is close at hand in the images of elsewhere.
Anon.
December 20, 2004 at 7:06 am
Viewing 15 posts - 2,431 through 2,445 (of 3,544 total)