Jump to content
Xtreme .Net Talk

Recommended Posts

Posted (edited)

Hi

 

Is is possible to force a type cast when selecting from an access database

Consider: tableA with Columns 1.Id (int - size 3), 2.Name (text - size 50) and 3. date (date)

 

Now i want to do a select * on the table but i want to select the date as a text variable??

Select Id, Name, (date) as text

from tableA

 

As i need to take the result of the select statement and insert it into a SQL Server 2000 database where the date is represented by the datetime variable. When i try to do it without any modifications, i get an error message telling me that the date in access is bigger that the date in SQL SErver

 

Any suggestions.

Mike55

Edited by mike55

A Client refers to the person who incurs the development cost.

A Customer refers to the person that pays to use the product.

------

My software never has bugs. It just develops random features. (Mosabama vbforums.com)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...