PC Review


Reply
Thread Tools Rate Thread

8 byte integers and SQL query extensions

 
 
somebody
Guest
Posts: n/a
 
      20th Jul 2007
I am working on a simple demo to showcase integration between a
proprietary system and a DBMS using Access 2003 and have stumbled into a
roadblock. Much to my surprise, Access doesn't seem to support 8 byte
integers whereas the tables of the backend system make heavy use of it.

Is this data type supported in Access 2007?

Also, is there any way to extend Access SQL through user-defined
functions? Say, I have a simple function (in the sense that it keeps no
state between calls) with a signature like:

int f(int x)

Is there a mechanism I can use it in a query, as in the following

select myintcolumn, f(myintcolumn)
from mytable

If the answers to the above questions are negative, what other utilities
would you recommend?

 
Reply With Quote
 
 
 
 
Douglas J. Steele
Guest
Posts: n/a
 
      20th Jul 2007
I'm not sure of how you'd be able to get around the 8 byte integer problem.
I don't believe it's any different in Access 2007.

Depending on where you're calling the query, you can define a public
function in a module (not a class module nor a module associated with a
form) and use it as you've illustrated. That will work if you're calling the
query from inside of Access. You won't be able to use the query from outside
of Access though.

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no private e-mails, please)


"somebody" <somebody@somewhere> wrote in message
news:(E-Mail Removed)...
>I am working on a simple demo to showcase integration between a proprietary
>system and a DBMS using Access 2003 and have stumbled into a roadblock.
>Much to my surprise, Access doesn't seem to support 8 byte integers whereas
>the tables of the backend system make heavy use of it.
>
> Is this data type supported in Access 2007?
>
> Also, is there any way to extend Access SQL through user-defined
> functions? Say, I have a simple function (in the sense that it keeps no
> state between calls) with a signature like:
>
> int f(int x)
>
> Is there a mechanism I can use it in a query, as in the following
>
> select myintcolumn, f(myintcolumn)
> from mytable
>
> If the answers to the above questions are negative, what other utilities
> would you recommend?
>



 
Reply With Quote
Reply

Thread Tools
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
when to use smaller integers like byte or short rather than INTEGER David Microsoft VB .NET 3 3rd Jan 2008 05:56 AM
A list of Consecutive Integers, can I search for missing integers =?Utf-8?B?Q00=?= Microsoft Excel Worksheet Functions 4 2nd Sep 2005 06:38 PM
2 byte unsigned integers =?Utf-8?B?RnJlZA==?= Microsoft Access External Data 0 28th Apr 2005 03:59 PM
System.Byte[] is the value returned after DB query - Why? =?Utf-8?B?SmFtZXM=?= Microsoft Dot NET 0 28th Mar 2005 01:31 AM
bigint (8 byte integers) =?Utf-8?B?YmlsbG10?= Microsoft Access External Data 0 2nd Feb 2005 05:03 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:25 PM.