Viewing 15 posts - 1,846 through 1,860 (of 3,544 total)
Not sure about the error but because your file is character you cannot use SQLINT for field definitions although BCP will output this in a fmt file by default.
Try this...
Far away is close at hand in the images of elsewhere.
Anon.
June 22, 2006 at 6:38 am
Great article, very informative
| With the "one job in ten years" policy I'm sure my resume would at the... |
Far away is close at hand in the images of elsewhere.
Anon.
June 21, 2006 at 4:25 am
| ...I like to poke fun at developers who dabble in SQL... |
Hey, I resemble that remark ![]()
Far away is close at hand in the images of elsewhere.
Anon.
June 15, 2006 at 7:48 am
The only problem is with milliseconds for times of '23:59:59.003' to '23:59:59.997' which if present on day-8 then your query would include it.
Therefore you would to use CONVERT(varchar(12), DATEADD(day, -8,...
Far away is close at hand in the images of elsewhere.
Anon.
June 15, 2006 at 7:08 am
SET DATEFIRST 1
SELECT (DATEDIFF(week,'20060101',GETDATE())*5)+DATEPART(weekday,GETDATE())
providing it is not run on a Sat/Sun
Far away is close at hand in the images of elsewhere.
Anon.
June 14, 2006 at 7:04 am
WHERE DATEDIFF(day,[Date],GETDATE()) <= 7
but this will not utilise any index on the date column
whereas Peters solution will ![]()
Far away is close at hand in the images of elsewhere.
Anon.
June 14, 2006 at 6:39 am
Your problem occurs when you have multiple deletes invlolving multiple accounts
This would be my (ANSI-92 standard) way of doing it
UPDATE a
SET a.balance = a.balance - d.adjustment
FROM accountBalance a...
Far away is close at hand in the images of elsewhere.
Anon.
June 12, 2006 at 7:05 am
Plus it would be more efficient to put the results of the two tables combined into a temp table first and then using that table. This would avoid the multiple...
Far away is close at hand in the images of elsewhere.
Anon.
June 7, 2006 at 7:02 am
Try this
SELECT b.[RANK], MAX(b.[Url]) AS [Url], b.[DomainName]
FROM (SELECT MAX(ss.[RANK]) AS [RANK], docs.[DomainName]
FROM ContainsTable(Machinery_Docs, *, 'Lathe') AS ss
INNER JOIN Machinery_Docs docs ON ss. = docs.[Url]
...
Far away is close at hand in the images of elsewhere.
Anon.
June 7, 2006 at 6:56 am
Lookup CHECKSUM in BOL, the recommendation of the use of an additional indexed hash column (int) may improve your queries.
Far away is close at hand in the images of elsewhere.
Anon.
June 6, 2006 at 6:50 am
| ...a well-formed XML schema againt which well-formed HTML can be validated. |
There is a XML Schema for XHTML