Forum Replies Created

Viewing 15 posts - 151 through 165 (of 210 total)

  • RE: Lock acquired/released infinite loop

    waxingsatirical (9/29/2011)


    Hi Guys,

    There is a particular statement in one of my stored procedures that is causing me a headache. As far as I can see it's a very straight forward...

  • RE: Urgent Help!!! on Function

    pespes009 (9/29/2011)


    Urgent help please

    Ways to Improve this function:

    CREATE FUNCTION [dbo].[LBS_Quotes_GetEarliestCurrentVariantCode]

    (

    @p_quote_idINT

    )

    RETURNS VARCHAR(1)

    AS

    BEGIN

    -- declare temporary variables

    DECLARE@ResultVARCHAR(1),

    @count_oldINT,

    @count_preINT

    -- count number of old and pre-current vehicles in the quote

    SELECT@count_old= SUM(case when v.current_variant = 'O'...

  • RE: SQL Table Index Question

    mjbkm (9/28/2011)


    Also - you said:

    "It is also possible the inserts are not actually going to the end of the table, but are being inserted all over the table, then the...

  • RE: Need a Query

    kishoremania (9/28/2011)


    Actually the data will be like

    10 1 1

    10 1 2

    10 2 1

    10 2 2

    10 3 1

    10 3 2

    11 1 1

    11 1 2

    11 2 1

    11...

  • RE: SQL Table Index Question

    mjbkm (9/28/2011)


    OK - Now I am really confused and need help understanding this. Uggg.

    I have a query that was running really slow with a huge table. The indexes...

  • RE: need a query to join two or more tables with left out join

    rashid_alavi (9/28/2011)


    Hello All experts,

    I have requirment to run the queries against three tables with left outer join,

    it has give all the all rows from a table and plus matching...

  • RE: Need a Query

    kishoremania (9/28/2011)


    I mean to say that..

    I need a query to get data of Max value in B and again in B, I need Max value in C

    So how about:

    select a,...

  • RE: Need a Query

    kishoremania (9/28/2011)


    I am showing you dummy data

    select A,B,C from TEST

    Output:

    10 1 1

    10 1 2

    10 2 1

    10 2 2

    10 3 1

    10 3 2

    I need a query to get the record of...

  • RE: compare data in variables

    sjerromeharris (9/27/2011)


    There is a table in my database that stores client information. There is a second table which stores details for people who might be contacts for that client....

  • RE: Help with Round Function

    zwheeler (9/28/2011)


    Hi

    I am using the round function in my select statement and it works for the following

    Round(avg(h.mtr_fass_score)) as mtr_fass, <------THIS WORKS

    Round(avg(case when p.mtr_unit_count...

  • RE: help with Table relations

    le fevre (9/28/2011)


    Hello.

    Iam at the moment working on a projekt for at company, where I did make a MsSql database to contain data for different servers.

    Basis

    Many of the servers...

  • RE: SET @SQL = ...

    Amy.G (9/26/2011)


    I have a general question about a certain type of SQL query. This is where instead of typing somehting like:

    SELECT Var1

    FROM Table1

    Somethimg more like this is used:

    DECLARE

  • RE: Using CONTEXT_INFO() in fields default value

    wshmstr (9/25/2011)


    Hi,

    There's an option called CONTEXT_INFO() for using it as @@MYGLOBALVARIABLE.

    I can use it like:

    DECLARE @userid BINARY(128)

    SET @userid = CAST(132456789 AS BINARY(128))

    SET CONTEXT_INFO @userid

    Then:

    SELECT...

  • RE: Alter Database blocked by spid -2

    ggoble (9/23/2011)


    Unfortunatly no. default is set to master.

    Another note... I've went onto both the production server where the database is being backed up from and the server...

  • RE: Alter Database blocked by spid -2

    ggoble (9/23/2011)


    I'm trying to restore an HP Quality Center database with full text catalog and the restore works initially however, when i try to restore it again my "ALTER DATABASE"...

Viewing 15 posts - 151 through 165 (of 210 total)