Forum Replies Created

Viewing 15 posts - 6,151 through 6,165 (of 8,761 total)

  • RE: NEED URGENT HELP ON DATABASE RESTORATION

    Quick suggestion, you can try to search in any/all temp folders on the workstations used to develop those procedures, there is a slim chance that you might find the code...

  • RE: SQL SERVER VARIABLES

    Throwing my spanner in the works, what does the following code return on your system?

    😎

    USE tempdb;

    GO

    SET NOCOUNT ON;

    DECLARE @SAMPLE_SIZE INT = 1000000;

    DECLARE @BEGIN_VAL INT = 1;

    DECLARE @END_VAL ...

  • RE: Help in query

    ChrisM@Work (2/18/2015)


    Here's another way:

    SELECT

    a.[Pax ID],

    a.[Flight Date],

    a.[Flight Number],

    [Last Mod Date] = CASE WHEN x.[Pax ID] IS NULL THEN a.[Last Mod Date] ELSE x.[Last Mod Date] END,

    [Status] = CASE WHEN x.[Pax...

  • RE: Help in query

    Quick solution using the row_number function

    😎

    USE tempdb;

    GO

    SET NOCOUNT ON;

    IF OBJECT_ID(N'dbo.PNRAdds') IS NOT NULL DROP TABLE dbo.PNRAdds;

    CREATE TABLE [dbo].[PNRAdds](

    [Pax ID] [int] NULL,

    [Flight Date] [smalldatetime] NULL,

    [Flight Number] [varchar](10) NULL,

    [Last Mod Date]...

  • RE: Better Method to Detect Record with Multiple/All 0's?

    For fun, here is a 2012 and later method using TRY_CONVERT

    😎

    USE tempdb;

    GO

    SET NOCOUNT ON;

    DECLARE @Account TABLE(AccountNo varchar(3), MasterAccount varchar(10) )

    INSERT INTO @Account

    SELECT 'ABC','0000000ABC' UNION ALL

    SELECT 'DEF','0000000DEF' UNION ALL...

  • RE: MS Access Front End to SQL Server 2008

    The quick answer is yes, connection and users have to be set up, you might want to look into linking to AD if there are many users

    :cool:y,

  • RE: Are the posted questions getting worse?

    TomThomson (2/16/2015)


    ChrisM@Work (2/16/2015)


    TomThomson (2/16/2015)


    ...

    Stop digging, Tom! For goodness' sake, you're coming across as a cranky old fella with a short fuse. This is not what we are used to seeing...

  • RE: Find all tables used in any stored procedure

    Quick suggestion, query the sys.sql_dependencies view

    😎

    SELECT

    OBJECT_NAME(SD.object_id) AS OBJ_NAME

    ,OBJECT_NAME(SD.referenced_major_id) AS DEPENDENT_NAME

    ,SD.class_desc...

  • RE: Are the posted questions getting worse?

    TomThomson (2/14/2015)


    Eirikur Eiriksson (2/7/2015)


    TomThomson (2/7/2015)


    Grant Fritchey (2/5/2015)


    Really? Yankees fans? Are they even human?

    Usually not - they're mostly American.

    Tom, must say that I find this comment totally inappropriate

    😎

    How can it...

  • RE: Is it possible to rename MSSQL Instance Name

    Quick answer, NCD (no can do), suggest uninstalling installing and attach the DBs

    😎

  • RE: Are the posted questions getting worse?

    Lynn Pettis (2/14/2015)


    ... Mark one off, 14 days on the calendar to go. 14 days on the calendar to go, 14 days to go, ...

    Only two weeks, almost there!

    😎

  • RE: Msg 8134: Divide by zero error encountered

    Further on Luis's post, simply look in the code for the pattern division by a column or a variable such as X / [column_name]

    😎

  • RE: Are the posted questions getting worse?

    Luis Cazares (2/12/2015)


    djj (2/12/2015)


    Ed Wagner (2/12/2015)


    Sioban Krzywicki (2/12/2015)


    Eirikur Eiriksson (2/12/2015)


    Brandie Tarvin (2/12/2015)


    jasona.work (2/12/2015)


    Brandie Tarvin (2/12/2015)


    jasona.work (2/12/2015)


    Is it me, or is it at least once a week minimum someone posts a...

  • RE: Are the posted questions getting worse?

    Sioban Krzywicki (2/12/2015)


    Ed Wagner (2/12/2015)


    Sioban Krzywicki (2/12/2015)


    Eirikur Eiriksson (2/12/2015)


    Brandie Tarvin (2/12/2015)


    jasona.work (2/12/2015)


    Brandie Tarvin (2/12/2015)


    jasona.work (2/12/2015)


    Is it me, or is it at least once a week minimum someone posts a "How...

  • RE: parseing xml string

    Slight side step from Alan's brilliant answer and pitching a retro "blast from the past", here is an example that checks if the root tag has a closing tag, the...

Viewing 15 posts - 6,151 through 6,165 (of 8,761 total)