Forum Replies Created

Viewing 15 posts - 3,586 through 3,600 (of 6,395 total)

  • RE: DROP CONSTRAINT Code Problem

    Unsure on the way that MS's brain works, but I would be guessing that if they think that if the user has scripted the DROP and CREATE from within Object...

  • RE: DROP CONSTRAINT Code Problem

    Right so just did exactly the same again, but in 2012 is seems like they dont wrap the drop or create in IF EXISTS commands, and just does the ALTER...

  • RE: DROP CONSTRAINT Code Problem

    So far I believe it is only an issue on default constraints, as when you script a table for drop and create it picks up the schema of the table.

    I...

  • RE: Combining the Result from two different Queries

    There is a rouge comma in the SQL which you supplied on the first post at the end of the TotalSales word, should be able to remove that and it...

  • RE: DROP CONSTRAINT Code Problem

    Yep, noticed the type column while investigating it, always thought the two view where different in that way, obiously not.

    It is down to the schema which is why it wouldn't...

  • RE: DROP CONSTRAINT Code Problem

    Looks like an easy mistake, but you have [ ] around the object name in the IF EXISTS.

    Scrap that it does work with [ ] brackets, in the object_id...

  • RE: SQL Serevr Services

    Again same rule applies, it is a service running on the windows box, so you need the correct rights to stop/start/restart services at the OS level.

  • RE: indexes

    And how did you come up with that it would use the DeptID index and not one of the others?

  • RE: indexes

    Is this homework, interview questions?

  • RE: Combining the Result from two different Queries

    Nest the two statements as derived subqueries and add a joining criteria, then join the two together like below

    SELECT

    T1.[Total Sales £],

    T2.[Total Uninvoiced £]

    FROM

    (

    SELECT

    1 AS ID,

    Sum(TotalSales) as 'Total Sales £' FROM...

  • RE: SQL Jobs taking more time to execute- help me to fix this issue

    Hi, welcome to SSC

    Your post is a little vague and we will need a lot more detail than that, there could be 1million and 1 things that need looking at.

    Take...

  • RE: What does you actually mean by Logical Write?

    The writing of the page from memory to disk.

    All writes happen in memory, then internal processes within SQL take the written to pages from memory and push them to disk.

  • RE: What does you actually mean by Logical Write?

    Logical is anything to do with memory, so a logical write is writing to the page in memory.

  • RE: index seek and scan

    No they are two completly different indexes, one will work if you only ever search on the ID but want to show CH, NA in the result set the other...

  • RE: Login Access levels

    But you wanted to list logins which dont have a role assigned to them, which is why they are null.

    This query does not list logins which are not assigned any...

Viewing 15 posts - 3,586 through 3,600 (of 6,395 total)