| Author |
Message |
sdorsett
Joined: 26 Aug 2008 Posts: 4
|
Posted: Tue Aug 26, 2008 6:36 am Post subject: String Manupulation with test data. |
|
|
I have a table column that contains URLs. In another column in the same table I would like to extract the domain from the URL in the previous column. For example,
URL Domain
http://www.test.com test.com
http://www.abc.com abc.com
How would I go about pulling this off in the Data Generator? |
|
| Back to top |
|
 |
sdorsett
Joined: 26 Aug 2008 Posts: 4
|
Posted: Thu Aug 28, 2008 7:29 am Post subject: Need help |
|
|
Any help would be greatly apreciated here. Is there any native functions that support string manipulation. Is the code generator my only option?
To recap,
I want the second column to be a substring of the first column. |
|
| Back to top |
|
 |
Linda Hawksworth
Joined: 25 Jun 2007 Posts: 192
|
Posted: Thu Aug 28, 2008 12:24 pm Post subject: |
|
|
| I don't think any of the generators will do this but I will investigate how it could be done with a custom generator. Please bear with me. |
|
| Back to top |
|
 |
sdorsett
Joined: 26 Aug 2008 Posts: 4
|
|
| Back to top |
|
 |
sdorsett
Joined: 26 Aug 2008 Posts: 4
|
Posted: Thu Sep 11, 2008 7:51 pm Post subject: |
|
|
I did find a solution to my problem. Here is what I did.
I was shooting for a generated table that looked like the following.
Here is what the files look like.
I didn’t want to create the ReferrerDomainList and ReferrerURLList. I was hoping to dynamically create the entries via some string manipulation function provided by RedGate. No worries, maybe you can provide this in a future release.
Thanks for your assistance.
Sean Dorsett
http://www.slackytidy.com
L O O S E L Y C O U P L E D & C L E A N C O D E |
|
| Back to top |
|
 |
|
|
All times are GMT + 1 Hour
|
| Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group