 |
|
 |
This guy has created a life saving utility. He created a utility to do what Micro-soft is not able to handle, till now.
|
|
|
|
 |
|
 |
Wow. This is awesome. I've been looking for a program to do MS SQL -> SQLite conversion now for hours. Found this, it does it perfectly, it's not horribly bloated like the others I've looked at. Just awesome.
|
|
|
|
 |
|
 |
Dear Sir,
I got a problem with some view of mine when i convert sql to sqlite db
this is a few samples of my rejected view
1.CREATE VIEW vw1_54630
AS
SELECT TOP 100 PERCENT YEAR(InputDate) AS tahun, YEAR(InputDate) AS tahun2
FROM PackingList
GROUP BY YEAR(InputDate)
HAVING (YEAR(InputDate)
ORDER BY YEAR(InputDate)
2.CREATE VIEW vw1_24000
AS
SELECT TOP 100 PERCENT TruckNo, DriverName
FROM MasterTrucking
ORDER BY TruckNo
3.CREATE VIEW vOutGroupByInc
AS
SELECT PickingDetails.IncomingNumber, Outgoing.PartNumberSW, Outgoing.PartNumberCust, Outgoing.PartName, SUM(Outgoing.QtyPack) AS QtyOut,
Outgoing.Status
FROM PickingDetails RIGHT OUTER JOIN
Outgoing ON PickingDetails.PartNumberSW = Outgoing.PartNumberSW AND
PickingDetails.PartNumberCustomer = Outgoing.PartNumberCust AND PickingDetails.OutGoingNumber = Outgoing.OutgoingNumber
GROUP BY Outgoing.PartNumberSW, Outgoing.PartNumberCust, Outgoing.PartName, PickingDetails.IncomingNumber, Outgoing.Status
HAVING (Outgoing.Status ='C')
hope u can figured it out for me
many thanks sir
|
|
|
|
 |
|
|
 |
|
 |
Thanks
Regarding the TOP 100 issue - since the tool is not that sophisticated as to automatically convert the SQL Server T-SQL dialect to the SQLITE equivalent you may encounter situations when you will need to manually edit the view definition. That's why I've opened a special dialog to alter the SQL code in such cases. Same thing for triggers.
Liron
|
|
|
|
 |
|
 |
The error dialog was opened as expected.
You did a great, thank you for sharing the code.
|
|
|
|
 |
|
 |
your's tool is very good,I fand it long long time.
thanks
|
|
|
|
 |
|
 |
Thanks
|
|
|
|
 |
|
 |
Hi Liron, thanks for sharing the code. It is very organized and documented. This tool is very valuable for Android developers moving databases from SQL Server. In fact, exporting directly from SQL 2008 doesn't work fine if you move more than one table at a time. This tool does it perfectly.
Regards,
Aaron
|
|
|
|
 |
|
 |
Hello,
is it possible to convert SQL Geometry type to SqLite using SPATIALITE or other solution ?
regards,
Laurent
|
|
|
|
 |
|
 |
Maybe, at the time I wrote this library I didn't know of any spatial data types in SQLite (and still doesn't ..)
Liron
|
|
|
|
 |
|
 |
YOU!...are the man.
Don't know if you're taking feature requests, but I'd love to see it handle datetimeoffset datatype.
Take care,
Sean S
Seattle, WA
|
|
|
|
 |
|
 |
Hi Sean
Thanks for the kind words
No problem adding support ..
Can you send me a sample database file (to liron.levi@gmail.com) with datetimeoffset so I can check ?
Thanks
Liron
|
|
|
|
 |
|
 |
Why log4net.dll ref. for ?
|
|
|
|
 |
|
 |
To issue log files of course
Liron
|
|
|
|
 |
|
 |
This is very strong work. Thanks for putting this out on the web. It worked first time for me. I use SQL Server for editing data and SQLITE for disseminating data on Iphone/Android.
|
|
|
|
 |
|
 |
I'm trying to migrate from MSQL2000 to SQlite3
There is an error saying: Cannot cast object type "System.DBNull" to type "System.String".
here is the trace log:
ERROR 2011-11-11 15:58:55,530 ( ) - Failed to convert SQL Server database to SQLite database
System.InvalidCastException: Cannot cast object type "System.DBNull" to type "System.String".
в DbAccess.SqlServerToSQLite.ReadSqlServerSchema(String connString, SqlConversionHandler handler, SqlTableSelectionHandler selectionHandler)
в DbAccess.SqlServerToSQLite.ConvertSqlServerDatabaseToSQLiteFile(String sqlConnString, String sqlitePath, String password, SqlConversionHandler handler, SqlTableSelectionHandler selectionHandler, FailedViewDefinitionHandler viewFailureHandler, Boolean createTriggers)
в DbAccess.SqlServerToSQLite.<>c__DisplayClass1.b__0(Object state)
version of the Converter is 1.16.1501.0
.Net framework 4.0.30319
|
|
|
|
 |
|
 |
Can you email me a sample database to check ? send the email to liron.levi@gmail.com
Thanks
Liron
|
|
|
|
 |
|
 |
This is a really nicely done tool.
Worked on the first shot.
5 stars
|
|
|
|
 |
|
 |
Thanks for the compliment
If you need to compare SQLite databases then I wrote another tool (also in code project) called SQLite Compare to do the job.
Liron
|
|
|
|
 |
|
 |
Great program, but converts NULL to empty string.
Why?
|
|
|
|
 |
|
 |
Don't know about such behavior. Can you send me a sample database to check ?
Thanks
Liron
|
|
|
|
 |
|
 |
I've checked the code and didn't see any NULL field that was converted to empty string.
In fact - I didn't see any empty strings in the generated database.
You can check this by comparing the file to itself using the SQLITE-COMPARE utility (also in codeproject) and checking the data tab. You'll see that all NULL strings were converted to NULL strings.
Liron
|
|
|
|
 |
|
 |
My mistake , sorry
|
|
|
|
 |
|
 |
There is some errors.Thank you for reply!
|
|
|
|
 |