Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Syntax for Calling SQL View using CursorAdapter
Message
 
À
23/02/2005 16:47:07
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
MS SQL Server
Divers
Thread ID:
00989846
Message ID:
00989875
Vues:
28
>>>Hi All,
>>>
>>>What do I need to put in the 'SelectCmd' property of a CursorAdapter to use a SQL View?
>>>
>>>Aloha,
>>>
>>>James
>>
>>James put by Example:
>>
>>select customer.id, customer.name from customers
>>
.
>
>Hey Vladimir,
>
>Sorry I should have been more specific. I am looking for what the syntax is to call a SQL view stored in a SQL Server database.
>
>I know that to call a stored procedure you store the following in the CursorAdapter's SelectCmd:
>
>Exec <StoredProcName>
>
>
>How do I call a view stored in my SQL database?
>
>Aloha,
>
>James


Jemes,
I never need to call View stored in my SQL.

Now I examine this in Home.

With SQL Query Analyzer this is:
SET QUOTED_IDENTIFIER ON 
GO
SET ANSI_NULLS ON 
GO

ALTER   VIEW dbo.VIEW1 AS SELECT     dbo.Distributori.* FROM         dbo.Distributori
GO
SET QUOTED_IDENTIFIER OFF 
GO
SET ANSI_NULLS ON 
GO
_______________________________________________________________
Testing displays the presence, not the absence of bugs.
If a software application has to be designed, it has to be designed correctly!
_______________________________________________________________
Vladimir Zografski
Systems Analyst
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform