Forum Replies Created

Viewing 15 posts - 16 through 30 (of 40 total)

  • RE: Case statement error

    Thanks. I restructured the string and put my Getdate() is single quotes and ran it and it worked ...Thanks

  • RE: Find gaps inDate Range

    IF OBJECT_ID('tempdb..#Missing_Dates') IS NOT NULL

    DROP TABLE #Missing_Dates

    GO

    CREATE TABLE #Missing_Dates(RowsINT,TransactionDate Datetime,Rundate Datetime)

    --INSERT #Missing_Dates VALUES(244 ,'2008-07-28 00:00:00.000','2008-07-30 00:00:00.000')

    --INSERT #Missing_Dates VALUES(11307,'2008-07-29 00:00:00.000','2008-07-30 00:00:00.000')

    --INSERT...

  • RE: @query

    Thanks got it right and it works with the variable.....

  • RE: return Statement In a procedure

    This now gives an error

    Msg 102, Level 15, State 1, Line 62

    Incorrect syntax near 'END'.

    and the rest of the script doesn't work

  • RE: Convert from bianry to varchar or nvarchar and join to another table

    I read the code and tested it and it works only if you hardcode the binary value you want to convert. But I want to use it on two tables....

    Table...

  • RE: remove spaces more than double

    Thank you...It works

  • RE: Split String

    How is this procedure invoked if the input is in a table #test

  • RE: Split String

    BUt this splits the string into one column. I want to split it into 14 columns so the result set is like

    col1 col2 col3 ..........

    how do I achieve that ...

  • RE: Index Tuning

    I will try the full text indexing strategy and see what sort of performance I get if not I will go for the hits on words

  • RE: SYNTAX ERROR USING PARAMETERS

    Just so we are on the same page.. The < @EndDate + 1 is just to make sure that you select everything within the selected date range and the...

  • RE: SYNTAX ERROR USING PARAMETERS

    THANKS...IS USING BETWEEN ON DATES NOT A GOOD THING ?

  • RE: Arithmetic overflow

    THANKS...I WILL REMEMBER THAT NEXT TIME. I ENDED UP INCREASING MY AMOUNT COLUMN FROM DECIMAL(13,3) TO

    DECIMAL(18,3) AND IT RAN SUCESSFULLY.

    THANKS A LOT

  • RE: Arithmetic overflow

    I modified my script and when I run it, it blocks itself ...

    --Create Rownum to allow "walking through the table"

    ALTER TABLE tbExtract ADD Rownum INT IDENTITY(1,1)

    --This code will return...

  • RE: Loop Through Table List And Import

    Thanks will check it out now and modify my script. I ran it and it loaded the files in 30 mins, thats after using bulk insert..

  • RE: Loop Through Table List And Import

    Thanks got it now. I have amended my script and it works.

    --Uncompress Zip Files

    EXEC master..xp_cmdshell '\\phumba\daily$\INFiles\Apps\gzip -d -S zip \\phumba\daily$\INCT\*.zip'

    --Rename all files to files with .txt extension

    EXEC ...

Viewing 15 posts - 16 through 30 (of 40 total)