Ask a Question related to Coldfusion Database Access, Design and Development.
-
cheftimo #1
MS SQL 2005 and ntext
I have a simple SELECT statement:
SELECT RestaurantID, Status, RestaurantName, City, PostalCode, EmailAddress,
URL
FROM tblRestaurants
WHERE URL <> ''
It works with an Access mdb but not with MS SQL 2005. I get an error "varchar
and ntext data types are incompatible with the <> (NEQ) operator". Of the
above, the only ntext colum is URL; when I remove it, the query works fine,
even though other colums are type varchar. Any ideas?
cheftimo Guest
-
ANNOUNCE: DBD::Informix - IBM Informix Database Driver for PerlDBI Version 2005.01 (2005-03-14) released
IBM Informix Database Driver for Perl DBI Version 2005.01 (2005-03-14) has been uploaded to CPAN. IBM Informix Database Driver for Perl (also... -
The FreeBSD Diary: 2005-02-06 - 2005-02-26
The FreeBSD Diary contains a large number of practical examples and how-to guides. This message is posted weekly to freebsd-questions@freebsd.org... -
The FreeBSD Diary: 2005-01-30 - 2005-02-19
The FreeBSD Diary contains a large number of practical examples and how-to guides. This message is posted weekly to freebsd-questions@freebsd.org... -
createparameter ntext
I am running Visual Basic 6.0 with Sp5 connecting to SQL 2000 with latest SP. Is it possible to insert a record into a table with 1 of the... -
nText
SQL Server 2000 I am trying to pull off a record from a table which has 2 ntext fields. How do I retireve all the information stored within these... -
PaulH *ACE* #2
Re: MS SQL 2005 and ntext
cheftimo wrote:
can the URL column be NULL & is that the logic you're after? if so, try> I have a simple SELECT statement:
> SELECT RestaurantID, Status, RestaurantName, City, PostalCode, EmailAddress,
> URL
> FROM tblRestaurants
> WHERE URL <> ''
WHERE URL IS NOT NULL
PaulH *ACE* Guest
-
philh #3
Re: MS SQL 2005 and ntext
The only valid comparator for text and ntext fields is the LIKE function. These fields can be up to 2GB in length, so you could imagine the performance hit for a complete comparison of values.
philh Guest
-
PaulH *ACE* #4
Re: MS SQL 2005 and ntext
philh wrote:
IS NULL/IS NOT NULL works on ntext/text ok. but i guess that raises the question> The only valid comparator for text and ntext fields is the LIKE function.
> These fields can be up to 2GB in length, so you could imagine the performance
> hit for a complete comparison of values.
of why use ntext for a column holding URLs? i would guess nvarchar(1000) would
be more than enough.
PaulH *ACE* Guest



Reply With Quote

