Forum Replies Created

Viewing 15 posts - 2,551 through 2,565 (of 7,191 total)

  • RE: Adding Linked Servers

    No, SQL Server Browser is just to resolve instance name to port name on the local computer.

    John

  • RE: Primary Key Violation when Loading Table

    Welsh Corgi (6/8/2016)


    I am getting a Primary Key Violation when Loading a Table.

    I queried the source table and there is only one record with value of the primary key.

    In that...

  • RE: Need formatted output

    Brilliant! I knew there'd be a better way of doing it. You're returning that final separator, but that can be either ignored or easily got rid of.

    John

  • RE: faster index rebuild from prod server verse local computer.

    Yes, with queries, part of the execution time is transmitting and displaying the result set. With maintenance activities, that's a very much small proportion of the work that's done.

    John

  • RE: Inner Join

    Specify an alias for Table1 in your FROM clause and use that in your SELECT list.

    John

  • RE: Need formatted output

    Yes, but it's certainly not pretty and probably not efficient on large data sets.

    WITH Numbered AS (

    SELECT

    CAST(id AS char(2)) + ' ' + name AS Concatenated

    ,Dept

    ,ROW_NUMBER() OVER (PARTITION BY Dept...

  • RE: Need formatted output

    Abhas

    That's a task usually best done in the presentation layer. Reporting Services would be good for something like that. If you must do it in T-SQL, please will...

  • RE: setting up SSIS server, issues with configuring correctly

    Does your package involve a SQL Server, and if so, can you send messages from that server with sp_send_dbmail? I always find that easier than using the Send Mail...

  • RE: Previous Result

    To know what the previous row is, you need a column (or combination of columns) by which to sort. A table has no inherent order, so which column(s) will...

  • RE: SQL in SSIS

    OK, we're getting somewhere. Not quite all bold yet, though.

    Please post the exact error message. Is the Execute SQL task the only task in your ForEach Loop container? Is...

  • RE: Adding Linked Servers

    I'm out of my depth now, I'm afraid. I have the immense good fortune very rarely to have worked with Access.

    John

  • RE: Run a query in a job and output to a csv file and email

    You can use sp_send_dbmail to send the results of a query by e-mail.

    John

  • RE: Adding Linked Servers

    I don't think that's to do with the network. The MSOLAP provider is for Analysis Services, not Access.

    John

  • RE: Adding Linked Servers

    Does your remote SQL Server capture failed logins in its errorlog? If so, do you see anything in there after you attempt to connect? Can you connect to...

  • RE: query calculation based on group by columns for different logic

    A different interpretation of the requirement:

    SELECT

    Deptno

    ,locationid

    ,pid

    ,sid

    ,LAST_VALUE(value) OVER (PARTITION BY locationid, pid, sid ORDER BY Empid RANGE BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING) * 1.0

    / FIRST_VALUE(value) OVER (PARTITION BY locationid, pid,...

Viewing 15 posts - 2,551 through 2,565 (of 7,191 total)