Forum Replies Created

Viewing 15 posts - 121 through 135 (of 13,446 total)

  • Reply To: how to print NULL for datetime column

    I think you want to convert the date to varchar, and if the results is NULL, use the string NULL

    ISNULL(convert(varchar(20),@Date,GETDATE()),110),'NULL')

  • Reply To: Script multiple queries

    by queries, i am guessing you mean tables, instead.

    you can sue the metadata to script out the actual queries by getting the column names, is that what you are after?...

  • Reply To: empty sys.dm_exec_query_stats

    have you set your max server memory to a low threshold, so it ends up clearing the procedure cache?

  • Reply To: Performance Tuning Question?

    in my experience, most performance problems come from coding that works, but performs poorly on large data sets.

    as a result, i look at the code, here are some of the...

    • This reply was modified 5 years, 11 months ago by Lowell. Reason: added FOR XML hint
  • Reply To: Saving Hebrew text as nvarchar

    ok the forum converts to varchar as  well! so my  nvarchar string characters got converted to question marks!

     

  • Reply To: Saving Hebrew text as nvarchar

    your query did not appear, but i suspect it has to do with implicit conversions.

    you have to use the N'' denotation to make sure SQL knows it is nvarchar data.

     

    here...

  • Reply To: partition table design issue

    are you using a sliding partition strategy for archiving?

    don't look at the file groups. file groups is how it is stored, and potentially archived. that is independent from the logical...

  • Reply To: Email notification when job completes.

    when the job fails.

    if you change it to when the job completes, you gent both success and failure emails.

  • Reply To: Sql script Transpose Multiple Column into Rows

    a simple basic example of cross applying a datamath function to get your 36 values based on one date.your example did not go by date, it seemed, though; are you...

  • Reply To: Why did the SPN's disappear?

    Roland are you creating the SPN's manually?

    typically, the service account running the SQL service creates the SPN on restart of the SQL service.

    That means it needs the Trusted for Delegation...

  • Reply To: Ola Hallengren backup failing with syntax error

    Incorrect syntax near '@CheckSum' to me implies a missing comma before, or an equals sign after;

    as others had posted, if we see the whole command you executed, it might be...

  • Reply To: SSRS parameter

    right , the procedures are only part of the settings you need to use.

    you need to use both WHERE [arr].Groups LIKE @GroupSearchTerm AND [arr].Users LIKE @UserSearchTerm" in the proc, not...

  • Reply To: SSRS parameter

    you wnat your SSRS report to have two text boxes or dropdowns for the  parameters, and to call a procedure.

    the procedure then might look something like this, so if they...

  • Reply To: Create and Alter Views permissions?

    not to that level of granularity, but there is a way to code around that.

    take a look at this post from a while back where i posted a complete solution...

  • Reply To: report problem

    i hope i am not reading this wrong, but it looks like what you want to do is instead of using SELECT *, to select explicit column names.

    good job on...

Viewing 15 posts - 121 through 135 (of 13,446 total)