BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

yes/no field vs. bit field

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (Desktop)
View previous topic :: View next topic  
Author Message
Terry
Guest





PostPosted: Wed Feb 21, 2007 1:26 am    Post subject: yes/no field vs. bit field Reply with quote



I have been developing an app using a microsoft access db as a test
vehicle. ( the data can be local ). The 'real' database is a microsoft
sql db.. I would like to be able to run the app using the access db for
testing, then switch to using the sql db for production. I am having a
problem with the yes/no field vs. the bit field. in some sql statements
I need to test if a logical is true. Access only works if the test is
'where lassigned = true ' . sql db does not like 'true'. If I use a
where clause 'where linactive = true', error 'invalid column name 'true'
'is the result. only works if test is 'where lassigned = 1 '. Is
there a way to make this compatible? Or are my days of local testing
coming to an end?

Thanks for any suggestions.
Back to top
Bill Todd
Guest





PostPosted: Wed Feb 21, 2007 2:45 am    Post subject: Re: yes/no field vs. bit field Reply with quote



Download a copy of MSDE or SQL Server Express (depending on which
version of SQL server you will use in production) and use that for
testing. Then you know you will not have compatibility issues.

--
Bill Todd (TeamB)
Back to top
Wayne Niddery [TeamB]
Guest





PostPosted: Wed Feb 21, 2007 9:31 pm    Post subject: Re: yes/no field vs. bit field Reply with quote



Terry wrote:
Quote:
I have been developing an app using a microsoft access db as a test
vehicle. ( the data can be local ). The 'real' database is a
microsoft sql db.. I would like to be able to run the app using the
access db for testing, then switch to using the sql db for
production. I am having a problem with the yes/no field vs. the bit
field.

Access is probably the worse possible choice for this, it has it's own very
unique dialect of SQL, it is not at all like the dialect in MS SQL, which is
a lot more standard. There is an MS SQL Express edition that can be used for
development and/or "local" use.

--
Wayne Niddery - Winwright, Inc (www.winwright.ca)
"Light is faster than sound, which is why some folks appear bright
before they speak."
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (Desktop) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.