Forum Replies Created

Viewing 15 posts - 33,076 through 33,090 (of 49,552 total)

  • RE: Error

    Where is that used in the function? The only table I can see you reference in the function anywhere is v_accounts_info_table.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Common Table Expressions - who's responsible?

    A CTE, despite its name, is not a table. It's a named select statement. Think of it as a temporary view, defined and used within the same SQL query.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Error

    There's a difference between @v_accounts_info_table, which is defined as a VARCHAR(4000) and v_accounts_info_table, which is a table you are selecting from, updating and inserting into

    Table definitions please, of all tables...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Rebuild index versus Update Statistics

    Index rebuilds (not index reorganise) always do a fullscan update of the statistics. The entire index has to be read to rebuild it, so there's no reason to do a...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Error

    b.noof (5/5/2010)


    Sure i want your help

    what i have to do ??

    i give the function & the table

    I've asked twice already for the table definition (which I still don't see),...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Error

    UPDATE (and insert and delete) are not allowed within a SQL function. A function cannot make changes to the database.

    I assume you don't want us to help you rewrite it?

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Applying multiple columns in one index - what is recommended

    Yes, you can use the missing index DMVs, however less logic goes into producing those recommendations than the recommendations produced by DTA. Neither should be trusted without verification, all suggestions...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Index Scan vs Index Seek

    Yes.

    A table scan (only present when you don't have a clustered index) is a scan of the data pages of the table.

    An index scan reads the leaf pages of the...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Transaction Log Suggestions

    Jason P. Burnett (5/4/2010)


    True however, I am not sure that would cause any more growth in your log than suspending your log backups during the duration of the full backup.

    Correct.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Database in suspect mode

    karthik -450760 (5/4/2010)


    Trying using DBCC Checkdb in the database..

    It won't be possible to run checkDB while the database is suspect. That can only be run if the database is online/emergency....

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Database in suspect mode

    You won't be able to run a backup with the database suspect.

    Check the SQL error log, there will be some message in there saying why the database is suspect. Post...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: How do I attach a .mdf if I don't have a .ldf file?

    There's a kb article on it iirc. I ran into that back when I first installed Vista (year and a half ago). Almost forgot about it until now.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Transaction Log Suggestions

    Maninder S. (5/4/2010)


    Also Pl do check that your jobs do not OVERLAP.. i.e schedule them at diff times.. e.g : if you do a full backup of all the databases...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Transaction Log Suggestions

    Interval - it depends. What's the maximum amount of data loss allowed in the case of a disaster? Log backup interval should be lower than that.

    Each backup to its own...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Error

    Firstly, that syntax is still incorrect.

    In SQL, a SET cannot reference a table, unless it has is a subquery complete with SELECT and FROM

    EXCEPTION WHEN OTHERS is not SQL...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass

Viewing 15 posts - 33,076 through 33,090 (of 49,552 total)