473,396 Members | 1,879 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

SQL 6.5 migrating to SQL 2000

Hi,

I've got a database that needs to migrate from SQL 6.5 to SQL 2000. I'm
having problems with Datetime data types. In SQL 6.5 the Date is shown as
'Mar 23 2004 12:00AM' but when I've copied the database across to SQL 2000,
although it's still a Datetime data type, it is displayed as '2004-03-23
00:00:00.000'. Unfortunately it means Stored Procedures called through a
front end Visual Basic application do not work.

Colleagues have suggested checking the collation, which I did and it's the
same as the older 6.5 database. Is there another property that needs to be
changed to allow the new Datetime dates to be shown in the desired format?
FYI I have Systems Administrator privileges on the older 6.5 database but
not on the new 2000 one.

I'm hoping there must be an flag/option I can change. Any help would be
gratefully appreciated.

Kind regards

Rich
Jul 23 '05 #1
1 1528
MSSQL stores data internally as binary values - it's entirely up to the
client to decide how to display them. It's not really clear from the
above where you're seeing that date format (Query Analyzer? your own
application?), but you should be using a 'neutral' format which MSSQL
will interpret correctly. In particular, YYYYMMDD will always work
(assuming you don't need the time part), but the two formats you
mentioned may not, depending on the MSSQL installation language, client
regional settings etc.

The information here should help to clarify how MSSQL handles dates:

http://www.karaszi.com/sqlserver/info_datetime.asp

If this doesn't help, I suggest you post some more details of exactly
how you call your stored procedures, how you're passing the datetime to
them, and some sample code to illustrate your problem. It would also be
useful to know what "do not work" means - do you get an error, no error
but unexpected results, silent failure etc.

Simon

Jul 23 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Adhik | last post by:
Hi, I have one 3 tier architecture application running on Windows 2000 Server. I have created replica of same machine on another machine where OS is Windows 2000 Advance Server. But when I...
2
by: Serdar Yegulalp | last post by:
I'm in the process of migrating a lot of data (millions of rows, 4GB+ of data) from an older SQL Server 7.0 database to a new SQL Server 2000 machine. Time is not of the essence; my main concern...
2
by: lcifers | last post by:
First off, sorry if my cross posting offends anyone. I'm posting this in Access and SQL Server groups - not sure which one is appropriate. I have a relatively simple ASP.NET/VB.NET application...
4
by: Chris Parker | last post by:
I've been given the task to migrate some existing MS Access mdb's from 97 to 2000 . This exercise will include converting all table forms and code modules. I'm aware in Access 2000 you there...
1
by: bonnie.tangyn | last post by:
Hello all I get Too few parameters expected 2 error and "The MS Jet Database engine cannot find the input table or query "myTempTablename". Make sure it exists and that its name is spelled...
6
by: Shai Levi | last post by:
Hi, I'm trying to migrate native c++ class to managed c++ class. The native class header definition looks as: class NativeClass { public: typedef void (CbFunc1)(int n,void* p);
11
by: Neil | last post by:
We are running SQL 7, using Access 2000 as a front end. Our network person is wanting to migrate to Windows 2003 (we're currently on Windows 2000), and wants to know if we should migrate to SQL...
0
by: murat-mur | last post by:
Hi all, Environment: My PC: MS Windows 2000 pro, DB2 Connect Client 7.1 Gateway: MS Windows 2000 server. DB2 Connect EE. DB2 z/OS V7.1 z/OS 1.6 php 5.1.2 is running on my PC. the below...
4
by: tootsuite | last post by:
Help. I have been tasked with upgrading a 2000 instance to 2005. I have actually done this before, but it was a long time ago, and I didn't do it alone. Now, the sitation is little different, and...
0
by: cathy25 | last post by:
Hi, we are planning on migrating our sql from version 2000 to 2005 (I know SQL 2005 is in market from a while). As a part of testing, i have installed sql server 2005 on my development box and able...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.