Forum Replies Created

Viewing 15 posts - 16 through 30 (of 33 total)

  • RE: 3 tasks in a transaction - involve 2 data transfers and a batch job

    Thank you very much for the response Dinakar. We have decided to solve this using a DTS package.

  • RE: Question of the Day for 05 Oct 2004

    The question does not talk about whether it is a 2-way replication. By default, it will be a one-way replication and u cant update a subscriber directly.

  • RE: Question of the Day for 14 Oct 2004

    Even if the table does not exist, you won't be getting a syntax error. Ofcourse you will get an error that the object does not exist, which is not a...

  • RE: Question of the Day for 14 Oct 2004

    U have got it the other way. If u use desc, it returns 3 records and if u don't use desc, it returns a single record (since it orders in...

  • RE: Question of the Day for 14 Oct 2004

    The question talks about a table called "People" whereas the Query refers to a table called "foo".

  • RE: Server Trace and Client Statistics

    I did see the output of those options. But, I just want to know how they can help me in deciding in the performance of a Query. since, the values...

  • RE: Question of the Day for 27 Jul 2004

    Hi Chris,

    Thanks for the explanation. I do agree with you. I was trying with the sorted column in the select list and that changed the result.

  • RE: Question of the Day for 28 Jul 2004

    As the others have said above, the query given is incorrect. Since table2 is a single-columned table, it can't have columns a and b.

  • RE: Question of the Day for 27 Jul 2004

    The answer given for this question is incorrect.

    If the second query is,

    select myOrd.Order_No, myiT.Item_No, myOrd.Unique_ID as 'Unique_ID', myit.unique_id

    FROM myOrders myOrd

    JOIN myItems myiT

    ON myOrd.Order_No = myiT.Order_No

    Order BY UNIQUE_ID desc

    then,...

  • RE: Reading Execution Plans

    Thanks Marshall for the info. It really is a very useful article.

  • RE: Replicate from database A to database B on, different servers

    If you created the subscriber using T-SQL, then in the following query, you would specify the "SubscriberName" to be Server2 and the SubscriptionName should be specified as "DatabaseB"

    EXECUTE sp_addsubscription ...

  • RE: Datediff with a result like 26:32 (HH:MM) HOW ???

    Allen's Query can be simplified as follows:

    DECLARE @date1 DATETIME

    DECLARE @date2 DATETIME

    SELECT @date1 = '2004-05-11 00:00:00'

    SELECT @date2 = '2004-05-09 11:45:00'

    SELECT CAST((DATEDIFF(mi, @date2, @date1) / 60) AS VARCHAR(5)) + ':' + CAST((DATEDIFF(mi,...

  • RE: How to merge the string ?

    I don't think that there is any other solution. In the solution that I gave, you can increase the size to be 8000 and change the datatype to varchar.

    regards,

    Beulah Kingsly

  • RE: How to merge the string ?

    I don't have a solution with a single query. But if you are using SQL 2000, you can make use of a Scalar user defined function to concatenate the remarks column...

  • RE: Query Help Please

    Assuming the table name to be CurrencyRates and the given dates as @StartDate and @EndDate, the Query would be  

    SELECT

         [Currency Rate Code],

         COUNT(*)

    FROM

         CurrencyRates

    WHERE

         [Rate Year] BETWEEN YEAR(@StartDate) AND YEAR(@EndDate)

    AND

         [Rate...

Viewing 15 posts - 16 through 30 (of 33 total)