Forum Replies Created

Viewing 15 posts - 751 through 765 (of 3,348 total)

  • RE: Insert file to sql server without front end using Stored Procedure

    In the second query, you build a query string and then insert that string into a table. I assume that you actually meant to execute that string.

    Before going down this...

  • RE: FIND column that hits criteria

    Yes, please do take the time to ensure you understand what the code is doing. Code-writiing by copy/paste has been the downfall of many companies already. If you don't understand...

  • RE: A column to identify one record?

    Not sure I understand the question correctly. But here goes.

    First - from a design standpoint, there is nothing wrong with a column that has the value 1 for one row...

  • RE: Error in merge statement in Tsql

    That error means that a single row in the destination table has multiple matches in the source table. It's like telling you that John is 18 years old, Mary is...

  • RE: FIND column that hits criteria

    EDIT: I forgot to mention that my code returns some three-zone options for order 4; your expected results show four zones. I hope that this is because you made a...

  • RE: FIND column that hits criteria

    Okay, two disclaimers up front. First, I agree with Lynn that "random" does not sound as a very precise specification. It is also very hard to pull off in SQL...

  • RE: How to calculate a timeline and avoid using cursor

    Jon.Morisi (2/26/2016)


    I didn't read all your code, sorry.

    Is this helpful?

    (common alternative to a cursor)

    while @RowCnt <= @MaxRows

    begin

    ...

    Select @RowCnt = @RowCnt + 1

    end

    No, it's not. Your code...

  • RE: Conferences, immersion events, focused training 2016

    benjamin.reyes (2/26/2016)


    Most of my coworkers make it out to the local SQL Saturday, and I regularly attend the monthly users group. It is wildly helpful. I'll probably also...

  • RE: Log initial size

    gorripativ (2/26/2016)


    Even if I take tlog backups for every 15 min why my initial size is growing is my concern?

    What is returned when you run this query in the...

  • RE: use of service broker

    Oh, missed that. Since your only concern was the locking on the source table, not on the destination table.

    Alternative #1 - use an intermediate table. Do the select on the...

  • RE: SQL Pivot help

    Please post a CREATE TABLE statement for the table, post a few handful rows of sample data as INSERT statements, and post the exact results you want returned from that...

  • RE: FIND column that hits criteria

    Sorry. I've been looking at this, but I have no clue at all as to what you are trying to do.

    Is there a way for you to repost your problem,...

  • RE: Index Query

    dva2007 (2/26/2016)


    I just wanted to clarify quick query about index. I always read the clustered index sorts the data in physical order and non-clustered index sorts the data in logical...

  • RE: Hierarchy with changing levels

    glabrecque (2/26/2016)


    (...)

    I have been able to do it using multiple joins.

    So what exactly is your question, then?

    If you are looking for a way to simplify your query, I believe the...

  • RE: insert multiple insert using openrowset

    In addition to Steve's reply: you have to understand that the query runs on the server, not on your workstation. That may impact the interpretation of the path.

    Also, the file...

Viewing 15 posts - 751 through 765 (of 3,348 total)