Forum Replies Created

Viewing 15 posts - 44,026 through 44,040 (of 49,552 total)

  • RE: Converting varchar to datetime

    Why the cursor? That whole thing could be replaced by a single statement.

    select CONVERT(datetime, FechaRecepcion, 103)

    from Ejemplares

    where ISDATE(FechaRecepcion) = 1

    The reason for what you're getting though is that the cursor...

    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: Parameter Sniffing with sp_ExecuteSQL ?

    rbarryyoung (10/3/2008)


    GilaMonster (10/3/2008)


    That looks like the estimated plan. Is there any possibility of seeing the actual plan please?

    Probably not from the production environment in the time that I have left...

    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: Does the physical position of FK columns matter?

    No. The declared order of columns has no effect on anything other than the order they're returned in a select * query. The order defined doesn't even define the physical...

    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: Parameter Sniffing with sp_ExecuteSQL ?

    That looks like the estimated plan. Is there any possibility of seeing the actual plan please?

    The only parameter I can see in there is @collectionGuid. Will vastly different numbers of...

    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: When log files attack

    binaryspiral (10/3/2008)


    Quick Question: If you don't have Enterprise Manager, how do you work with your databases?

    SQL Server Management Studio. I only have SQL 2005 and 2008 instances. Enterprise manager doesn't...

    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: Question on 2008 BI Beta Exam: 71-452

    Odd. While I had the exam crash and restart, it wasn't slow at all. At most a couple secs between questions.

    I'm writing 71-433 next week. Will see if it's...

    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: mysterious database file

    If that is your log file, then I would hazard a guess that your DB is in full recovery model and you have no log backups.

    Read this - http://sqlinthewild.co.za/index.php/2008/07/23/recovery-model-and-transaction-logs/

    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: regarding primary key

    the 'fullname', if you will, of each primary key is the name of the table plus the column name.

    The name of the primary key is whatever you specify it to...

    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: SQL Server 2005 on VMWARE

    As far as I'm aware, the support policy for SQL in a virtual environment is still as documented in the following kb article

    http://support.microsoft.com/kb/897615

    I know SQL 2008 is fully supported on...

    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: Update Multiple Base Tables

    chakri002 (10/3/2008)


    Use Instead of Triggers on the Views to Delete or Update Records directly from the view.

    You did notice that the thread you answered was 2 years old?

    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: The size of Tempdb

    carlos.tapadinhas (10/3/2008)


    Hi again,

    How can i know which tables are created on tempdb and aren't used anymore, in sysobjects?

    Answered here:

    http://www.sqlservercentral.com/Forums/Topic580338-146-1.aspx

    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: Sysobjects Tempdb

    Temp tables will be automatically dropped when the connection that created them is closed. You don't have to (and in fact can't) manage the tables in TempDB directly.

    2005 does cache...

    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: Oracle SQL*Plus to T-SQL

    There's no direct equivalent. SQL doesn't have the concept of a row's position in the table.

    You can use row_number(), but you need to specify the ordering for the allocation of...

    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: Problem with SQL function

    This one's pretty good. Read the comments on the blog post too, as the function needs a table creating.

    http://philcart.blogspot.com/2007/06/split-function.html

    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: Parameter Sniffing with sp_ExecuteSQL ?

    I would imagine so. It's a cached plan with parameters, not much different from a stored proc.

    Fixes would be the same as for a stored proc, use variables instead of...

    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 - 44,026 through 44,040 (of 49,552 total)