Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Migration of database from SQLBASE TO MS SQLSERVER 2000

Status
Not open for further replies.

amb3

IS-IT--Management
May 20, 2003
2
NG
Hi,

I am going to migrate the database present in SQLBASE to MS SQLSERVER 2000.
Please let me know if these two databases are compatible and whether the above migration can be done.
 
Depends on your definition of compatible. The migration can be done. I'm in the process of converting from SQLBase to SQL Server now.

There are a number of issues you will have to address:

SQLBase has Date and Time data types natively. SQL Server has only DateTime. (Although you can define your own types.)

SQLBase reserved words SYSDATETIME and USER are replaced by SQL Server reserved words CURRENT_TIMESTAMP and CURRENT_USER.

SQL Server uses "+" for concatenation instead of "||"

Dates are not well parsed when expressed as constants. Generally best to use bind variables or quoted strings and let the compiler convert to date(time). Date constants syntax is different: instead of 2003-05-29-13.30.00.000000 you would need to use something like "5/29/2003 13:30:00.000"

Functions need to be replaced. E.g. IsNull() replaces @NullValue(). Not all functions have direct counterparts, but in the worst case you can create your own thru what is called extended stored procedures.

Date arithmetic is done with functions in SQL Server, not the simple add and subtract that works so well in SQLBase.

Security is a little more complicated. There is no counterpart to declaring public synonyms in SQL Server, so unless dbo owns the table the name must be fully qualified to use it.

The optimizer is not as good as SQLBase, but there is provision for you to provide a "hint" as to what index should be used when necessary.

Anyway, that's a start.
 
Hello! I like to know what is the technique to use SQLBASE database (*.dbs) file on web for data driven websites. I am a webmaster. I have not worked with GUPTA SQLBASE yet, I know some SQL. Kindly give you expert advice since I am really confused how to go about it.

Thanx in advance,

Prince Marc Haden
India
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top