Forum Replies Created

Viewing 15 posts - 466 through 480 (of 902 total)

  • RE: index in sql server

    SQL server doesnt automatically create indexes, except in certain cicumstances such as when you define Primary Key, Foreign Key and Unique Key's.

    All others have to be manually generated by developers.

  • RE: Advanced backup solution - how do we make sure we dont delete the wrond backup file?

    Most companies run the SQL backups then have the backups committed to Tape or transfered to off site repositories.

    Previous employers I've worked with have then generally run quarterly DR tests...

  • RE: FULL text search

    As anthony thought Full Text Search doesnt handle Leading wildcards, only trailing wild cards which may explain the differences in the results being returned (Unless this has changed in SQL...

  • RE: Was the "Commands Completed Successfully" message replaced by "Row(s) affected"?

    As far as I can remember this is standard response.

    Although you can specfically set the SET NOCOUNT option under Options->Query Execution->SQL Server->Advanced

    Is it possible you had this checked in previous...

  • RE: Need a TSQL Book that I can expertise in writing Tsql

    Itzik Ben-Gan's T-SQL Fundamentals is quite good, and it has quite a few examples at the end of each chapter that also has the solutions so you can match it...

  • RE: Request

    Nice article, I dont see the problem, as others have posted links to blogs etc.

    In regards to the actual blog, it rings a few bells with something I'm seeing...

  • RE: TSQL question -

    Thanks for the explanation Gail, I can sort of understand that now.

  • RE: Best Way to avoid duplicate rows insertion

    If the data is already in the database then you should be able to do

    WITH CTE

    AS

    (

    Select

    ROW_NUMBER() OVER(Partition by UniqueColumn ORDER BY UniqueColumn) rn

    ,<columnlist>

    From myTable

    )

    Insert into BULK Desttable

    Select <colunlist>

    from...

  • RE: TSQL question -

    Correct you do get a No predicate join warning on the join in the Execution plan, and the predicate on the #tmp table shows as tempdb.dbo.#tmp.myColumn=tempdb.dbo.#tmp.myColumn.

    It seems SQL is trying...

  • RE: TSQL question -

    I'm curious as well it seems that if the column is in the outer Table it allows the IN (SELECT) to work

    eg

    CREATE TABLE #Tmp (

    MyColumn Int Identity(1,1),

    MyDescription varchar(100)

    )

    Create Table #Tmp2...

  • RE: Optimization advice for huge tables

    funkseo (12/11/2012)


    I modified as following and I think it's little bit changed. I removed tep tables and use built-in paging.

    ALTER PROCEDURE [dbo].[spGetSiteListFromTagPager]

    @Tag nvarchar(64),

    @page int = 0

    AS

    DECLARE @TagID int

    SET @TagID =...

  • RE: merge statement - to get a row count

    Thanks Paul,

    It just seemed a little overkill for this scenario, but I have seen a lot of 'funky' stuff done with the outer insert on a merge though it...

  • RE: Not in sql error

    Shouldnt the NOT IN be in the Where clause as the column you are filtering on is not directly related to the Join.

  • RE: merge statement - to get a row count

    Paul,

    Is there a reason you dont use the native OUTPUT INTO @C?

  • RE: Precendence Constraint Logical AND/OR Confusion

    I'm familair with the constriants, everything looks like it should send the final email or an error email.

    The problem is that if you are logged on as you it will...

Viewing 15 posts - 466 through 480 (of 902 total)