Skip to main content
Question

SQLExecutor on MS SQL Server 2008 R2


francis_m
Contributor
Forum|alt.badge.img+7
HI,

 

I need to make some simple sql query (like select COUNT(*)) on ArcSDE Table stored on a MS SQL server.

 

When I use the SQLExecutor, I can't connect to my DB.  How to connect.

 

I can read with a reader, I can write with a writer, but I need to perform some simple SQL query.

 

How to do this.

 

Server ?

 

Database ?

 

Do I have to create an OLDB connection on my windows OS ?

 

Thanks!

5 replies

francis_m
Contributor
Forum|alt.badge.img+7
  • Author
  • Contributor
  • May 14, 2014
See the error FME return

 

MS SQL Server Reader: Connection failed.  Connection string `Provider=SQLOLEDB;Data Source=Q1541BE;Initial Catalog=gs0599_i5;User ID=[MY_USER];Password=[MY PASSWORD]'. Provider error `(-2147467259) [DBNETLIB][ConnectionOpen (Connect()).]Ce serveur SQL n'existe pas ou son accès est refusé.'

 

Failed to open reader

 

Failed to open reader

 

A fatal error has occurred. Check the logfile above for details

 

A fatal error has occurred. Check the logfile above for details

david_r
Evangelist
  • May 15, 2014
Hi,

 

 

what are the (working) connection parameters you're using to connect with SDE? And which parameters have you tried for the MS SQL Server reader?

 

 

David

francis_m
Contributor
Forum|alt.badge.img+7
  • Author
  • Contributor
  • May 15, 2014
For a GEODATABASE_SDE reader / writer  I work with those parameters :

 

Server : s.o. (mean nothing but have to write something)

 

Username : my_user

 

Password : my_password

 

Instance Name : sde:sqlserver:q1541VIP,1456

 

Database : gs0599_i5

 

 

If I want to use SQLExecutor I need those parameters :

 

The value entered does not work...

 

Format : Microsoft SQL Server Non-spatial

 

Dataset : gs0599_i5

 

Server : q1541VIP,1456

 

Database : gs0599_i5

 

Username : my_user

 

Password : my_password

 

 


david_r
Evangelist
  • May 15, 2014
Hi,

 

 

when I look at the error message that you posted above and compare it with what you posted just now, I see a discrepancy between the server names:

 

 

Log server name: Q1541BE

 

SQLExecutor server: q1541VIP

 

 

Could this be the cause?

 

 

David

francis_m
Contributor
Forum|alt.badge.img+7
  • Author
  • Contributor
  • May 15, 2014
Hi!

 

Yes, thats depends on where I run my FME.  I need to connect BE (for Backend) on another machine, but I need to use VIP on my computer, but it's the same.

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings