How can we help you today? How can we help you today?
James B
This isn't really something that Data Compare is designed to do (as you've discovered). You might want to check out SQL Packager which can create scripts of your database (schema / data / both) / comments
This isn't really something that Data Compare is designed to do (as you've discovered). You might want to check out SQL Packager which can create scripts of your database (schema / data / both)
0 votes
That makes sense. You'll need to include the IUniqueable interface and implement it, then your generator will show. Obviously if the Index is only including that column, it will probably fail due to the values not being... unique [image] See below for example: using System; using System.Collections.Generic; using System.Text; using RedGate.SQLDataGenerator.Engine; using RedGate.SQLDataGenerator.Engine.Generators; using RedGate.SQLDataGenerator.Engine.Generators.Static; namespace CompanyEmailGenerator { [Generator(typeof(String), "Generic", "Company Emails", "In [url=a.b@nowhere.com]a.b@nowhere.com[/url] format")] public class EmailGenerator : IGenerator, IUniqueableGenerator { protected List<string> testdata = new List<string>(); bool m_Unique; public EmailGenerator(GeneratorParameters parameters) { testdata.Add("marge.n.overror@nowhere.com"); testdata.Add("heywood.ubuzzoff@nowhere.com"); testdata.Add("heywood.ustopitt@nowhere.com"); testdata.Add("heywood.ulevmealohn@nowhere.com"); testdata.Add("les.izmore@nowhere.com"); testdata.Add("itwerks.onanoff@nowhere.com"); } public System.Collections.IEnumerator GetEnumerator(GenerationSession session) { Random rnd = new Random(DateTime.Now.Millisecond); while (true) { yield return testdata[rnd.Next(0, testdata.Count)]; } } public bool Unique { get { return m_Unique; } set { m_Unique = value; } } } } / comments
That makes sense. You'll need to include the IUniqueable interface and implement it, then your generator will show. Obviously if the Index is only including that column, it will probably fail due t...
0 votes