Forum Replies Created

Viewing 15 posts - 2,971 through 2,985 (of 3,658 total)

  • RE: The insult before Christmas

    CROSS JOINING? 

    Mummy, what's a werewolf?

    Shut up and comb your face!

  • RE: The insult before Christmas

    SELECT SUM(Hair)

    FROM dbo.AspiringDBA

    Produces the same results that it did 15 years ago.  The difference comes when you do

    SELECT Location,SUM(HAIR)

    FROM dbo.AspiringDBA

    GROUP BY Location WITH ROLLUP

    ..and see NULL against head.

    Actually I'm doing...

  • RE: The insult before Christmas

    Do you ever get the feeling that the law is to enrich lawyers and tax law is to enrich accountants?

    Someone once wrote that the upper classes make illegal those pleasures...

  • RE: Transaction log truncation

    CHECKPOINT

    GO

    BACKUP LOG YourDatabase WITH TRUNCATE_ONLY

    CHECKPOINT

    GO

    USE YourDatabase

    GO

    EXEC sp_helpfile

    One you have run the above you should be able to use your DBCC SHRINKFILE on the files listed.

  • RE: SSWUG is it a real USER GROUP or not ??

    Its a bit off topic but a similar problem exists if you are trying to sell open-source solutions.

    Firstly, open-source is mistakenly seens as "free" software.

    Secondly, if the software is cheap...

  • RE: The insult before Christmas

    Look on the bright side Frank.  Germans have been voted the most desirable tourists in Europe and British the least!  This means an extra £1,000 on the cost of a holiday...

  • RE: common Problem with case...when ?

    If you can identify a particular column that will cause a negative result then simply multiply your entire formula by

    sign(sign(MyNegativeColumn)+1)

    The sign function returns

    • December 3, 2004 at 8:34 am

      #532474

  • RE: SSWUG is it a real USER GROUP or not ??

    The defense for this was that SSWUG were acting as a collation service so that all relevant links were present within their site.  There is something to be said for...

  • RE: The insult before Christmas

    Here in the UK anti-fit jeans are being marketed

    I've been wearing them for decades and I can buy 6 pairs for the price of...

  • RE: Check if a file exist in a Query!

    master..xp_fileexist 'c:\test'

  • RE: Odd Date-Country problem for sa account

    I don't have a SQL7 box to hand but in 2000 you do the following within Enterprise Mangler

    • Right click on the server and select properties
    • Choose the "Server settings" tab
    • Under default...
  • RE: Permissions on Objects

    Grant permissions to a role rather than a user and then assign users to the role.  A user is more likely to leave than a role is to become obsolete.

    USE...

  • RE: ascribe dbo to login ( in place of sa)

    try exec sp_changedbowner 'domain\user'

    The thing with sp_addalias is that many logins can be aliased to one user.

  • RE: Triggers and ASP pages

    Does your ASP page use SQL Authentication or Windows Authentication?

    I've found that in some cases I have to fully qualify a stored procedure name with the database.owner.storedprocedure.

  • RE: ascribe dbo to login ( in place of sa)

    exec sp_addalias 'domain\username' , 'dbo'

    These days the correct method is to make your user a member of the db_owner role.

    The downside (and I use the term loosely) is that they...

Viewing 15 posts - 2,971 through 2,985 (of 3,658 total)