Forum Replies Created

Viewing 15 posts - 3,931 through 3,945 (of 8,731 total)

  • RE: How to format data in a grid view (pivot?)

    Meatloaf (10/30/2015)


    Is there a way to make all data appear in one column so I would have a row like this:

    A,B,C,D,E,F,G, A_InMin,A_InMax,B_InMin,B_InMax,C_InMin,C_InMax,D_InMin,D_InMax,E_InMin,E_InMax,F_InMin,F_InMax,G_InMin,G_InMax,

    Do you mean one column or one row?

    For one...

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2
  • RE: NULL and empty string question...

    Ian Scarlett (10/30/2015)


    I believe that most theorists would prefer blank spaces instead of null values.

    Really? I understand the grief nulls can cause, but without them how do you...

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2
  • RE: NULL and empty string question...

    Hi Kristen,

    Just wondering. Why did you go with that path and not the opposite by making all the columns not nullable? I believe that most theorists would prefer blank spaces...

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2
  • RE: Are the posted questions getting worse?

    Brandie Tarvin (10/30/2015)


    Anyone here with mad C# skills? I need some help with a VS 2012 C# project that I'm updating.

    Nevermind. One of our developers finally responded to my request...

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2
  • RE: Which gives the greatest points?

    Now I know how the people on the other side of "the pond" feel when the humor questions are US centered. 😀

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2
  • RE: Update a #table using where clause

    Just a wild guess. You might have selected part of the update without the where clause and ran the query. That would have prevented the code to work as expected...

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2
  • RE: Update a #table using where clause

    I don't see the problem with your code. Probably if you give more details on the problem.

    CREATE TABLE #Temp(

    LastName varchar(10),

    ...

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2
  • RE: Need output in single row

    RPSql (10/29/2015)


    ;WITH QUERY1 ( Total_Physical_Memory_In_MB,NumberofCPU )

    AS (SELECT [total_physical_memory_kb] / 1024 AS [Total_Physical_Memory_In_MB],

    CPU_Count AS NumberofCPU

    FROM [master].[sys].[dm_os_sys_memory]

    CROSS JOIN sys.dm_os_sys_info

    ...

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2
  • RE: How do I transpose columns to rows?

    This is your first post here, so you might not be used to it. In SQL forums, it's a good practice to post your sample data in a way that...

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2
  • RE: How do I transpose columns to rows?

    Have you tried this?

    http://www.sqlservercentral.com/articles/CROSS+APPLY+VALUES+UNPIVOT/91234/

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2
  • RE: Help with While Loop

    Strings can be compared and the ones that come first in alphabetical order are lower than the ones that come last.

    Example:

    CREATE TABLE #Sample(

    myString varchar(1));

    INSERT INTO...

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2
  • RE: Help with While Loop

    This is one of those examples where people think that a while loop is a better option than a cursor, but it very possibly isn't.

    The while loop gets the first...

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2
  • RE: How to join these two tables

    Very simple:

    SELECT [total_physical_memory_kb] / 1024 AS [Total_Physical_Memory_In_MB],

    CPU_Count AS NumberofCPU

    FROM [master].[sys].[dm_os_sys_memory]

    CROSS JOIN sys.dm_os_sys_info

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2
  • RE: Today's Random Word!

    DonlSimpson (10/29/2015)


    anthony.green (10/29/2015)


    Ed Wagner (10/29/2015)


    anthony.green (10/29/2015)


    crookj (10/29/2015)


    Toss

    Salad

    Greens

    Me

    Myself

    Irene

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2
  • RE: Foreign Keys

    I'm curious. Why would you need to drop and recreate the Foreign Key constraints?

    If it's for renaming purposes, I would simply rename them.

    If it's for rebuilding the indexes, I would...

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2

Viewing 15 posts - 3,931 through 3,945 (of 8,731 total)