Forum Replies Created

Viewing 5 posts - 16 through 20 (of 20 total)

  • RE: Calendar Table Function

    A tally table would work well. That is basically what I am building with the sub-select against sys.all_objects. The overhead is there to return a larger data set, but for...

  • RE: Calendar Table Function

    Remember that the day of the week and the name of the week day are included in the function. This way, you can easily exclude these days. These columns are...

  • RE: Calendar Table Function

    Unfortunately, SQL Server 2005 doesn't support ISO Week within DatePart. Some logic could be inserted to allow for this in the function, but the concern would be performance. This function...

  • RE: Is it possible to simulate the cross apply function?

    tempdb is always going to run under the native compatibility mode. Add a Use tempdb statement before you call the CROSS APPLY and change the context back when done.

  • RE: BCP Export with Column Headers

    I created the following DOS based script to solve this issue. This also enters in a datestamp for the file name:

    BCP "specific table" out "filename.csv" -c /t, -Sserver -Uuser -Ppassword

    REM...

Viewing 5 posts - 16 through 20 (of 20 total)