Forum Replies Created

Viewing 15 posts - 3,151 through 3,165 (of 5,103 total)

  • RE: How do I do this in SQL Server please........

    Fisrt things First. You should look into changing such design ( if you can of course) Because it complicates all operations and makes possible a ton of inconsistensies!!

    Second. Well, You...

  • RE: Query limited to 23 or less rows

    Ok,

    I found one that was related to the inserts but it has been also experienced (read suffered) on selects too:

     PRB: Poor Performance on a Heap

    I still have to keep...

  • RE: Cursor in SP

    I just want to point out that it is possible to pass cursor data type as a parameter.

    From BOL:

    CREATE PROC [ EDURE ] [ owner. ] procedure_name [ ; number...

  • RE: Query limited to 23 or less rows

    >>I still belive that the problem was HW (or logical volume) related.<<

    Gabor, Believe me, I have seen this on brand spanking new machines/Drives!!

    The reason beign associated to Heap structures. I am...

  • RE: Transaction/ Lock Question

    Apparently you just answered your own question.

    I have used this method for years and with a more general Method:

     

     

    CREATE TABLE ControlTable (

       ...

  • RE: Using Virtual tables

    Can you try:

    Select

     SV00300.Service_Call_ID,

     SV00300.CUSTNAME,

     SV00300.DATE1,

     SV00300.USERID,

     SV00300.WS_Time_1,

     SV00300.Priority_of_Call,

     SV00300.Purchase_Order,

     SV00300.User_Define_2a,

     SV00300.User_Define_3a,

     SV00300.User_Define_4a,

     SV00300.Service_Date_1,

     SV00300.ADRSCODE,

     SV00200.ADDRESS1,

     SV00200.City,

     SV00200.State,

     SV00200.Zip,

     (left(SV00200.Phone1,3) + '-' + substring(SV00200.Phone1, 4,3) + '-' + substring(SV00200.Phone1, 7,4)),...

  • RE: group by

    select distinct a.patient, a.invoice,  b.patient, b.invoice

    from table a

       , table b

    where a.patient <> b.patient -- Make sure this can not be null

    and a.invoice = b.invoice

    and a.pk <> b.pk --...

  • RE: Formatting to a output file using OSQL

    Not sure exactly what syntax are you using but you should be able to specify a format file and use a query or a view to handle the Field sizing...

  • RE: Cursor in SP

    >> ps: We've already been through this in the other post so I'm not going to say what I'm sure someone else will on the usage of cursors! <<

    And that...

  • RE: Obtaining Sum Totals for a record

    >> noel - is your typing speed faster than Remi's ?! <<

     

    Not really, I got lucky this time

     

  • RE: Obtaining Sum Totals for a record

    Select TableID, UserID , Sum(TimeKept + WorkQuality +Attitude) As Total

    From YourTable

    Group by TableID, UserID

    Order by TableID, UserID

     

  • RE: Vacation!!

    Believe me  I've tried  a Liquors List (none worked! )

    Therefore I am starting to believe that you may be able to pick your...

  • RE: Query limited to 23 or less rows

    Like I said: I have seen very strange behaviours on large tables Lacking Clustered indexes!! or having Clustered indexes with large fragmentation

    Good Luck!

     

  • RE: Vacation!!

    sswords:

    I like that god!!! I need my wife to see that yet thought

     

  • RE: Trying to convert negatives to positives and vice versa

    If you plan to use this on an update I would recomment to move those criterias to the where clause

    SELECT  voucherdate,vouchernumber,vouchertype,accountnumber,

    debitcreditcode,    -1*(amount) as  'glamount'  

     FROM glentries_v

    WHERE (debitcreditcode = 'D' AND amount <...

Viewing 15 posts - 3,151 through 3,165 (of 5,103 total)