Forum Replies Created

Viewing 15 posts - 331 through 345 (of 1,315 total)

  • RE: Time difference in hh.mm

    Can someone validate and tell me whether I'm wrong

    You need to be specific about your desired result. Are you looking for a simple decimal value with a unit of...

  • RE: Time difference in hh.mm

    True SSCrazy, the problem is the datatype is char and not decimal.

    In your original post the words "concatenate" and "format" implied you were looking for a character result. You...

  • RE: Time difference in hh.mm

    8:35AM to 8:18PM is over 12 hours? Is there a timezone difference here I'm not aware of?

    The time difference is 11 hours 43 minutes. 11 + 43/60 =...

  • RE: Time difference in hh.mm

    I had assumed you wanted a formatted string, if you just want the decimal value then simply multiply the date difference by 24 (CAST to FLOAT required to allow multiplication)....

  • RE: windows 2003 upgradation

    The biggest issue I remember when upgrading to Windows 2003 was with linked servers. Windows Server 2003 has tighter security, and it requires Kerberos authentication to allow multiple hops...

  • RE: Different Behaviour of VARCHAR and NVARCHAR

    Try this:

    print 'nv'+replace(@var1,nchar(222),'a') ----- Outputs: nva

    print 'v'+replace(@var2,nchar(222),'b')----- Outputs: vb

    You are attempting a double-byte character replacement, so it only makes sense with nchar arguments. If either of the arguments is...

  • RE: Time difference in hh.mm

    DECLARE @in DATETIME, @Out DATETIME, @Span DATETIME

    SET @in = '2009-07-13 7:53:00 AM'

    SET @Out = '2009-07-13 4:04:45 PM'

    -- Full hours and minutes (no rounding)

    SET @Span = @Out - @in

    PRINT REPLACE(CONVERT(CHAR(5), @Span,...

  • RE: SSIS

    You need to have separate config files for dev and prod. How you store them is up to you, but one suggestion would be to use _dev and _prod...

  • RE: write to text file using sql

    If you run bcp via xp_cmdshell, it will be executing on the server and can write a file to your PC only if you have set up a writeable share...

  • RE: SSIS multi-environment configuration in a single SQL Server table

    If you implemented the config trigger and history table, it should show you what happened. The only explanation for resetting EnvironmentEnum to 0 it that all the configuration settings...

  • RE: 911 - Cursor killing my trigger

    It is a triangular join, but without knowing more about the data I'm just guessing that there are a relatively small number of notes for each bug. Also, the...

  • RE: 911 - Cursor killing my trigger

    Sorry, I got here through "Active Threads" and didn't notice that it was 2000.

    You can use a self-join solution, although depending on your rowcounts and indexes this may be a...

  • RE: 911 - Cursor killing my trigger

    So you're saying you have to count all the notes for an incident, and the sequence number of the one you're looking for is in the Custom_1 field? Sounds...

  • RE: How to split one mdf file into multiple file

    One option is to add additional files to the primary file group. SQL Server will automatically spread data pages around as they are rewritten, but you have no control...

  • RE: 911 - Cursor killing my trigger

    You don't say what NoteID is the one you want to update. This query assumes it's the largest one, if you have other criteria maybe you can figure out...

Viewing 15 posts - 331 through 345 (of 1,315 total)