Forum Replies Created

Viewing 15 posts - 721 through 735 (of 921 total)

  • RE: Help with Query !!!!

    Working from your pseudo DDL rather than the schema in your pseudo SQL, perhaps you want just this:

    
    
    SELECT d.DataId,
    CASE d.DataCategory
    WHEN 'Vendor' THEN v.VendorId
    WHEN 'Customer'...
  • RE: order by inside union (selects)

    The result set from a UNION is not guaranteed to be in any order, so, even if you could order the selects that are unioned, the order of the results...

  • RE: how to tell if data is an int value?

    quote:


    Since isNumeric returns a 1 for any REAL number and the original question was "how do I test for an INTEGER" you...

  • RE: Getdate() in user defined function

    quote:


    ...which I can appreciate, and so they don't allow for the getdate() function in the udf ...BUT passing it in as a...

  • RE: Getdate() in user defined function

    quote:


    Ugh! Yeah that's where I'm headed I guess, but selecting from a table, or a view that is created to house...

  • RE: Getdate() in user defined function

    You can fool it by using a view:

    
    
    CREATE VIEW v_GetDate
    AS
    SELECT GETDATE() Now

    --Jonathan

  • RE: script to find actual filled size of a row

    Can't you just add up the widths used and then return the maximum found? Something like:

    
    
    SELECT MAX(DATALENGTH(Col1)) + DATALENGTH(Col2) + ...)
    FROM TheTable

    You'll need to just...

  • RE: Playing with month names

    LEFT(DATEADD(m,DataField,-1),3)

    --Jonathan

  • RE: Changing a column from INT to BIGINT - Urgent

    quote:


    Thanks,

    Yeah, I can get the data out of one row with bcp, but I can't bcp only one row back [;-)].

    ...

  • RE: null column

    quote:


    Thanks its working in sql but what if I change to a access database. COALESCE doesn't seem to work in access.


  • RE: GLOBAL FUNCTION

    quote:


    Jonathan,

    Thanks, it worked for me. But is it compatable for all versions?.


    All versions that...

  • RE: Print a report

    quote:


    You are probably right, but I need it to print from within SQL Server.

    Are there any additional tools we can use

  • RE: null column

    
    
    SELECT *
    FROM Table1
    WHERE COALESCE(Col1, Col2) > 200

    --Jonathan

  • RE: Changing a column from INT to BIGINT - Urgent

    You cannot disable transaction logging.

    You give the size of the db but not of the table. How many rows and how many indexes?

    Have you considered using bcp to copy...

  • RE: BLOB Storage

    The actual space used should be roughly equivalent. I think you are saying that the SQL Server data files that hold the BLOBs are larger than the sum of...

Viewing 15 posts - 721 through 735 (of 921 total)