Forum Replies Created

Viewing 15 posts - 6,946 through 6,960 (of 7,503 total)

  • RE: Self-Joins?

    ".. but the second one will return all rows in the table .."

    No. Test it.

    Left part contains only those with Associated?="No"

    Right part contains only those with Associated?="yes"

    joined by

    July 28, 2004 at 3:46 am

    #516524

  • RE: Self-Joins?

    aaarch Wednesday morning syndorme affected my query !

    -- if all [account#] have rows...

  • RE: Self-Joins?

    "I am basically looking for all account #’s that have no systems associated to them"

    SELECT [Account#]

    From [System_Account_Association]

    where [Associated?] ='NO'

    group by [Account#] -- in stead of distinct because it...

  • RE: Decreasing the varchar column sizes in a table

    You'll have to check with your developer(s) to see if they realy need all possible bytes.

    Meybe they've worked out a combination so they don't exceed 8060 bytes in a...

  • RE: How to proove "set nocount on" is needed ?

    In fact, that QOD pushed me to launch this thread.

    We don't use CR, so I loose that argument.

  • RE: Connection problems using Enterprise Manager

    - what's the servers load when you try to connect and suffer the problems :

      * cpu

      * memory

      * tempdb-load

      * network

      * numer of connections at the server

     ...

  • RE: Question of the Day for 27 Jul 2004

    with this supposed to be correct result : please contact pss.

  • RE: tempdb log full - (Not really!)

    when expantion is done "in process", you may get timeouts to the "expand file" request. SQLServer then says "...file full".

    The request itself is not terminated, but is completed after...

  • RE: Running sql from command prompt

    from BOL :

    WITH <termination>

    Specifies when to roll back incomplete transactions when the database is transitioned from one state to another. Only one...

  • RE: Parsing dates from diferent timezones

    Maybe this udf can be used as a workaround :

    if exists (select * from dbo.sysobjects where id = object_id('dbo.udf_Get_Last_DayNr'))

      begin

     Drop Function dbo.udf_Get_Last_DayNr

     print 'Dropped'

      end

    go

    Create Function dbo.udf_Get_Last_DayNr

    (  @Start_DateTime AS datetime ...

  • RE: Parsing dates from diferent timezones

    Maybe you can read the reg-key from within your application's front-tier (not at the mid-tier or server) and have the timezoneshift delivered by your application.

  • RE: Parsing dates from diferent timezones

    Frank Kalis pointed me toward a way to find out the local timezone using the registry :

    DECLARE @delta INT

    EXEC master.dbo.xp_regread

    'HKEY_LOCAL_MACHINE'

    , 'SYSTEM\CurrentControlSet\Control\TimeZoneInformation'

    , 'ActiveTimeBias'

    ,...

  • RE: DB Standards Reality Check

    This is without a question a joint venture of DA and DBA.

    But if you forget to have your standards supported by you top-level ceo your project...

  • RE: Running sql from command prompt

    in sql2k you can also use

    alter database yourdb SET OFFLINE  WITH ROLLBACK IMMEDIATE

    This way you avoid problems with reattatching the db at the same server and all users...

  • RE: getting all users accross all servers

    If you only want the userid - names , you can query against systables using Isql.

    These are queries against the systemtables; I do not recommend to make an habit of it.

    If...

Viewing 15 posts - 6,946 through 6,960 (of 7,503 total)