Forum Replies Created

Viewing 15 posts - 6,346 through 6,360 (of 7,187 total)

  • RE: Problem adding the securityadmin role to the sa account (2005)

    Chris

    I think the answer is "just because".  sa has fixed permissions and therefore you can't add it to or remove it from fixed server roles, hence the error message.

    John

  • RE: Problem adding the securityadmin role to the sa account (2005)

    Chris

    Yes, sa can perform any task that a member of security admin can (and more).  Mind you if your thrid party product requires the sa account, then it's probably time...

  • RE: SQL Authentication - Windows Login

    Torben

    Do you mean enter the credentials in the same way as a SQL login?  I don't think that's possible.

    John

  • RE: SQL Authentication - Windows Login

    Torben

    Right-click on your Query Analyzer icon and choose Run As.  You can then enter the security details for the account you want to connect as.

    John

  • RE: Updating a table using another

    Thomas

    You could do it in one statement using dynamic SQL, but I think it's more elegant to do it like I've done below.  Why do you prefer the single query...

  • RE: Why does this stall?

    Marie-Sofie

    Does this get you any closer?  I've left it to you to do the manipulation of the figures.  Obviously it's not tested since there was no sample data, and performance...

  • RE: Rebuild non-clustered index into clustered

    Andrew

    From Books Online:

    ALTER INDEX cannot be used to repartition an index or move it to a different filegroup. This statement cannot be used to modify the index definition, such as...

  • RE: Tables with Foreign key reference

    Delete the data in the child table that references the data you want to delete from the parent table.  Then you will be able to delete the parent data.  Alternatively,...

  • RE: Incrementing Counter - reset on "BY" Group

    Ben

    Can you adapt this example from Books Online to work in your environment?

    John

    USE AdventureWorks;
    GO
    SELECT c.FirstName, c.LastName
        ,ROW_NUMBER() OVER
        (PARTITION BY PostalCode ORDER BY SalesYTD...
  • RE: join

    First, don't mix old-style and ANSI join syntax.  Rewrite something like this:

    select Distinct (e.empID),empName,lc.CountyName

    from Indicator I

    inner join emp e on e.jobid...

  • RE: Incrementing Counter - reset on "BY" Group

    Ben

    I think the ROW_NUMBER function is exactly what you're looking for here.

    John

  • RE: Moving Non Cluetered Indexes

    Jeetendra

    I tried once to write a script that would generate scripts for all indexes in a database, but I gave up.  I'm not saying it isn't possible - search the...

  • RE: Moving Non Cluetered Indexes

    Jeetendra

    You can either do them one by one in Enterprise Manager (let me know if you need me to explain how), or you can script out all your non-clustered indexes,...

  • RE: Left join NULLs

    Patrik

    As far as I can tell, Logged Value corresponds to ml.MeasurementLogValue.  But what to Calc1 and Calc2 correspond to?

    John

  • RE: Insert into Table

    What happens if you run the job not at 1am (I assume that's what you mean by 1pm in the morning), but at the same time you try to run...

Viewing 15 posts - 6,346 through 6,360 (of 7,187 total)