Viewing 15 posts - 901 through 915 (of 1,086 total)
I always find it interesting when people think of taxes as the "Government's" money.
It's our money! They take from us and should be accountable for spending. They don't make it,...
April 15, 2005 at 9:08 am
To add to the confusion, (this second line errors on my server as well) I altered the third select to CAST MyDecimal to DECIMAL(2,0); its existing state... And that ran...
April 14, 2005 at 1:11 pm
Here is quick script that might help as well. It will look up all User Tables for monitoring.
SET NOCOUNT ON
CREATE TABLE #TableName( RowID int IDENTITY (1, 1) NOT...
April 14, 2005 at 9:33 am
Don't do a thing! I think posting a lawyer is very humerous.
April 8, 2005 at 8:14 am
Is there a difference in the locations of the fields between the two tables? (i.e., does one table have a date in a location and the other table has a...
April 7, 2005 at 12:23 pm
There was a good posting on "Work Days" a while back.
I grabbed this from it:
DECLARE @StartDate datetime,
@EndDate datetime
SELECT @StartDate = '01/01/2005'
SELECT @EndDate = GETDATE()
SELECT...
April 6, 2005 at 10:51 am
Remi and Mike are correct. Please disregard my idiocy....
April 5, 2005 at 9:57 am
#TempTables are destroyed once a stored procedure completes. So, why are you checking for Existence ahead of time? Does this table get created somewhere else?
Also, if I am not...
April 5, 2005 at 9:23 am
Look up dynamic SQL on this site. Be sure to do the following:
Reasons to be reluctant or/and mindful of dynamic SQL can be found...
April 5, 2005 at 9:15 am
Thanks for the insights and teaching! (My degree was NC State - not touchy-feely, even with many goofy academicians being touchy-feely). Co-gen is still good. If it weren't for some...
April 5, 2005 at 9:11 am
I got my undergraduate in Environmental Science and used to regulate a lot of these industries. Government is real good at squashing the little guy, but can never seem to...
April 4, 2005 at 3:03 pm
I have found this works much better and quicker in Query Analyzer than using Enterprise Manager...
March 31, 2005 at 4:21 pm
A simple bulldozer approach might be to select each type into a #TempTable and then UNION ALL into a final #TempTable for output.
Otherwise, it sounds to me like you...
March 31, 2005 at 3:30 pm
Thanks all! This was an unusual circumstance in some of the standard code where I am contracted. I'm a knucklehead for not seeing that directly - oil well, too close to the...
March 31, 2005 at 10:22 am
I may not be clear, but it looks like you wanted the most recent record.
Try SELECT TOP 1 Field1, Field2... FROM Table ORDER BY Field2
You have no WHERE...
March 30, 2005 at 2:53 pm
Viewing 15 posts - 901 through 915 (of 1,086 total)