Forum Replies Created

Viewing 15 posts - 241 through 255 (of 375 total)

  • RE: UDF for BOTH Date & Time

    "Minimal thinking effort is always useful in programming"

    My theory goes:

    The entire human progress was driven by the lazy ones.

    The whole objective of the...

  • RE: UDF for BOTH Date & Time

    Another reason to format the datetime on the GUI is sorting. If you return a dataset with a datetime column and you present it in the data grid you have...

  • RE: query to find size of all tables in a database

    If you need the size of the tables including the index pages then use this

    SELECT name, dpages, reserved, rows

    FROM sysindexes

    WHERE indid = 0

    AND impid = -1

    ORDER BY name

    Where reserved is...

  • RE: query to find size of all tables in a database

    Size of a table is not a precise requirement but if you run this you should get the number of datapages used by each table and number of records.

    DBCC UPDATEUSAGE...

  • RE: Authentication Mode

    SQLBill,

    Thanks for the reply.

    Since the app and the server reside on the same computer I was just trying to get an opinion if one of the authentication methods (Windows or SQL) is...

  • RE: Bankers Rounding

    Sergiy,

    Of course I noticed the post that fixed the original function. This is the "-Add more of the red tint. -Worked fine, thanks" exchange in my little "non-technical' recap.

    The biggest...

  • RE: Bankers Rounding

    Let me recap this for you using non technical terms

    - I have a red paint but the color comes out pink.

    - Add more of the red tint.

    - Worked fine, thanks.

    -...

  • RE: Subqueries

    Instead of using #temp table use the table variable. It should work faster and is not creating any locks on the master db. And yes, sometimes when the initial record...

  • RE: Subqueries

    If Tomm's solution works then this might be a bit faster because it should only do one pass thru the table. Since I have no data I could not test...

  • RE: Bulk insert multiple related tables

    Scott,

    If you do not bulk insert you may just use a SP that will accept data for both tables and inside your SP you insert part of the data into...

  • RE: Bankers Rounding

    Oh boy, I think there is more then 5 of us watching this...

    I just don't understand what the argument is all about anymore....

  • RE: How to find proc''''s users have access to that insert or update data

    The problem might be in your sp_SearchText.

    As I mentioned above you should not use the ROUTINES view to search the text of a SP. (To see the code INFORMATION_SCHEMA.ROUTINES uses -...

  • RE: High ASCII Characters in data

    In this case just replace the

    '%[^''a-Z .,-]%'

    with this

    '%[^' + CHAR(128) + '-' + CHAR(255) + ']%'

    and see if it works for you

     

     

  • RE: subquery

    Is something like this you are looking for?

    SELECT S.item, MAX(Invoicedate)

    FROM Stock AS S

    LEFT OUTER JOIN Invoicedet AS I ON I.item = S.item

    GROUP BY S.item

    HAVING ISNULL(DATEDIFF(day, MAX(Invoicedate), getdate()), 61) >...

  • RE: Bankers Rounding

    Very logical post but totally misses the point.

    THE BANKERS ROUNDING IS NOT ABOUT PRECISION!!!

    It is about distribution. It is STATISTICAL function.

    This disussion was fun for a while but it is...

Viewing 15 posts - 241 through 255 (of 375 total)