Forum Replies Created

Viewing 15 posts - 76 through 90 (of 92 total)

  • RE: Tally Table vs. While Loop

    Wow, I started this for a completely different reason, and I've learned a ton just the same. To put it all together to make sure I've got some of this...

  • RE: Tally Table vs. While Loop

    I think I understand your general idea here. If you don't mind I'd like to check what I'm getting from you. Instead of using...

    Where IsDate(AdmitDate)=1

    ...you recommend...

    Where IsDate(AdmitDate)=1

    And AdmitDate...

  • RE: Tally Table vs. While Loop

    I don't have a choice regarding the date data type being set to Varchar. This was set up by our application developers, and they require all fields be set to...

  • RE: Tally Table vs. While Loop

    Sorry for not making my goal clear enough. In short I am trying to iterate through several columns either on the same or multiple tables, and run an update on...

  • RE: Tally Table vs. While Loop

    I'm getting stuck on how to script the tally version. This is what I have come up with, but so far it's a no go.

    Declare @TableName Varchar(128),

    @FieldName Varchar(128),

    ...

  • RE: Tally Table vs. While Loop

    I appreciate all of the ideas that have been shared on here, and I look forward to learning about the fundamentals of most / all of them. I thought I...

  • RE: Tally Table vs. While Loop

    We receive the data in .csv format. Each state's Medicaid department, and the federal Medicare department are all standard unto themselves (in short 52 different formats). I have those pre-defined,...

  • RE: Add Primary Key to Existing Table

    I have used this code since I first began, and after a few years I have not changed it yet. I recommend keeping it on hand...after a while it will...

  • RE: Which Way Is Faster?

    WOW...THANK YOU!!!

    I will start reading this right away. I'm glad to know you're on the boards here...both of you have already been a huge help!

  • RE: Which Way Is Faster?

    Excellent. I just IM'ed my wife to add it to the list / budget. I'll give it a go soon.

  • RE: Which Way Is Faster?

    Thank you Wayne. I'm looking at the Execution Plan now, and I can see there is a great deal more items in the 1st method's plan than there is in...

  • RE: problem with dynamic sql

    happycat59 (5/18/2011)

    declare @sqlcum nvarchar(max)

    set @sqlcum =N'insert into '+@tablo+N' (baslik,icerik,dilid) values('''+@baslik+ N''','''+@icerik+ N''','''+@dil+ N''')'

    I'm sure this is a beginner question, but just the same...I see the letter N used every now...

  • RE: Parse String to find a letter...

    Btw, thank you for the link regarding the Tally table. That is already going to save a HUGE amount of time, and I only have scratched the surface on it.

    I...

  • RE: Parse String to find a letter...

    I didn't catch what you did the first time around...that is brilliant!!!

    I admit I am stuck on using loops too often. Part of why I'm on here is to learn...

  • RE: Parse String to find a letter...

    It's cumbersome, but it works. It is also scalable to any number of rows you need to scan.

    If Exists

    (Select *

    From Sys.Tables

    Where Name='A_Counter'

    And Type='U')

    Begin

    ...

Viewing 15 posts - 76 through 90 (of 92 total)