Article ID: 189683
Article Last Modified on 3/2/2005
rsOrderDetails.Open "[Order Details]", cnNWind, adOpenStatic, _
adLockReadOnly, adCmdTable
You can also use the back quote if you need to use the table name with
spaces. For example:
select * from `Order Details`.NOTE: You can only use the back quote in Access. A standard quote will not work.
table1 -------- table name
ff cc -------- column name
char(10)-------- column type
In ISQL ( aka query analyzer) you can use
select [ff cc] from table1
insert will occur via
insert into table1([ff cc]) VALUES('xx')
If you execute the statement
set quoted_identifier on
You can use
select 'ff cc' from table1
You can create a table that have column names with spaces
like:
create table table1([col1 xx] integer)
A standard quote will not work.
Back quotes do not currently work with back end as SQL Server 7.0.
Keywords: kbhowto kbdatabase kbjet KB189683