Forum Replies Created

Viewing 15 posts - 181 through 195 (of 201 total)

  • RE: Syntactic Sugar

    Where do you need RegEx? LIKE is supporting it currently, so the only other point could be something like REPLACE (but I never needed it for REPLACE).

    They already added some...

    God is real, unless declared integer.

  • RE: Search query based on four separate parameters.

    Regarding the OPTION RECOMPILE:

    It would help only, when you change your WHERE to something as

    WHERE (ISNULL(@ForumName, '') <> '' AND tbo.ForumName LIKE @ForumName + '%')

    OR (ISNULL(@SurName,...

    God is real, unless declared integer.

  • RE: First Class Jobs

    A drawback of having the Jobs in the database would be, that - when you restore the database as _test, _dev or whatever, those jobs would be started and this...

    God is real, unless declared integer.

  • RE: Finally, Create or Alter

    @steve-2: What would you do regarding the column order, when you are facing a CREATE OR ALTER <table> statement and the column order differs from the real. Recreating could be...

    God is real, unless declared integer.

  • RE: Finally, Create or Alter

    djackson 22568 (11/29/2016)


    I never have an issue with this. A simple "if exists" tells me if I need to delete something before running create.

    Yes, and doing this you drop...

    God is real, unless declared integer.

  • RE: Finally, Create or Alter

    I doubt, that an ALTER OR CREATE <table> would be used commonly, particularly since a CREATE table will usually need some indexes, FKs, CHECK CONSTRAINTs and some other stuff too.

    Furthermore...

    God is real, unless declared integer.

  • RE: Happy Thanksgiving 2016

    Who do you blame for the lack of snow, Obama or Trump :hehe:?

    PS: Happy holiday.

    God is real, unless declared integer.

  • RE: The Danger of xp_cmdshell

    van.yancey (9/16/2016)


    I've only used it on Azure SQL Datawarehouse, but I believe the Polybase feature in SQL Server 2016 solves the problem of BULK EXPORT.

    But it would be a little...

    God is real, unless declared integer.

  • RE: The Danger of xp_cmdshell

    Indianrock (9/16/2016)


    I use xp_cmdshell in sql jobs, but turn it on before the action and turn it off after. The one that comes to mind is using DIR to...

    God is real, unless declared integer.

  • RE: The Danger of xp_cmdshell

    BULK INSERT? Or are you lamenting the absence of BULK EXPORT?

    I'm missing BULK EXPORT.

    Another point: even if you can do some OS-like stuff with SQL Server, the account that runs...

    God is real, unless declared integer.

  • RE: The Danger of xp_cmdshell

    I think the risk is reasonable, as long you are using an xp_cmdshell_proxy_account with minimal privileges.

    On the other side it would nice, if SQL Server would provide us with more...

    God is real, unless declared integer.

  • RE: Grant Fritchey 2016

    If he would have written a book, than he would have written it on a PC with Word or on a typewriter (if he is conservative).

    I don't believe that even...

    God is real, unless declared integer.

  • RE: How Far Have You Traveled for a SQL Saturday?

    ~95 km; Bonn (Germany); once a year (in June)

    God is real, unless declared integer.

  • RE: Partition elimination and variables

    You are right, if I declare the year column (and the partition function) with BIGINT instead of SMALLINT the implicit convertation will work and it scans only one partition

    God is real, unless declared integer.

  • RE: New Mobile Attack Vectors

    when I have to sent passwords per email, I try to include neither the username nor the app / site that uses the password and tell the person what it...

    God is real, unless declared integer.

Viewing 15 posts - 181 through 195 (of 201 total)