Forum Replies Created

Viewing 15 posts - 2,821 through 2,835 (of 15,381 total)

  • RE: INSERT INTO not inserting enough rows

    richardmgreen1 (5/28/2015)


    Hi Sean

    Here's the insert statement:-

    set dateformat dmy

    truncate table [CDSExtractInpatients6.2].dbo.CDS_Inpatients_CDS_Feeds_Import

    INSERT INTO [CDSExtractInpatients6.2].[dbo].[CDS_Inpatients_CDS_Feeds_Import]

    SELECT

    CdsType,

    i.CdsUniqueIdentifier,

    CONVERT(VARCHAR(10),CdsExtractDate,120) AS [Extract_DATE],

    CONVERT(VARCHAR(10),CdsReportPeriodStartDate,120) AS [Report_Start_DATE],

    CONVERT(VARCHAR(10),CdsReportPeriodEndDate,120) AS [Report_End_DATE],

    CONVERT(VARCHAR(10),cdsactivitydate,120) AS [Activity_Date],

    -- Updates Prime Recipients for Null & Old Pct_Codes

    Case

    When CdsPrimeRecipient...

  • RE: Get Date Format from String

    AswinKrishnan (5/28/2015)


    Dear All,

    How can we identify the Date Format from a String in SQL Server.

    I might get an input from external source as "MM-DD-YYYY" or "DD-MM-YYYY" or "YYYY-MM-DD" or "YYYY-DD-MM",...

  • RE: Unable to use proper quotes in the statement

    dale_berta (5/28/2015)


    I think I prefer [/url] as a better reference for character naming.

    0022, ", is QUOTATION MARK.

    0027, ', is APOSTROPHE.

    The other two you mentioned are 2017 and 2018, LEFT and...

  • RE: Unable to use proper quotes in the statement

    Richard Warr (5/27/2015)


    Just out of interest is there a rule or convention on what these symbols are called? Strictly speaking,

    ' is an apostrophe, and

    " is a quote.

    Confusion sets in...

  • RE: Change Set clause of Update Statement dynamically based on some condition.

    devsql123 (5/27/2015)


    Hi Friends,

    I want to change Set clause of Update Statement dynamically based on some condition.

    Basically i have 2 Update statments having same FROM clause and same JOIN clause.

    Only diff...

  • RE: Are the posted questions getting worse?

    Brandie Tarvin (5/27/2015)


    Just curious how many people on The Thread are World Cup fans. Cause... STUFF and MORE STUFF.

    And I was wondering how y'all felt about it.

    I am just surprised...

  • RE: Are the posted questions getting worse?

    Luis Cazares (5/26/2015)


    I know while loops aren't bad even if they're used for data processing and not administrative tasks. That's why I wrote the article, to show how loops can...

  • RE: Unable to use proper quotes in the statement

    Lynn Pettis (5/22/2015)


    I'm thinking the problem is using " (double quotes) in building your string and probably not the correct number of ' (single quotes).

    Oh boy...looking back at my post...

  • RE: Unable to use proper quotes in the statement

    SQL-DBA-01 (5/22/2015)


    HI Guys,

    I'm automating some of the TDE stuff and while doing so stuck somewhere. I'm unable to use section [ENCRYPTION BY PASSWORD = ''"' + @db_pswd + '"'' ]...

  • RE: Access to Create/Amend/Delete Tables in a named ( none dbo schema )

    Adrian Sims-154382 (5/22/2015)


    Hi,

    I have a 3rd party product that has tables and object within the dbo schema of a given database, and I would like to set up dedicated AS400...

  • RE: INSERT INTO not inserting enough rows

    Thanks for the table. Unfortunately you didn't post the select statement, the insert statement, the source table ddl or the sample data. From what you posted it sounds like maybe...

  • RE: Are the posted questions getting worse?

    cunningham (5/21/2015)


    soooo this is where you lot go to blow off steam!

    Yes indeed!!! Welcome to the "water cooler" commonly referred to as "the thread". 😀

  • RE: Working with Triggers, stored procedures.

    You still haven't posted the ddl for the base tables here so we can build this on our systems to test with. Your code now is further from accomplishing the...

  • RE: Working with Triggers, stored procedures.

    Hi and welcome to the forums. Your trigger doesn't make much sense to me. You have specified it to be a trigger for insert, update and delete. However, it doesn't...

  • RE: Alternate to CASE in SQL

    newbieuser (5/19/2015)


    Ok..Here is the background.. This SQL runs from our application connected to SQL Server via ODBC. TABLE1 in the SQL is an oracle table, queried via linked server. We...

Viewing 15 posts - 2,821 through 2,835 (of 15,381 total)