Forum Replies Created

Viewing 15 posts - 961 through 975 (of 1,271 total)

  • RE: Just for fun Lotto SQL

    I would definitely change your data model. It's a lot easier and quicker to concatenate values into a string than it is to unconcatenate (is that a word?) them.

    Plus what...


    My blog: SQL Soldier[/url]
    SQL Server Best Practices:
    SQL Server Best Practices
    Twitter: @SQLSoldier
    My book: Pro SQL Server 2008 Mirroring[/url]
    Microsoft Certified Master: SQL Server, Data Platform MVP
    Database Engineer at BlueMountain Capital Management[/url]

  • RE: Lock and return row X from table

    If you really must have separate queries updateing the a single record in the table simultaneuosly, for the status field, instead of giving it a status of say 1 for...


    My blog: SQL Soldier[/url]
    SQL Server Best Practices:
    SQL Server Best Practices
    Twitter: @SQLSoldier
    My book: Pro SQL Server 2008 Mirroring[/url]
    Microsoft Certified Master: SQL Server, Data Platform MVP
    Database Engineer at BlueMountain Capital Management[/url]

  • RE: Connecting via DOS

    Probably not relevant in this instance, but worth mentioning:  If the SQL Server is in a different domain than your Windows account, there must be a trust between the SQL Server's...


    My blog: SQL Soldier[/url]
    SQL Server Best Practices:
    SQL Server Best Practices
    Twitter: @SQLSoldier
    My book: Pro SQL Server 2008 Mirroring[/url]
    Microsoft Certified Master: SQL Server, Data Platform MVP
    Database Engineer at BlueMountain Capital Management[/url]

  • RE: 2000 to 2005

    I'd be surprised if someone hasn't already written and posted that script somewhere. I would check Google first.


    My blog: SQL Soldier[/url]
    SQL Server Best Practices:
    SQL Server Best Practices
    Twitter: @SQLSoldier
    My book: Pro SQL Server 2008 Mirroring[/url]
    Microsoft Certified Master: SQL Server, Data Platform MVP
    Database Engineer at BlueMountain Capital Management[/url]

  • RE: Sql Dev Pro

    In my opinion, it is a bad idea to let a tool move things into production for you. Every place I have ever worked as DBA, the developers were required...


    My blog: SQL Soldier[/url]
    SQL Server Best Practices:
    SQL Server Best Practices
    Twitter: @SQLSoldier
    My book: Pro SQL Server 2008 Mirroring[/url]
    Microsoft Certified Master: SQL Server, Data Platform MVP
    Database Engineer at BlueMountain Capital Management[/url]

  • RE: Problem with a denormalizing proc to generate a textual index.

    Yes, it sounds like a good idea to me.


    My blog: SQL Soldier[/url]
    SQL Server Best Practices:
    SQL Server Best Practices
    Twitter: @SQLSoldier
    My book: Pro SQL Server 2008 Mirroring[/url]
    Microsoft Certified Master: SQL Server, Data Platform MVP
    Database Engineer at BlueMountain Capital Management[/url]

  • RE: Connecting via DOS

    Osql can connect to any database that the user has been granted access to.


    My blog: SQL Soldier[/url]
    SQL Server Best Practices:
    SQL Server Best Practices
    Twitter: @SQLSoldier
    My book: Pro SQL Server 2008 Mirroring[/url]
    Microsoft Certified Master: SQL Server, Data Platform MVP
    Database Engineer at BlueMountain Capital Management[/url]

  • RE: CDO mail did not work

    Be sure to change the cdoSMTPServer proeprty to your SMTP mail server. Your code shows it as still using your.server.com

    EXEC @hr = sp_OASetProperty @config, 'Fields(cdoSMTPServer)', 'your.server.com' -- SMTP Server


    My blog: SQL Soldier[/url]
    SQL Server Best Practices:
    SQL Server Best Practices
    Twitter: @SQLSoldier
    My book: Pro SQL Server 2008 Mirroring[/url]
    Microsoft Certified Master: SQL Server, Data Platform MVP
    Database Engineer at BlueMountain Capital Management[/url]

  • RE: NOT EXISTS vs NOT IN

    What the optimizer recognizes is that the table(s) involved in the subquery could have changes committed during the execution of the query and therefore the result set could be different...


    My blog: SQL Soldier[/url]
    SQL Server Best Practices:
    SQL Server Best Practices
    Twitter: @SQLSoldier
    My book: Pro SQL Server 2008 Mirroring[/url]
    Microsoft Certified Master: SQL Server, Data Platform MVP
    Database Engineer at BlueMountain Capital Management[/url]

  • RE: NOT EXISTS vs NOT IN

    Ken C., you are incorrect. When using Not In Or In with a subquery, SQL Server does not execute the subquery and store the dataset for comparison against the main...


    My blog: SQL Soldier[/url]
    SQL Server Best Practices:
    SQL Server Best Practices
    Twitter: @SQLSoldier
    My book: Pro SQL Server 2008 Mirroring[/url]
    Microsoft Certified Master: SQL Server, Data Platform MVP
    Database Engineer at BlueMountain Capital Management[/url]

  • RE: Problem with a denormalizing proc to generate a textual index.

    First of all, you can use local temp tables in dynamic sql.

    Secondly, if you really want to use a global temp table, add a column called SPID and insert @@SPID...


    My blog: SQL Soldier[/url]
    SQL Server Best Practices:
    SQL Server Best Practices
    Twitter: @SQLSoldier
    My book: Pro SQL Server 2008 Mirroring[/url]
    Microsoft Certified Master: SQL Server, Data Platform MVP
    Database Engineer at BlueMountain Capital Management[/url]

  • RE: SQL 2000 TSQL question

    Or store it as an integer like the others suggested and then add a computed column that formats it in the format you want

    Alter

    Table


    My blog: SQL Soldier[/url]
    SQL Server Best Practices:
    SQL Server Best Practices
    Twitter: @SQLSoldier
    My book: Pro SQL Server 2008 Mirroring[/url]
    Microsoft Certified Master: SQL Server, Data Platform MVP
    Database Engineer at BlueMountain Capital Management[/url]

  • RE: 2000 to 2005

    You can only do that with replication going from 2005 to 2000. SQL 2000 doesn't know about the new datatypes, so it can't transform the data types. SQL 2005 still...


    My blog: SQL Soldier[/url]
    SQL Server Best Practices:
    SQL Server Best Practices
    Twitter: @SQLSoldier
    My book: Pro SQL Server 2008 Mirroring[/url]
    Microsoft Certified Master: SQL Server, Data Platform MVP
    Database Engineer at BlueMountain Capital Management[/url]

  • RE: Creating Extended Stored Procedure

    Step 1. Look up the following in Books Online: extended stored procedures [SQL Server], creating


    My blog: SQL Soldier[/url]
    SQL Server Best Practices:
    SQL Server Best Practices
    Twitter: @SQLSoldier
    My book: Pro SQL Server 2008 Mirroring[/url]
    Microsoft Certified Master: SQL Server, Data Platform MVP
    Database Engineer at BlueMountain Capital Management[/url]

  • RE: Sql Dev Pro

    Considering that the website has been dead for quite some time, probably not.

    I've never used SQL Dev Pro, so you would have to tell me what it does before I...


    My blog: SQL Soldier[/url]
    SQL Server Best Practices:
    SQL Server Best Practices
    Twitter: @SQLSoldier
    My book: Pro SQL Server 2008 Mirroring[/url]
    Microsoft Certified Master: SQL Server, Data Platform MVP
    Database Engineer at BlueMountain Capital Management[/url]

Viewing 15 posts - 961 through 975 (of 1,271 total)