Forum Replies Created

Viewing 15 posts - 811 through 825 (of 1,086 total)

  • RE: Adding data to table

    What error are you getting?  And you may want to check your use of single and double quotes.

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

  • RE: Save results of stored proc with multiple result sets

    Do you have permissions to create tables? 

    You could either create them in advance and TRUNCATE them at the head of the stored procedure, or create them within the stored...

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

  • RE: Comparing date fields in a single row

    Here is an easy solution.  You may want to think through this and develop a UDF if you end up doing this quit a bit or more fields become involved. ...

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

  • RE: Problem with searching a table containing apostrophes

    Or use the REPLACE function on the field you are comparing and strip the apostrophe out completely when comparing [ LIKE ]. 

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

  • RE: How to return a quarter for every person

    Correct.  I was just working under the assumption they had a populated Quarter table... 

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

  • RE: How to return a quarter for every person

    If you already have a Quarter table, this may work as well. 

     

    CREATE TABLE #Person( [ID] integer,

                                         [Name] varchar(20))

    INSERT INTO #Person

    SELECT 1, 'Joe Smith'

    UNION ALL

    SELECT...

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

  • RE: Better way to do this?

    Are your Employee.hzip4, dbo.Ranged.Start, and dbo.Ranged.Stop all four character fields since they are already aligned with the 5 digit zip used in the US? 

     

    Also, there is an interesting article in...

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

  • RE: mystery of deleted rows

    Can you post your DELETE code? 

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

  • RE: SUM

    Can you give the output from Remi's code, because that seems very odd.  Maybe include UserID; remember to use that in the GROUP BY as well...

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

  • RE: Parsing Data By "\" and "/" Characters

    Here is yet another example.  It is for one record passed in from a front-end application.  This particular stored procedure, (which would probably be better as a UDF, uses the pipe...

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

  • RE: How to do an insert to another server using TSQL?

    INSERT INTO server1.base.dbo.table1( Field1) SELECT Field1 FROM dbo.table2

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

  • RE: 30 mins report

    Here is a very slick method that Frank Kalis showed me.  (It took me a while of Private Posts offline to get it - I am a little thick sometimes...). ...

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

  • RE: having trouble with "^"

    (dbo.User_CIS.Installment_Total_Fee * power(1 + (0.16 / dbo.User_CIS.Length_Installment),(dbo.User_CIS.Length_Installment*1)))

    It looked like you parenthesis were a bit off and you did not need the select.  Why are you multiplying...

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

  • RE: Deleting text data

    Doesn't it also shrink when you back it up? 

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

  • RE: DBA vs Database Developer

    AdamMechanic, I am LOVING the new avatar!  "Sprinkle 'da floower..., sprinkle 'da floower..." 

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

Viewing 15 posts - 811 through 825 (of 1,086 total)