Forum Replies Created

Viewing 15 posts - 1,291 through 1,305 (of 6,036 total)

  • RE: What Happens When Naming Types

    Steve Jones - SSC Editor (7/15/2016)


    It's a strange inconsistency, in my mind. We put all objects in sys.objects, except a few like Types. So we can have naming collisions. If...

  • RE: Filter based on DB name (ID)

    There is dbid column in sys.dm_exec_sql_text

  • RE: Find Min(), Max() value from a table

    This should be faster (if your WHERE clause indeed includes first columns from the index where Date is mentioned):

    SELECT TOP 1 @MaxDate = Date FROM Table1

    WHERE {Conditions on init...

  • RE: Reducing the hash match inner join cost

    rathimittha.mb (7/21/2016)


    Thank you Grant. I guess I'l need to figure out a way to get delta(changed) data rather than the entire set

    Thanks Again !!

    I'd suggest triggers on the tables FOR...

  • RE: Reducing the hash match inner join cost

    rathimittha.mb (7/20/2016)


    I am using this query to build a small datawarehouse. And this query is supposed to run 3 times a day.

    ...

    Hence, the reason for so many a rows.

    Then, there...

  • RE: Reducing the hash match inner join cost

    Who is that poor guy who's meant to read through those 300k lines of this report?

    Considering 60 lines per screen it's 5 thousand of screens to look through.

    And if it's...

  • RE: Table variable and query help

    koti.raavi (7/20/2016)


    How can I check table variable in tempdb?

    SELECT *

    INTO #TempTables

    FROM tempdb.sys.objects o

    WHERE o.type = 'U'

    GO

    DECLARE @Table TABLE (id INT, Name NVARCHAR(50))

    SELECT *

    FROM tempdb.sys.objects o

    WHERE o.type =...

  • RE: Table variable and query help

    Grant Fritchey (7/20/2016)


    e expressions can be reused multiple times in a query or even called recursively, as Gail already noted. Derived tables are just a query that gets treated as...

  • RE: SQL 2008 update

    ionas (7/19/2016)


    I am not sure I understand the idea behind. Robocopy is a copy tool. The point is how to use log shipping to SQL express versions.

    You do BACKUP LOG...

  • RE: Stored procedures and Creating tables. (Problem).

    ben.brugman (7/19/2016)


    I tried a number of setup's. Temp tables were slower than persistent tables.

    That's odd.

    It should not be like that.

    Tempdb is normally setup to be the fastest database in...

  • RE: Stored procedures and Creating tables. (Problem).

    ben.brugman (7/19/2016)


    The information of a folder is aquired using xp_cmdShell.

    Reading of individual files is again done using xp_cmdShell.

    After that the file is parsed into independend fields.

    This involves splitting the string...

  • RE: SQL 2008 update

    ionas (7/19/2016)


    Log shipping is not available to SQL express editions

    You can still backup and restore logs.

    Just ship to other sites them using different tools, say, robocopy.

  • RE: "Cannot resolve the collation conflict..." issue in the where clause

    You must use

    'TW' COLLATE {same collation as defined for PROVID}

  • RE: Stored procedures and Creating tables. (Problem).

    ben.brugman (7/19/2016)


    Sergiy (7/18/2016)


    Create and delete static tables on fly is one of the worst possible ways to do things in SQL Server.

    Why ?

    Because it's not a single-user environment.

    Because a process...

  • RE: SQL 2008 update

    You better use log shipping.

Viewing 15 posts - 1,291 through 1,305 (of 6,036 total)