Forum Replies Created

Viewing 15 posts - 4,606 through 4,620 (of 8,753 total)

  • RE: IM003 - Error when trying to connect ....

    algytaylor (9/7/2015)


    Hello! This is my first post here 😀

    PHP has been printing out the following error when I try to connect to SQLServer 2008 RC2:

    Fatal error: Uncaught exception 'PDOException' with...

  • RE: The Scientific Method

    One can truly argue that science is probably the greatest invention but in the adoption of scientific methods in the software industry it has somehow gotten lost in translation. Hypothesis...

  • RE: SQL Server Agent Job Fail running an SSIS Package

    keng_mkt (9/7/2015)


    In Command line tab

    /FILE "\"C:\Users\Administrator\Documents\Visual Studio 2010\Projects\SSIS_KENG_TEST4_86_TO_21\SSIS_KENG_TEST4_86_TO_21\Package.dtsx\"" /DECRYPT /CHECKPOINTING OFF /REPORTING E

    Quick question, can the SQL Server Agent access the Administrator's home directory?

    😎

    Suggest you read this article: Setting...

  • RE: ISNULL vs IS NULL performance

    Piling on Andrew's and Ed's good answers: avoid using functions on the columns in the where clause if possible and all the alternatives forms of that, such as function in...

  • RE: Insert a XML with Chineese strings in Table

    Quick suggestion, use N'' prefix, then the SQL Server automatically uses UTF-16

    😎

    USE tempdb;

    GO

    SET NOCOUNT ON;

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

    CREATE TABLE dbo.TABLE1

    (

    XXXX varchar(255) NULL

    ...

  • RE: Error in Restoring Database

    maddukuru.rambabu (9/6/2015)


    Hi All,

    Please find attachment which contains screenshot of Error

    Please Help me.

    If you are trying to overwrite the existing database then use WITH REPLACE (options tab in the restore database...

  • RE: SQL Server Agent Job Fail running an SSIS Package

    Post the full configuration for the agent job.

    😎

  • RE: Mount Points

    Carlo Romagnano (9/1/2015)


    To get it for each db and files:

    declare @sql nvarchar(max) = 'select 0 as dbid,0 as fileid WHERE 0=1'

    SELECT @sql = @sql + '

    UNION ALL SELECT '''+RIGHT(database_id,10)+''',fileid FROM...

  • RE: Need Help on query to select every 2 rows based on a date

    g7u (9/6/2015)


    I really can't thank you enough. Thank you for the superb help and explanation. This was stumping me for quite some time.

    You are very welcome and thank...

  • RE: Need Help on query to select every 2 rows based on a date

    g7u (9/6/2015)


    One more question...

    If I wanted to get a DATEDIFF between the two Dates, how would I accomplish that? Many thanks.

    Simply add it to the last part of the...

  • RE: Need Help on query to select every 2 rows based on a date

    Here is the code again with comments, let me know if you need further explanation.

    😎

    /* CTE (Common Table Expression for marking the sessions in

    chronological order, creating an...

  • RE: Need Help on query to select every 2 rows based on a date

    Quick solution

    😎

    USE tempdb;

    GO

    SET NOCOUNT ON;

    GO

    DECLARE @SAMPLE_DATA TABLE

    (

    [action] VARCHAR(10) NOT NULL

    ,[date] DATE ...

  • RE: Only one record from table with multiple records

    hegdesuchi (9/5/2015)


    Hey,

    thank you very much. It does work.. But I have to repeat this scenario for 3 flags.. So I have to define CTE all three times.

    Do we have...

  • RE: Help with Row_Number

    QQ-485619 (9/5/2015)


    I need some help with the following situation

    I have a table with the follow row and sample data

    RowID RecordType ...

  • RE: Integer column shows 5.00000000000000000 as value

    mar.ko (9/4/2015)


    INSERT WITH SELECT HAS THIS:

    ,Convert(Int,TARG_SALES) AS TARG_SALES

    Treats the column as if it were formatted decimal !!

    Looks more like a rounding trick in the insert, pretty certain the column's datatype...

Viewing 15 posts - 4,606 through 4,620 (of 8,753 total)