Forum Replies Created

Viewing 15 posts - 16 through 30 (of 3,544 total)

  • Reply To: Copy DB from Prod to Test !!

    Jeff Moden wrote:

    Step 1... find everything in the database that will get you fired when someone steals them from your test environment and obfuscate them.  You really don't want to read...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • Reply To: Can't start SQL Server

    It’s been a while since I last did sql admin. SQL server configuration manager will tell you what account it is using. If it is a domain account ie AD, make...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • Reply To: Hints for searching text?

    CreateIndexNonclustered wrote:

    They way he/she is doing it, it doesn't need to be unique. It only needs to reduce the number of records that need to be scanned at low cost.

    This...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • Reply To: Hints for searching text?

    Grant Fritchey wrote:

    Full text indexes are an option. Although, in all honesty, I hate 'em. Hard to maintain and frequently don't actually speed things up much, if at all. Extra storage....

    Far away is close at hand in the images of elsewhere.
    Anon.

  • Reply To: Operating System Error on Bulk Insert

    Jeff Moden wrote:

     I wrote some T-SQL to read the first row (which contained the column names) and had it create a CREATE TABLE statement from that header and the BCP Format...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • Reply To: Are the posted questions getting worse?

    Jeff Moden wrote:

    I think most folks would say your confused, David.  They rather think I should be IN an institution. 😀 😀 😀

    LOL. Maybe we could be in the same room...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • Reply To: Are the posted questions getting worse?

    Jeff Moden wrote:

    David Burrows wrote:

    That’s why I like you Jeff, you’re such a smart guy  😍🥳

    Heh... if I were really smart, I'd just up and retire.  That would probably kill me though.

    Just...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • Reply To: Are the posted questions getting worse?

    Jeff Moden wrote:

    kaj wrote:

    Jeff Moden wrote:

    kaj wrote:

    Jeff Moden wrote:

    It apparently cannot make the distinction between "temp tables" and "temporary tables".  It's seriously incorrect for what most of us refer to as "temp...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • Reply To: How to append data to the previous row

    Jeff Moden wrote:

    David Burrows wrote:

    Jeff Moden wrote:

    As I said on another thread, I've never seen an "automatic bullshit grinder" before. 😀

    Thats because you’ve not met me 😳

    BWAAA-HAAA-HAAA!!! You're on my bucket list, Mr....

    Far away is close at hand in the images of elsewhere.
    Anon.

  • Reply To: How to append data to the previous row

    Jeff Moden wrote:

    As I said on another thread, I've never seen an "automatic bullshit grinder" before. 😀

    Thats because you’ve not met me 😳

    Far away is close at hand in the images of elsewhere.
    Anon.

  • Reply To: SQL Query to fill in Null Column values based on closest date to a given date

    Jeff Moden wrote:

    Maybe I'm still suffering from insufficient caffeine levels this morning, but I have to admit, David, I'm confused.  Why did you change the row numbers from what the op...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • Reply To: SQL Query to fill in Null Column values based on closest date to a given date

    WITH cte AS (
    SELECT[Table].*
    FROM (VALUES
    (1,NULL,'2022-12-01T14:10:37.050',NULL,1),
    (1,NUll,'2022-12-02T12:10:31.070','Hold',2),
    (1,NULL,'2022-12-06T11:18:52.040','Load',3),
    (NULL,10,'2022-12-04T15:14:14.050','Review',1),
    (NULL,10,'2022-12-05T09:22:46.150',NULL,2),
    (NULL,10,'2022-12-15T10:15:18.520',NULL,3),
    (NULL,10,'2022-12-17T09:22:46.150','Buy',4)
    ) [Table] (CustId,LeadId,[Date],Advice,[Row])
    )
    SELECT cte.CustId,cte.LeadId,cte.[Date],cte.Advice,cte.[Row],ISNULL(c.Advice,l.Advice) AS [NewAdvice]
    FROM cte
    OUTER APPLY (
    SELECT TOP(1) cte2.Advice
    FROM cte cte2
    WHERE cte2.CustId=cte.CustId
    AND cte2.Advice IS NOT NULL
    ORDER BY ABS(DATEDIFF(minute,cte.[Date],cte2.[Date])) ASC
    ) c
    OUTER APPLY...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • Reply To: bcp out from sql table rows are breaking divided into rows two or three rows

    Use a different Row Delimiter

    Far away is close at hand in the images of elsewhere.
    Anon.

  • Reply To: Are the posted questions getting worse?

    Jeff Moden wrote:

    Eirikur Eiriksson wrote:

    Happy new year everyone! 😎 May the source be with you 😉

    Same to you, ol' friend.  Glad I got to know you and others from this site.  Missed...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • Reply To: Display values from ntext defined field

    Use delimited split using pipe as delimiter and then use MOD to select 1st and 3rd items

    Far away is close at hand in the images of elsewhere.
    Anon.

Viewing 15 posts - 16 through 30 (of 3,544 total)