Forum Replies Created

Viewing 15 posts - 286 through 300 (of 532 total)

  • RE: Try Catch

    John Walker-232274 (6/29/2010)


    Thanks, found the error.

    Glad to hear it.

    If you have a chance to post what you found the problem to be, that may be helpful to someone that ends...

  • RE: Save user id for new and updated rows

    If I understand you correctly you're wanting to have your app pass through credentials of accounts from users to the SQL Server.

    I'll be honest ... I really don't like the...

  • RE: Try Catch

    Without seeing exactly what you're trying to execute it's very difficult to help you.

    TRY blocks work as a block .... you can put as much code in there as you...

  • RE: Add Identity Column for each user?

    There is really no need whatsoever of having an order 1, 2, 3 ... for each separate user. Think more in terms of just storing the data reliably and...

  • RE: Candidate Key Or Composite Key

    Eugene touched on this, but let me expand a little ...

    Join performance will be faster using as small of a numeric key as possible. Small is important because the...

  • RE: Try Catch

    John Walker-232274 (6/29/2010)


    Yes, I have and there are no errors.

    If your code is terminating in the CATCH block that means you have an error. Without seeing your actual code,...

  • RE: Try Catch

    John Walker-232274 (6/29/2010)


    For some reason after the first INSERT INTO XXX... statement it jumps to the CATCH block and does the ROLLBACK. Why aren't the other Updates and Inserts...

  • RE: SSIS - ignore alpha characters in DF task.

    PHXHoward (6/28/2010)


    I tried to make a new derived column for the zip codes using this:

    (ISNUMERIC([ZIP]) = 1 ? [ZIP]: "")

    but it did not work.

    I don't know the SSIS...

  • RE: SSIS - ignore alpha characters in DF task.

    PHXHoward (6/26/2010)


    Hi, I have searched around prior to asking.

    I've written an SSIS package that takes addresses from a flat file and puts them into a table.

    It has been working fine...

  • RE: create row for comma seperate

    Wayne's solution above is by far the most efficient of the 3, especially if you already have a tally table set up. (Not sure why inferior suggestions were posted...

  • RE: Select statement with WHERE clause

    valeryk2000 (6/28/2010)


    Sorry for naive question (it's so hot on the East Coast!)

    Query:

    SELECT * From myTbl WHERE A="20" and B="167"

    How the engine is going to process:

    1. select all A's and...

  • RE: STORED PROC - Amending the 'WHERE' Clause Based on a Passed Parameter

    ankur_dba (6/26/2010)


    Hope this helps...

    declare @stmt nvarchar(max)

    declare @whrcls nvarchar (max)

    declare @param int

    set @param=1

    set @whrcls=''

    set @stmt = 'SELECT SALESPERSON,

    ...

  • RE: STORED PROC - Amending the 'WHERE' Clause Based on a Passed Parameter

    Based on the information you've provided, I would suggest splitting the statement into two parts. The one part for cases when you want to return all countries and the...

  • RE: How to associate unequal number of rows from two separate tables

    If you want to crosstab the data into X columns where X is dynamically determined, you will need to use dynamic SQL. Jeff Moden has a nice article about...

  • RE: special scenario join

    As a side note ... don't use (n)char/varchar for date fields ... use a datetime datatype and save yourself a lot of trouble.

Viewing 15 posts - 286 through 300 (of 532 total)