Forum Replies Created

Viewing 15 posts - 166 through 180 (of 389 total)

  • RE: How to pick only the first match in a inner join in SSIS

    You could also use Sort transform on the employees path, sort by manager_id and remove duplicates I think.

    Regards

    Piotr

    ...and your only reply is slàinte mhath

  • RE: Alternatives to xp_cmdshell for Folder Directoy

    You might also look at the SSIS, once you get the grip of it, it is pretty flexible.

    Regards

    Piotr

    ...and your only reply is slàinte mhath

  • RE: UPDATE from CTE

    You write SET only once in update clause:

    WITH UpdateAverageLabourCost (ProductId,OH,Labour) AS

    (

    SELECT

    AC.ProductId,

    AC.OH,

    AC.AVGDirectLabour + MAN + SUB - OH AS Labour

    FROM dbo.AVGCost AC

    INNER JOIN dbo.Products p ON AC.ProductId = p.CrossReference

    WHERE Type...

    ...and your only reply is slàinte mhath

  • RE: prevent clients to retrieve information_schema and sys metadata

    To prevent users from being able to read schema information you have to deny view definition right.

    There are several ways you could organize it, depending on your needs. One of...

    ...and your only reply is slàinte mhath

  • RE: High count of version-store pages in tempdb

    I'd have a look what transactions and which databases the version store is generated for. It might give me clue regarding what process may be responsible for the issue.

    But I...

    ...and your only reply is slàinte mhath

  • RE: High count of version-store pages in tempdb

    Have you tried to select from sys.dm_tran_version_store?

    Regards

    Piotr

    ...and your only reply is slàinte mhath

  • RE: getting all records between 2 fridays of a given date

    Now, that's a cunning trick I see now Jeff :w00t:

    Not earlier than yesterday I said to myself 'one day I have to get those dateadd-datediff calculations sorted out'.

    And now I...

    ...and your only reply is slàinte mhath

  • RE: sql server performance issue

    Hi Rajg,

    I can't find the definition of the IX_VarOffice index in code you sent. Also as Gail said it would be helpful to see create table statements and the definition...

    ...and your only reply is slàinte mhath

  • RE: getting all records between 2 fridays of a given date

    It does unfortunately..

    set language us_english

    go

    select @@datefirst, datepart(dw, getdate())

    go

    set language british

    go

    select @@datefirst, datepart(dw, getdate())

    I had to cope with this on a few occasions.

    Piotr

    ...and your only reply is slàinte mhath

  • RE: varchar actual size

    RBarryYoung (12/30/2008)


    Varchars only store that space that you are actually using.

    + 2 bytes to store the length of data;)

    P.

    ...and your only reply is slàinte mhath

  • RE: Sort Order

    Very interesting. I found out that if you change data type to nvarchar or use newer collation like Latin1_General_CI_AS, everything works OK.

    The BOL says in Using Binary Collations: "Older SQL...

    ...and your only reply is slàinte mhath

  • RE: SQL for duplicating records

    Hi Kevin,

    Look at the OUTPUT clause in books on line.

    Regards

    Piotr

    ...and your only reply is slàinte mhath

  • RE: User-defined Function with Dynamically-build Query

    Cursors are evil, aren't they? 😎

    Here's a solution that seems to work without cursors and CLR.

    create table TableA(itemid int identity(1, 1), itemname sysname)

    go

    set rowcount 500

    --populate tableA. if you need more...

    ...and your only reply is slàinte mhath

  • RE: Adding a Persisted Column locks the table... avoidable?

    Hm, I imagine that such alter of table updates all the rows in it - according to BOL the Sch-M is acquired. There is a remark that "Changes that...

    ...and your only reply is slàinte mhath

  • RE: how do i run package from web service

    I don't think you can return a data reader from a pack. You could probably store the merge output in an ADO dataset and store it in variable which you...

    ...and your only reply is slàinte mhath

Viewing 15 posts - 166 through 180 (of 389 total)