Forum Replies Created

Viewing 15 posts - 466 through 480 (of 1,086 total)

  • RE: loop thru the list of months using t-sql statement

    It sounds like a CASE statment would work.  But it would help if you could give us some sample data, your current output, and what you hope to achieve... 

    I wasn't born stupid - I had to study.

  • RE: Is there a better way?

    R and W seem to have the same calculation, but you are naming your output differently.  If that is important, than this looks fine.  Is this slow? 

     

    I wasn't born stupid - I had to study.

  • RE: Cannot sort a row of size 8458, which is greater than the allowable maximum of 8094.

    Have you tried putting the data into a #TempTable and selecting DISTICT from there? 

    (Are there any aggregates in your select statement?) 

     

    I wasn't born stupid - I had to study.

  • RE: Converting table data into a look up matrix

    Here is a bulldozer approach.  Hopefully, someone will come up with something more efficient...  (I added some data for a check, but I do not know how many [Size] entries...

    I wasn't born stupid - I had to study.

  • RE: Using trigger for audit_log

    I think you are on the right to prove this is bad.  Due diligence is often neglected when someone without Technical expertise or experience makes decisions. 

    Capture this stuff and...

    I wasn't born stupid - I had to study.

  • RE: How to convert sql server default date value to NULL

    NULLs are not generally a very good choice as a Default.  You may want to consider accepting the 1900 date as NULL does not equal NULL and NULL has numerous...

    I wasn't born stupid - I had to study.

  • RE: Using trigger for audit_log

    Here is an example of a Trigger I recently got help with here. 

    You have some choices to make.  You can insert all of the information into one table by...

    I wasn't born stupid - I had to study.

  • RE: And now for something completely different...

    I had neighbors from there.  They gave me a calendar of sites from that city.  Very beautiful! 

    I grew up in the midwest US (one of those I / O...

    I wasn't born stupid - I had to study.

  • RE: And now for something completely different...

    I know you are in Canada - that is why I asked you...  I think sushila is in the US on the east coast somewhere.  Remi seems to be the...

    I wasn't born stupid - I had to study.

  • RE: Proper way to join tables

    I have been using constraints within the JOIN [ ON( TablA.[ID] = TableB.[ID] AND TableB.[Description] = 'A') ] working under the assumption that the optimzer will handle this better. 

    Am...

    I wasn't born stupid - I had to study.

  • RE: And now for something completely different...

    N.S.  (Just saw him in DC - great show!  my son is into magic).  Oh wait - you are thinking about the book - duh! 

    It also forced me to...

    I wasn't born stupid - I had to study.

  • RE: And now for something completely different...

    OMG!  You updated your profile!  I had no idea...  sorry I missed that!  It is nice to look at a beautiful face, (being happily married and in a different state...

    I wasn't born stupid - I had to study.

  • RE: Proper way to join tables

    I'm in the does not matter camp as well.  But my personal style is the same as yours...  

     

    I wasn't born stupid - I had to study.

  • RE: SQL Question - Unions

    Let me see if I understand this correctly.  You have multiple '%sale%' tables that can contain the column, (I still always want to say field) tax_info. 

    You want to only...

    I wasn't born stupid - I had to study.

  • RE: Newbie: updating from txt file.

    Kevin,

    Please explain to me how you get your data into SQL Server.  Is it in a one column table?  Did you use Enterprise Manager to load it? 

    Once I...

    I wasn't born stupid - I had to study.

Viewing 15 posts - 466 through 480 (of 1,086 total)