Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQLEXEC() and Web Connection
Message
De
15/11/2004 15:52:18
 
Information générale
Forum:
Visual FoxPro
Catégorie:
West Wind Web Connection
Divers
Thread ID:
00961237
Message ID:
00961520
Vues:
8
Thanks! Actually, I already use the command "USE databasename" prior to any query.

I was wondering if using RevertToSelf() would be a viable option.

Bob

>>I have an app that talks to SQL Server via the SQLEXEC() function. On my development PC I can talk to the SQL database directly no problem, use the code to run queries, etc.
>>
>>But when I run those same code/queries via Web Connection I get an error: Invalid Object Name 'tablename' where the tablename is the table I'm trying to query.
>>
>>I've gone into Enterprise manager, created a login for the IUSER_COMPUTERNAME account (with my computername), and given it all the possible permissions I can think of and still no go... :(
>>
>>Any ideas? I'm really frustrated. I know its some kind of permission thing, but I can't figure out what I am missing.
>>
>>Bob
>
>Bob,
>
>Make sure that your DSN has the corret database set as the default database or else you need to qualify your table name with the Database.DBO.TableName as in;
>
>SELECT * FROM DatabaseName.DBO.TableName ...
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform