Red Gate forums :: View topic - Date type column generator
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
SQL Data Generator 2
SQL Data Generator 2 forum

Date type column generator

Search in SQL Data Generator 2 forum
Post new topic   Reply to topic
Jump to:  
Author Message
FelipeAlvarado



Joined: 15 Aug 2013
Posts: 1
Location: Cd. Juarez, Mex.

PostPosted: Thu Aug 15, 2013 4:43 pm    Post subject: Date type column generator Reply with quote

I created a custom datetime generator and it works. I’m now trying to do the same for a date type column but I can't seem to find a way to make it work. What should I use for the “type” and the “sqlType”?

Thanks
Back to top
View user's profile Send private message
Brian Donahue



Joined: 23 Aug 2004
Posts: 6581

PostPosted: Mon Aug 19, 2013 9:34 am    Post subject: Reply with quote

Hi Felipe,

I believe you've solved this issue by making the generator available to the column that you want by adjusting the minlen property of the match XML element.

If you want to generate data of a certain SQL Type, it's the generator type RedGate.SQLDataGenerator.Generators.SQL.SqlColumnGenerator and the type is whatever the .NET ADO Client equivalent of the SQL data type that you need.

http://msdn.microsoft.com/en-us/library/system.data.sqldbtype.aspx
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic 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