Forum Replies Created

Viewing 15 posts - 1,306 through 1,320 (of 1,479 total)

  • RE: Select Procedure

    michael.breen (12/17/2008)


    Adi

    Sorry if I seam very stupid as this is maybe straight forward for you but i have made the changes:

    You didn't seam stupid and I hope that you...

  • RE: Select Procedure

    michael.breen (12/17/2008)


    This didnt work any other ideas?

    Mick

    You didn't specify what didn't work. I guess that the select statement was executed, but you didn't get any results. You...

  • RE: Select Procedure

    NULL is an anknown value, so when ever you compare null to another value, the results will be falls. For example - if you'll run the script bellow,...

  • RE: Difference between Log shipping and DB mirroring

    In log shipping the log is backed up. The log includes both open and close transactions. Each time that the log is being restored the server applies all...

  • RE: Task Manger lot of memory in sqlservr.exe

    You can limit the memory by running sp_configure with the 'max server memory (MB)' option. You can also do it from the GUI - right click on the...

  • RE: Task Manger lot of memory in sqlservr.exe

    ananda.murugesan (12/16/2008)


    Hi ,

    We are running SQL 2000 server database for our websites.

    When we look sqlservr.exe inTask Manger lot of memory ( upto 1.7 GB ) and also cpu usage ...

  • RE: Query Vs Stored Proc

    Christopher Stobbs (12/16/2008)


    are your parameters dates?

    If so sounds like parameter sniffing

    Hi Christopher

    Why do you think that it is because of date parameter? As far as I know parameter...

  • RE: t-sql puzzler

    Christopher Stobbs (12/15/2008)


    am I missing something here!

    Why do you need a derived table or a CTE when it seems to be a simply Group By Having Statement?

    You are not missing...

  • RE: Reading the transaction log

    I do remember that syslog existed as a table in SQL Server 6.5. If I remember correctly it was removed with SQL Server 7.

    Adi

  • RE: Output to XML

    You can do it. You have to include the price in your query. I don't have your tables' structure so I can't show you how to do it,...

  • RE: Output to XML

    When you use path mode and you want to have hirarchies you need to use correlated queries. The script bellow creates 2 tables, insert some data into them and...

  • RE: t-sql puzzler

    Barkingdog (12/15/2008)


    Thaks for the interesting reply but when I ran your (CTE?) I got

    1jack15.00

    4Fred35.00

    The first row is exactly what I want but the second row is not. I expected 17...

  • RE: t-sql puzzler

    Here is one way of doing it:

    with GetName as (

    select myID, min(MyName) as MyName

    from GroupingTest

    group by myID)

    select GetName.MyID, GetName.MyName, sum(MyMoney)

    from GetName inner join GroupingTest on GetName.myID = GroupingTest.myID

    group by GetName.MyID,...

  • RE: How can I set user roles specific database through TSQL

    sanuj (12/14/2008)


    Hi Adi,

    Thanks for your reply. How can we specify the DB in the query, in case if I am using dbOwner role ?

    I see that you already got...

  • RE: Dropping old SQL server name for replication

    Did you remember to run sp_addserver with the local parameter? If you didn't you should run the statement

    exec sp_addserver 'NewName', 'local'

    Adi

Viewing 15 posts - 1,306 through 1,320 (of 1,479 total)