Forum Replies Created

Viewing 15 posts - 121 through 135 (of 1,131 total)

  • RE: Setting Access rights to DB

    Since the SQL Server belongs to the client, the client will have at least one login with SQL Server sysadmin rights, and a sysadmin login cannot be restricted, there is...

    SQL = Scarcely Qualifies as a Language

  • RE: Filter database list in SSMS

    FYI: If you "DENY VIEW ANY DATABASE" for a login, under the SSMS object browser, only the master and tempdb databases will appear.

    SQL = Scarcely Qualifies as a Language

  • RE: Filter database list in SSMS

    "Is that possible?" No, restricting the list of database displayed by SSMS is not supported. There are many requests to restrict the list of databases to only...

    SQL = Scarcely Qualifies as a Language

  • RE: Order by Clause does not work with Select * into #temp statement

    Sorry,my mistake - stated "RANK", which will not work ! You need to use ROW_NUMBER.

    SELECTROW_NUMBER ( ) OVER (ORDER BY name ) AS NameId

    ,name

    INTO#temp

    FROMsys.objects

    WHEREname NOT LIKE '#%'

    SELECT*

    FROM#TEMP

    ORDER BY NameId

    SQL = Scarcely Qualifies as a Language

  • RE: Order by Clause does not work with Select * into #temp statement

    Rather than try to figure out when identity values will or will not be sequentially assigned based on an ORDER BY, suggest using RANK, which always produces a sequence with...

    SQL = Scarcely Qualifies as a Language

  • RE: Order by Clause does not work with Select * into #temp statement

    The case that the rows are inserted in an order that matches a specificed "order by" clause is coincidental and is documented in Books OnLine

    When used together with a SELECT...INTO...

    SQL = Scarcely Qualifies as a Language

  • RE: SQL View

    Jeff Moden's comment got me thinking about a similar question.

    Based on the business rules, if "Peter" considers "Paul" a "friend" , does this mean always mean the reverse is true...

    SQL = Scarcely Qualifies as a Language

  • RE: Symmetric Multi Processors

    Have you set the processor affinity for intranet site? See http://www.iishacks.com/index.php/2007/05/18/setting-processor-affinity-permanently/

    Once you have determined which cpu to use for the intranet site,then you can un-assign this CPU from SQL Server.

    in...

    SQL = Scarcely Qualifies as a Language

  • RE: Multiple rows to multiple columns

    Just a matter of reaching into the bag of tricks:

    Set up a test environment - note that the ImageId column allows gaps:

    CREATE TABLE MyImage

    ( ImageIDINTEGER NOT NULL

    , ImageName VARCHAR(255) NOT...

    SQL = Scarcely Qualifies as a Language

  • RE: Where are SQL 2000 Jobs stored on Hard DIsk?

    Your new SQL Server is at a lower version than the old SQL Server and database restores cannot be performed to a lower version.

    You can get the version of the...

    SQL = Scarcely Qualifies as a Language

  • RE: After restore how the way @@DBTS changes?

    This behavior is documented by MS titled "Backing Up and Restoring a Database (Sync Services)" at http://msdn.microsoft.com/en-us/library/bb726016.aspx

    SQL = Scarcely Qualifies as a Language

  • RE: Retrieve top 6 ordered Items

    To get the top 6 other products on the same order as a given product:

    SELECTtop 6

    ,ProductOrderOther.ProductId

    ,COUNT(*)as ProductOrderOtherCnt

    FROMOrderItems

    JOINOrderItemsAS ProductOrderOther

    on ProductOrderOther.OrderId = OrderItems.OrderId

    and ProductOrderOther.ProductId OrderItems.ProductId

    WHEREOrderItems.ProductId = 123

    GROUP BY ProductOrderOther.ProductId

    ORDER...

    SQL = Scarcely Qualifies as a Language

  • RE: SQL View

    In May 2009,Adam Machanic had a contest to develop the most efficient solution to a problem named "Grouped String Concatenation" that corresponds to your problem. The contest and solutions...

    SQL = Scarcely Qualifies as a Language

  • RE: checking constraint I think

    so are you saying that I need to call this trigger while updating the tblJobsBR and tblJobs, not quite sure how to do that.

    No you do not need to...

    SQL = Scarcely Qualifies as a Language

  • RE: checking constraint I think

    How can I ensure the once the ActualStartDate is entered i.e. Is Not NULL anymore the ActualStartTime is also entered.

    This can be enforced with a check constraint

    ALTER TABLE tblJobsBR

    ADD...

    SQL = Scarcely Qualifies as a Language

Viewing 15 posts - 121 through 135 (of 1,131 total)