Viewing 15 posts - 436 through 450 (of 1,086 total)
Look into BOL on Triggers and use of the "inserted" and "deleted" tables...
October 13, 2005 at 8:30 am
Is this code and a table structure you cannot change? Why not use an IDENTITY field rather than searching for a new when someone else could be in that table? ...
October 13, 2005 at 8:28 am
Like I said, I threw this together without testing it. This should solve that problem:
SELECT GroupCode, COUNT(*) AS MyCount, T.MyTCount
FROM myTbl
INNER JOIN( SELECT GroupCode, COUNT(*) AS...
October 13, 2005 at 8:25 am
Still not returning any values:
IF EXISTS( SELECT * FROM dbo.sysobjects WHERE id = object_id( N'dbo.GetInternationalCodes') AND xtype IN( N'FN', N'IF', N'TF'))
DROP FUNCTION dbo.GetInternationalCodes
GO
CREATE FUNCTION dbo.GetInternationalCodes( @AwardID integer)...
October 13, 2005 at 8:19 am
Haven't tested this, but:
SELECT GroupCode, COUNT(*) AS MyCount, T.MyTCount
FROM myTbl
INNER JOIN( SELECT GroupCode, COUNT(*) AS MyTCount
FROM myTbl
WHERE compliant = 'T'
GROUP BY...
October 13, 2005 at 8:00 am
I cannot vouch for its 'literary license', (I think another Department issues those...).
As for its basis - I fully concur. Our Congress does not have the authority to "give"...
October 13, 2005 at 7:45 am
Thanks Peter. That is exactly correct and it has been a real booger for me with the versions of SQL Server. I hear tell Yukon or SQL Server 2005, (or...
October 13, 2005 at 7:31 am
Please don't cross-post. Most people look at numerous locations on this site.
http://www.sqlservercentral.com/forums/shwmessage.aspx?forumid=9&messageid=228528&post=true
October 12, 2005 at 10:04 pm
Answer(s) to the first question are the AVE and STDEV functions. Look them up in BOL. That should provide you with what you want. (Unless you need code - in...
October 12, 2005 at 10:02 pm
Thanks for being "Committed".
<a href="Curses'>http://www.sommarskog.se/dynamic_sql.html">Curses & Blessings of Dynamic SQL</a>
(I think I must be terminal...)
October 12, 2005 at 3:49 pm
Make sure SET QUOTED_IDENTIFIER { ON | OFF } is set to OFF and use double quotes around your Dynamic SQL statement.
Also, read the following: <A href="Curses'>http://www.sommarskog.se/dynamic_sql.html">Curses & Blessings...
October 12, 2005 at 3:22 pm
I do not see how a Trigger would be fired for records such as this..., I am assuming these are 'old' records which would probably not be accessed, hence a...
October 12, 2005 at 3:09 pm
Glad I could help...
October 12, 2005 at 1:53 pm
Return your "Detail" resultset to a different predifnied table.
I believe you stated that your summary information is built from that. Build that at the end within your calling SP and...
October 12, 2005 at 12:45 pm
I guess this is really more for thought than comment.
I replied so the Site Owner does not have to generate a "No reply..." message.
October 12, 2005 at 11:33 am
Viewing 15 posts - 436 through 450 (of 1,086 total)