Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)

  • RE: purge the tran log

    I always use the following script and it works great. After the script finishes and the logfile is still bigger then you want, just run it again for a couple...

  • RE: How Do I Zero-Fill an Int when converted to Char?

    Here is another option you can use for the zero-padding for the week:

    REPLICATE('0', 2-LEN(DATEPART( ww,  myDateCol))) + CAST(DATEPART( ww, myDateCol) AS varchar(2))

     

  • RE: Challenging one!!! need real stud

    Within a stored procedure you can also store the results of the complex query in a temporary table (e.g. SELECT INTO #complextable) and then use the self-join on the temporary...

Viewing 3 posts - 1 through 3 (of 3 total)