home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Development
General Development (no feature request here!)
MySQL option
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="dunkstar" data-source="post: 108603" data-attributes="member: 28804"><p>One of the solutions I have done is this:</p><p></p><p>sql = sql.Replace("---", "#"); //Added by Dunkstar, MySQL dont use --- as comments</p><p> sql = sql.Replace("use master", " "); //Added by Dunkstar, there is no master database in MySQL</p><p> sql = sql.Replace("IF EXISTS (SELECT name FROM sysdatabases WHERE name = N'TvLibrary')", " "); //Added by Dunkstar, dont work in MySQL</p><p> sql = sql.Replace("IDENTITY(1,1) NOT NULL", "NOT NULL AUTO_INCREMENT"); //Added by Dunkstar, MySQL uses Auto_increment</p><p> sql = sql.Replace("IDENTITY(1,1)NOT NULL", "NOT NULL AUTO_INCREMENT"); //Added by Dunkstar, MySQL uses Auto_increment</p><p> sql = sql.Replace(" Version(", " Version ("); //Added by Dunkstar</p><p> sql = sql.Replace(" version(", " version ("); //Added by Dunkstar</p><p> sql = sql.Replace(" WITH CHECK ADD ", "ADD"); //Added by Dunkstar </p><p></p><p>Dont know what your thoughts are on this.</p></blockquote><p></p>
[QUOTE="dunkstar, post: 108603, member: 28804"] One of the solutions I have done is this: sql = sql.Replace("---", "#"); //Added by Dunkstar, MySQL dont use --- as comments sql = sql.Replace("use master", " "); //Added by Dunkstar, there is no master database in MySQL sql = sql.Replace("IF EXISTS (SELECT name FROM sysdatabases WHERE name = N'TvLibrary')", " "); //Added by Dunkstar, dont work in MySQL sql = sql.Replace("IDENTITY(1,1) NOT NULL", "NOT NULL AUTO_INCREMENT"); //Added by Dunkstar, MySQL uses Auto_increment sql = sql.Replace("IDENTITY(1,1)NOT NULL", "NOT NULL AUTO_INCREMENT"); //Added by Dunkstar, MySQL uses Auto_increment sql = sql.Replace(" Version(", " Version ("); //Added by Dunkstar sql = sql.Replace(" version(", " version ("); //Added by Dunkstar sql = sql.Replace(" WITH CHECK ADD ", "ADD"); //Added by Dunkstar Dont know what your thoughts are on this. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
General Development (no feature request here!)
MySQL option
Contact us
RSS
Top
Bottom