C
CharlesEF
Hi All,
I have run into another problem that is eating my lunch. Should be
simple but I am having one heck of a time. Please look at this SELECT
statement:
SELECT [StateName] FROM States WHERE [[2DigitCountryCode]] = "US";
[2DigitCountryCode] is the SQL column name (because it sarts with 2?).
As the statement is shown I get the error message: [Microsoft][ODBC SQL
Server Driver][SQL Server]Unclosed quotation mark before the character
string '[2DigitCountryCode] = "US"'. What quotation marks is this
talking about?
I have gotten the SELECT statement to run, without error message, when
I change it to:
SELECT [StateName] FROM States WHERE '[[2DigitCountryCode]]' = "US";
But, this statement returns nothing. I know there are records to
return so I did something wrong. I've tried () and {} but problem
remains.
I am coding an ASP page using VBScript, connecting to an SQL 2000
server via ADO. I have tried so many things but nothing works for me.
My head hurts....
Can anyone see what I have done wrong? SQL Books Online was not much
help to me and I could not find any previous posts regarding my
problem.
Thanks for any help,
Charles
I have run into another problem that is eating my lunch. Should be
simple but I am having one heck of a time. Please look at this SELECT
statement:
SELECT [StateName] FROM States WHERE [[2DigitCountryCode]] = "US";
[2DigitCountryCode] is the SQL column name (because it sarts with 2?).
As the statement is shown I get the error message: [Microsoft][ODBC SQL
Server Driver][SQL Server]Unclosed quotation mark before the character
string '[2DigitCountryCode] = "US"'. What quotation marks is this
talking about?
I have gotten the SELECT statement to run, without error message, when
I change it to:
SELECT [StateName] FROM States WHERE '[[2DigitCountryCode]]' = "US";
But, this statement returns nothing. I know there are records to
return so I did something wrong. I've tried () and {} but problem
remains.
I am coding an ASP page using VBScript, connecting to an SQL 2000
server via ADO. I have tried so many things but nothing works for me.
My head hurts....
Can anyone see what I have done wrong? SQL Books Online was not much
help to me and I could not find any previous posts regarding my
problem.
Thanks for any help,
Charles