Viewing 15 posts - 391 through 405 (of 432 total)
You're welcome buddy. The best thing about these forums is how much we can all learn from each other, there's also some healthy rivalry about too!
You'll also soon find that...
February 6, 2007 at 4:16 am
You'll need to add the field s.subconame to the SELECT part of your statement and then if you also add the INNER JOIN in my previous post so that your...
February 6, 2007 at 4:02 am
Sorry! I missed the subcoid column totally in your [containers] table, that is correct:
INNER JOIN subco s
ON c.subcoid = s.subcoid
I'll just take...
February 6, 2007 at 3:26 am
I thought that SET ANSI_WARNINGS was a session thing and could be set at the beginning and end of the query?
Ade
February 6, 2007 at 2:56 am
For the AM/PM part of your query you'll have to use a CASE statement; something like:
CASE WHEN datepart(hh,@datetest) > 12
THEN CAST((datepart(hh,@datetest) - 12) AS VARCHAR) + ' pm'
ELSE CAST(datepart(hh,@datetest)...
February 6, 2007 at 2:42 am
I can see what you are trying to do, but I can't understand why? Have a look in SQL Books Online at CASE statements, this will help get rid of...
February 6, 2007 at 2:35 am
You are using [containters] and [indexdata] in both queries; and you are grouping by [containercode] on both queries. If I have understood your queries correctly, combining the two SELECT statements in to...
February 6, 2007 at 2:25 am
Check out DISTINCT keyword in Books Online. Also look at the SELECT keyword too! These will help you with the basics.
February 6, 2007 at 2:12 am
Hi, I found this article on this subject: http://sqljunkies.com/WebLog/euang/archive/2004/04/01/1889.aspx
The important bit being:
The addition of the If smoStoredProcedure.IsSystemObject = False test slows the execution of the code from 1 sec...
February 2, 2007 at 9:21 am
I had a similar problem which I solved with:
WHERE CAST((colName * 100) as INT) % 100 != 0
No performance issues either.
February 2, 2007 at 9:00 am
Rhyming DBAs; that is all we need,
year zero seven's here and we have a new breed.
Getting all creative with your words and your rhymes,
But have your SQL Server's got awesome...
February 2, 2007 at 8:34 am
Firstly you'll need to make sure that no changes are currently being made to your table. You could then copy the do the following:
--Copy data to temp
SELECT (idCol, col1, col2, col3)...
February 2, 2007 at 8:14 am
Hi,
It might be a permissions thing... Check if the account associated with the Sql Server Agent has permissions on this folder.
January 30, 2007 at 10:24 am
Hi,
Something like this should do the trick:
DROP TRIGGER trgVendor
GO
CREATE TRIGGER trgVendor
ON vendor
FOR UPDATE
AS
BEGIN
UPDATE vendor
SET...
January 30, 2007 at 10:21 am
January 30, 2007 at 10:03 am
Viewing 15 posts - 391 through 405 (of 432 total)