Forum Replies Created

Viewing 15 posts - 901 through 915 (of 1,086 total)

  • RE: Tax Day

    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,...

  • RE: Can someone verify this for me?

    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...

  • RE: table size in database

    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...

  • RE: Should I change my avatar

    Don't do a thing!  I think posting a lawyer is very humerous. 

  • RE: Strange error when using union to select 2 identical tables

    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...

  • RE: WeekDay Problem

    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...

  • RE: Using variable in WHERE clause on sysobjects

    Remi and Mike are correct.  Please disregard my idiocy.... 

  • RE: SELECT results of EXEC statement into variables without temp tables

    #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...

  • RE: Using variable in WHERE clause on sysobjects

    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...

  • RE: Water Power

    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...

  • RE: Water Power

    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...

  • RE: Alter / Change Column Data Type

    I have found this works much better and quicker in Query Analyzer than using Enterprise Manager... 

  • RE: top n percent WITH group by?

    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...

  • RE: Problem with DEFAULT in #TempTable

    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...

  • RE: How to place conditions in CURSOR

    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...

Viewing 15 posts - 901 through 915 (of 1,086 total)