 |
|
 |
Thanks a lot!!!
|
|
|
|
 |
|
 |
For our app, we install SQL CE side-by-side with our app rather than running the separate installer, to lessen our installation requirements and footprint on the end-user's machine. (This is a configuration that Microsoft supports, not something strange.) Because of that, we make it a policy to avoid installing SQL CE in the GAC using MS' installer on our machines, to help us avoid accidentally making something depend on it being there.
You might consider packaging SQL CE SxS in your installer in the same way. It would make it easier to use this tool in situations like ours.
Thanks!
|
|
|
|
 |
|
 |
Thanks for the suggestion. I have done that locally. But for publishing the article and reducing the size of upload I have excluded that in the published installer.
Thanks.
|
|
|
|
 |
|
 |
Will you be adding this kind of functionality?
|
|
|
|
 |
|
 |
This feature is already there. The script generator can generate script for both schema and data for SQL server. Just run the generated script to migrate CE DB to SQL Server.
|
|
|
|
 |
|
 |
Hello Ray, how difficult would it be to convert this over so it work work on the WEB?
Also Ray do you have an email address on this site?
Thanks
bk
|
|
|
|
 |
|
 |
Hi,
I have to analysis a bit for this. I will let you know.
I dont have any email address on Codeproject. You can contact me at mayukh.ray@gmail.com
Thanks
Mayukh
|
|
|
|
 |
|
 |
Any plans to add the ability to produce a change script for 2 different versions of the same database? This would be very helpful.
Otherwise, great job!
~ballistikx
|
|
|
|
 |
|
 |
I will try to incorporate in the next release..
Thanks
|
|
|
|
 |
|
 |
Just a quick note to say 'thanks'.
|
|
|
|
 |
|
 |
Thank you very much...
|
|
|
|
 |
|
 |
I've just used your tool to create a script file of one of my SqlCe databases. When creating a database using this script file I get the following error:
"The specified data type is not valid. [ DataType(if known) = varchar]"
|
|
|
|
 |
|
 |
First of all thank you for the response...and also finding the issue....
I have missed this particular thing in the script generator module.
Here is the fix for the issue:
Please add the following lines of code at the begining of the function public string GenerateTables(bool isSqlServer) in Generator.cs file of ScriptGenerator project.
public string GenerateTables(bool isSqlServer)
{
if (!isSqlServer)
{
return GenerateTables();
}
.
.
.
.
.
}
Thanks you again. Please let me know if you have found any other thing obvious. I will publish the rectified code as soon as possible.
|
|
|
|
 |
|
 |
Hi Ray,
No problem. I'll incorporate this into the source I have this evening and give it another test.
I can think of an absolute SHED LOAD of things this tool should do ... here are a few and frankly I can't think of any excuse you could possibly come up with to not do them! Great tool ...
Automate production of LINQ dbml using SqlMetal.exe
Allow user to use SqlCeEngine to Verify DB file
Test CreateDatabase() on LINQ dbml and compare to the source DB
Cheers,
|
|
|
|
 |
|
 |
Unfortunately I only have access to C#Express at the moment so I'm not able to edit this and recompile.
|
|
|
|
 |
|
 |
I will release the new version in just couple of days... with a new feature to export query result in Excel file.
I am doing the final preperation of the release.. In the meantime please replace the varchar by nchar manually... Sorry again for the inconvenience..
|
|
|
|
 |
|
 |
Hii, the new installer is in place. I have rectified the bug you have found. Let me know if that helps.
|
|
|
|
 |
|
 |
Nice! I'm just installing now ...
|
|
|
|
 |
|
 |
Hi Ray,
I opened an existing SqlCe database and created a script file with all the tables included.
I then tried to create a table from this schema file and I received the following error message:
"Length precision or scale cannot be specified for NTEXT or IMAGE type. Remove these attributes from the IMAGE or NTEXT data types in the DLL"
In the schema file all he nText fields were listed like:
[columnName] ntext(536870911) NULL
I went through the scrip file and removed (536870911) from each of these field declarations and re-ran the script. All worked fine and the database itself is as expected.
Just a minor big fix on this and it should be all done.
In the next version I think you need to also include a "Close DB" option and I think it might be a good idea to root node in the tree that represents the database, not just the tables within it. This way a user can right click on the root node and just click "Generate Script" in order to script the whole DB. Currently the UI feels a bit clunky in this respect.
Thanks,
|
|
|
|
 |
|
 |
I have fixed the bug...and released a new version with all your suugestion except close db..because each window has a close button on the top right side.... so I thought not to implement it explicitly... Thanks for you feedback...
|
|
|
|
 |
|
 |
Fantastic ... off to get it installed now.
|
|
|
|
 |
|
 |
Great tool. I echo the ideas of being able to script all the tables at once ...
Carry on developing this tool. It's seriously neat.
|
|
|
|
 |
|
 |
The script generation is fabulous!!!
Maybe I missed it, but my only request would be the ability to do multiple tables with a single click.
Thanks a million! Awesome tool!
Mike
|
|
|
|
 |
|
 |
You are welcome sir
I will take note of the sugestion and try to implement in the future version.
|
|
|
|
 |
|
 |
I have released a new version of the tool keeping in mind of your suggestion. Let me know if that helps.
|
|
|
|
 |