Firebird SQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesFirebird SQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old January 2nd, 2004, 04:50 PM
thomasj thomasj is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Posts: 10 thomasj User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Sql dialect?

Is it possible to change the Sql Dialect on a database that is already created?

I want to change the dialect by sql.

Any help?

regards
Thomas

Reply With Quote
  #2  
Old January 4th, 2004, 07:52 AM
upscene upscene is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Posts: 223 upscene User rank is Corporal (100 - 500 Reputation Level)upscene User rank is Corporal (100 - 500 Reputation Level)upscene User rank is Corporal (100 - 500 Reputation Level)upscene User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 7 h 14 m 50 sec
Reputation Power: 8
Hi,

Yes, you can change the dialect. Any GUI tool should be able to do it.

However, changing the dialect will not affect existing columns and datatypes.

For example:

In dialect 1, a NUMERIC(18, 0) internally is a DOUBLE, while on dialect 3, it's an INT64. Changing the dialect will not change the internal datatype.

The best thing you can do is create a new database (dialect 3) and run a script to create the seperate database objects that you got from your old (dialect 1) database.
__________________
Martijn Tonies
Database Workbench: developer IDE for Firebird, MySQL, InterBase, MSSQL Server and Oracle
Upscene Productions
http://www.upscene.com

Reply With Quote
  #3  
Old September 7th, 2004, 04:38 PM
lewian lewian is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Location: Germany, Berlin
Posts: 6 lewian User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 20 m 3 sec
Reputation Power: 0
Send a message via ICQ to lewian
Hi,
i´ve exactly the same problem...
I´m using IBExpert but i did not find anything to change the dialect of an existing database.
i can set the dialect for the client-dialect to 3, but the database is anymore in dialect 1.

How can i change the dialect of an existing database?
creating a new database and convert the old is not possible, because a merchandise management programm is working with it.

Thanks for help!
lewian

Reply With Quote
  #4  
Old September 8th, 2004, 01:34 AM
upscene upscene is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Posts: 223 upscene User rank is Corporal (100 - 500 Reputation Level)upscene User rank is Corporal (100 - 500 Reputation Level)upscene User rank is Corporal (100 - 500 Reputation Level)upscene User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 7 h 14 m 50 sec
Reputation Power: 8
Either check the IBExpert Help or download Database Workbench

I also believe you can use "gfix" (the command line tool) to change the dialect.

With regards,

Martijn Tonies
Database Workbench - developer tool for InterBase, Firebird, MySQL & MS SQL Server.
Upscene Productions
http://www.upscene.com

Reply With Quote
  #5  
Old September 8th, 2004, 03:21 AM
fikret fikret is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Location: Sarajevo, Bosnia
Posts: 111 fikret User rank is Corporal (100 - 500 Reputation Level)fikret User rank is Corporal (100 - 500 Reputation Level)fikret User rank is Corporal (100 - 500 Reputation Level)fikret User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 1 Day 5 h 32 m 11 sec
Reputation Power: 8
It's something like this

gfix -user SYSDBA -password masterkey dbserver:/db/mydb.fdb -sql_dialect 3

--

Best regards

Fikret Hasovic

TAMP R&D Team

FirebirdSQL Foundation member.

- Join today at http://www.firebirdsql.org/ff/foundation

JEDI VCS contributor

http://jedivcs.sourceforge.net/


Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesFirebird SQL Development > Sql dialect?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT