Quantcast
Channel: Forums - Geodatabase & ArcSDE
Viewing all articles
Browse latest Browse all 1584

Error Creating Table - ArcGIS 10.1 w/ SQL Server

$
0
0
Hello,
I am having a problem creating a table in an SDE database using ArcGIS 10.1 w/ SQL Server 2008 R2 SP1 (x64). I ran a SQL Profiler trace and the offending SQL batch is as follows:

declare @p1 int
set @p1=NULL
exec sp_prepare @p1 output,NULL,N'select PREMISEHAZARD_SDE.S-P1-PREMISEHAZARDSDE.NEWTABLE4.* from PremiseHazard_SDE.S-P1-PREMISEHAZARDSDE.NEWTABLE4 ',1
select @p1

If I pull out the Select statement by itself and paste it into a SQL Management Studio Query Window, it reports a syntax error as a result of my schema name containing dashes (hyphens) and not being enclosed by quotes or brackets in the query generated by the SDE client library. Is there something I'm missing in my ArcGIS settings to force database object names to be enclosed within quotes or brackets?

Thanks!
Michael Thompson
Motorola Solutions

Viewing all articles
Browse latest Browse all 1584

Trending Articles