Forum Replies Created

Viewing 15 posts - 7,396 through 7,410 (of 7,465 total)

  • RE: help selecting sums from two similar tables

    Jon,

    be aware of the fact that UNION sorts out duplicate rows ! So if you know (like you said) "Records can exist in either table but won't exist in both...

  • RE: help selecting sums from two similar tables

    If data does not exist in both tables on [year_month] basis you can avoid the outer-grouping from jpipes solution.

    btw could you give a litle feedback on the percentage of...

  • RE: help selecting sums from two similar tables

    Maybe if you replace columns thismonth and thisyear by convert(int, convert(char(6),getdate(),112)) as ThisYearMonth you could gain on grouping/sorting. You could also test performance with full-outer-join. (might be bit messy select-clause)

    ...

  • RE: Change DB Owner

    If you change db_owner, EM needs a full refresh (i.e. disconnect/connect) to get the correct info. EM is nice, but it has some leaps.

  • RE: Update gone mad

    I guess this is a nice on where there is no functional need for NULL and a the (space) might be defaulted to (zero).

    Supposing there is a tablescan needed...

  • RE: Views vs Queries

    views are mainly there for security reasons. I prefer to use views for frequently (to be) used joins, so join-predicates are predefined. Stored procedures on the other hand can provide...

  • RE: Clustered SQL Server backup & local drives

    OK, this all said. The quizz question was regarding EM. So for most of us points not won. btw that's not equal to points lost

  • RE: DBAs versus SQL Server

    It depends on the role the dba is supposed to perform. I my case I'd describe it as firefighting. Every day is a supprise.

    I manage +- 60...

  • RE: Create Database Failed

    don't position yourself (with EM) at the model-db when you want to create a new db.

  • RE: Why can't a Windows Group own a job?

    I guess because groups don't have a loginname. Add it to the ms-sql-wishlist.

  • RE: Creating a user

    are you running in mixed / nt / sql security mode ? (check in Enterprise manager / server / properties / security) If nt-security is enabled or mixed-mode , you...

  • RE: Is the Schema Still Needed?

    dbo = dust between objects 😉

    It is annoying that members of the db_owner group don't create dbo-objects by default. They are not adapted to always mention the object-schema, but if...

  • RE: Is the Schema Still Needed?

    I guess problems with schema started when ms introduced a "everyone" schema : DBO.

    Making a "transparant" option is a terrific way to mistify objects.

    Backside of this implementation is (of course)...

  • RE: Help Debug Statistics Script

    my first impression :

    "SELECT @sSQL = 'EXEC ' + @srvName + '.master.dbo.DatabaseSummaryInfo'" would mean you have defined all @srvName-servers as linked server on the server where you run the script.

    I...

  • RE: Why is my database so Large?

    Use clustering indexes so a dbcc dbreindex also affects your datapages. check your fillfactor settings. run sp_statistics and updateusage to get correct numbers. check BOL.

Viewing 15 posts - 7,396 through 7,410 (of 7,465 total)