Forum Replies Created

Viewing 15 posts - 6,766 through 6,780 (of 7,187 total)

  • RE: Pro and Con of Auto Shrink and unused trans log and data file

    Frances

    To see the Taskpad View, click on the database in Enterprise Manager, then right-click and choose View and then Taskpad.  Unused DB and log space are the amount of space...

  • RE: Cluster - Domain communication

    Dan

    In a cluster environment, the operating system regularly polls SQL Server to check that it is still alive.  I think it does this by connecting as a Windows account and...

  • RE: Stored-Procedure vs Views

    It all depends what the requirement is.  A view can be thought of as a virtual table.  It can be queried, joined to other tables or views and, under some...

  • RE: Multiple Distributors

    MK

    As far as I know, this isn't possible.  Just as a matter of interest, why do you want to do it?

    John

  • RE: T-SQL Coding Standard

    Casper

    I think the fact that you have to register to download your document is putting a lot of people off.  Search these forums for "coding standards" - you will find...

  • RE: Some characters not permitted in columns

    You should be able to do that with a trigger.  Unfortunately I'm not the person to ask about that.  I recommend that you spend half a day reading about triggers...

  • RE: Tricky Select query

    Not the most elegant solution, but it works...

    John

    --Data

    create

    table #John (data varchar(20),

  • RE: Some characters not permitted in columns

    If you have already done the update, you will not be able to do what you have been asked.  You'd have to restore a copy of the database from a...

  • RE: Error 21776:[SQL-DMO]

    Mitesh

    I think you've stumbled on one of the pitfalls of using Enterprise Damager: that you have to refresh before you do almost anything.

    John

  • RE: Evaluating Derived Columns within a Select

    Jude

    I think all you need to do is turn your IIF statement into a CASE statement (look this up in Books Online) and alias your subquery, thus:

    ...

    ResearchStudent.EnrollmentCategory, q.Suspension

    FROM...

  • RE: Help with Query Design?

    Sushila

    Yes - you're right - I hadn't noticed the CASE statement higher up that traps the 0.

    John

    [Edited when realisation dawned on me!]

  • RE: New Login - SQL Server 2005

    Run the following query, which will generate the SQL to change the permissions all at once.  Be careful, because if you have any DENYs on any of the views, they...

  • RE: SQL Problem requires a solve ???

    If I understand your requirement correctly, you're looking for a query that will return all TransBaskets that contain the specified two items.  This should do it for you:

    --Create the table...

  • RE: Help with Query Design?

    Mitesh

    This part of your query worries me:

    ((ISNULL(SUM(InvoiceTotals.[Total Net]), 0) -

    ISNULL(SUM(InvoiceTotals.[Total CostBC]), 0)) /

    ISNULL(SUM(InvoiceTotals.[Total Net]), 0)) * 100

    If all the values in [Total Net] are NULL, then you're going to have a...

  • RE: Some characters not permitted in columns

    The REPLACE statement is what you are looking for.  You can replace certain characters with an empty string to get rid of them.  Also, you can nest the statements to...

Viewing 15 posts - 6,766 through 6,780 (of 7,187 total)