Forum Replies Created

Viewing 15 posts - 9,706 through 9,720 (of 13,461 total)

  • RE: Help with keeping the leading zeros

    the issue is datatypes; integers/number datatypes do not have preceeeding zeros;

    i think your table dbo.ReportFinal.MedRecNO is defined as an integer;

    you said it's defined as an nvarchar, but that's the only...

  • RE: Calling a website...

    Ray it's easy to do, but trying to do it in TSQL is not a good implementation.

    TSQL's the wrong tool for this job.

    I'd say it's much better and easier to...

  • RE: How to Add field and populate it in the same query?

    if you move the alter into an EXEC statement, it will work:

    If Not Exists(Select column_name From information_schema.columns

    Where column_name = 'InsertedDateTime'

    And table_name = 'RecipEligToVendorErr')

    Begin

    Begin Transaction

    EXEC('Alter Table RecipEligToVendorErr

    Add InsertedDateTime DateTime...

  • RE: Help with REPLACE please!!!!

    some of it is your order of operations:

    'PTE III'

    you are replacing this first:

    replace(billtoaddress1, 'PTE I', 'PT')

    replace(billtoaddress1, 'PTE II', 'PT')

    replace(billtoaddress1, 'PTE III', 'PT')

    so the end result is PTEII

    that's not what you...

  • RE: Can't figure out this error: text, ntext, ...

    some of this may be beyond my ability to explain it, but here goes:

    a TEXT or IMAGE datatype fields can store something like 2 gig of characters; it's variable...

  • RE: Can't figure out this error: text, ntext, ...

    both your tables have a column named "NAME" of the datatype TEXT:

    ..Name TEXT NOT NULL ,...

    those data types are stored in a different way; a pointer is stored and the...

  • RE: Do u have a Idea about Navision DB?

    lol the redirect thread has more posts than the thread we should reply to.

  • RE: Update query - need suggestion

    it might help...the devil is in the details.

    the pseudo code example we have so far doesn't give us enough to work with...if the big table has an index on the...

  • RE: Update query - need suggestion

    I think by just adding to the WHERE statement to Gianluca's fine example, you'd make sure you don't change fields where they already match, you'll prevent re-processing of the same...

  • RE: Retrieve all Sql server AND their editions on network

    get a copy of the free program SQLRecon from specialopssecurity.com[/url];

    it is the most full featured pprogram I've found for discovering all the SQL servers on a network;

    the documentation says it...

  • RE: mis-appying a cross apply table value function?

    Once again, you guys helped me be a better programmer; I learned a lot with this thread.

    converting that MTVF to an ITVF made me understand the concept better, and this...

  • RE: Return the Text between the () from a varchar (50)

    something like this Simon;

    the CHARINDEX function lets you find the position of specific strings within strings; then it is just a bit of tweaking to skip the parts you do...

  • RE: Error on DATEDIFF calculation

    the issue is data related; you are going for a diff in seconds; the max value is an integer(2147483648 or unsigned 4294967296?)

    but the difference between the two dates is bigger...

  • RE: IN function

    you have to use a split function which changes the string @tech_list into a table function. otherwise you are trying use IN on a string which just happens to contain...

  • RE: TSV to Table

    the error is related to the row size of the insert; > 8062

    for example, if i have 25 columns, and they are all defined as varchar(500), 25 X 500 =...

Viewing 15 posts - 9,706 through 9,720 (of 13,461 total)