What are the challenges you face when working across database platforms? Take the survey

Bug? Insert table column in Regex column

dlutzdlutz Posts: 10
I have a Regex column that is using the value of another column by using the "Insert Table Column" button. The results look great in the preview view but only garbage ends up in the database.
For example, a value in the inserted column of "620 North Milton Blvd." gives the Regex column a value of:
What am I missing here - the help file and forum search return nothing about using the "Insert Table Column" button. The little pop-up help window on the Regular Expression label states that it should import the _value_ of the column and I do not see that as happening.
Any help is appreciated.


  • Options

    Thanks for your post. Sorry you have encountered this problem.

    In order for me to produce this, what are the datatypes of the two columns?

    Is your regex expression something like $[Address] ?


  • Options
    Hello Ben!

    Yes, the regex is $[Address]
    The datatype of the source column (Address) is varchar(100), is not nullable and is being populated by the Address Line (Street Number) generator.
    The datatype of the destination column is varchar(1000), not nullable and is being populated by the Regex expression which contains $[Address].
    BTW, I have also noticed that adding a FK column to the regex window causes this column in the preview pane to gray out and display what appears to be a lock icon - looks like a link of a chain. Is this expected behavior?

  • Options
    Hi David,

    I just created the following table and that all appears to work as expected.

    CREATE TABLE TempTable(ID INT, Address varchar(100) NOT NULL, Destination varchar(1000) NOT NULL)

    Would it be possible for you to send me your schema and project file so I can attempt to reproduce this on my local machine.

    Which SQL Server version are you running?


  • Options
    We are using Sql Server 2005 SP2.
    I did what you did and it worked for me also. I noticed you had an int ID column, our table is using a GUID as the PK. I also tried it with a GUID PK and it still worked.
    I will send you the schema and project file. I have your email address from a previous interaction. The schema includes some Full-text search SQL which you may wish to comment out rather than try to get it configured to work. I included in the script it so you would know that it exists. The script I will send you was generated with Microsoft's Database Publishing Wizard.
    As always, thanks for the help.

Sign In or Register to comment.