Forum Replies Created

Viewing 15 posts - 18,031 through 18,045 (of 49,552 total)

  • RE: Null values to = unique ID and allow No duplicates

    Why do you rather want a meaningless number over a null? If you're going to be fixing the data up surely a null is easier to find than a meaningless...

    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 attaching MdxStepByStep.mdf for SQL Server 2008 MDX Step by Step.

    When you attach, explicitly remove the ldf in the dialog (if they didn't provide it). Or use CREATE DATABASE ... FOR ATTACH_REBUILD_LOG

    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: Null values to = unique ID and allow No duplicates

    Lucasprss (6/17/2012)


    Tried the code above and got incorrect syntax near the keyword OF?

    Please, have a look at the unique index that I suggested. That way you can get your machine...

    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: Null values to = unique ID and allow No duplicates

    Lucasprss (6/17/2012)


    Thanks for your suggestion, I am getting a conversion error as my field is NVarchar and not a INT type. Any suggestions?

    Yes, look at my earlier post. No updates...

    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: Need an alternative

    Scalar udfs are incredibly slow. If you want to optimise the procedure you need to get rid of the UDFs, replace them with inline table-valued UDFs or subqueries.

    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: Null values to = unique ID and allow No duplicates

    Lucasprss (6/17/2012)


    My solution would be to use a sequential operator, so whatever = NULL would be changed to a sequential number that us as administrators would know was a bogus...

    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: Trigger to Prevent Insert,update,delete on whole database for Users

    What you need there is to set up an application role (if you can change the app to use it). There are other better solutions, but that's the easiest

    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: Trigger to Prevent Insert,update,delete on whole database for Users

    DML Triggers are per-table

    Security is best done with security settings. Remove the people who don't need to update from db_datawriter or give then db_denydatawriter. Why can't you make a separate...

    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: MCTS 70-433 (2008 v/s 2008R2 Differences)??

    None. 2008 and 2008 R2 are just about identical when it comes to the DB engine.

    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: Deleting Windows SQL Server 2008 from Windows XP SP3

    Depends why SQL was installed. If it was installed to support some other app that's on your laptop (and a lot of apps use SQL Server Express), then uninstalling 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: profiler : how to filter my PC events

    Unless the webserver passes something to SQL to identify the originator of the request, you can't in this case. As far as SQL (and hence profiler) is concerned, the connections...

    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: Schedule DBCC CheckDB

    And if you discard backups after a week, run checkDB more often than once a week.

    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: Memory Management Details

    SQLCrazyCertified (6/15/2012)


    GilaMonster (6/15/2012)


    SQLCrazyCertified (6/14/2012)


    Please correct me if I have mentioned anything incorrectly.

    Why do you specifically call out AWE on 32 bit SQL on 64 bit OS, but make no mention...

    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: Killing connections to a specific SQL Server table

    MysteryJimbo (6/15/2012)


    gary.morey (6/15/2012)


    I am the only user that does inserts / updates/ deletes to the table.

    All of the other users can only do SELECTs against the table....so this means that...

    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: Are the posted questions getting worse?

    Brandie Tarvin (6/15/2012)


    Craig, I read the "Devil" comment to refer to the evil commenters who make people post things like "please don't flame" and "put me over the whipping stool"....

    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 - 18,031 through 18,045 (of 49,552 total)