Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What type shall I use in SQL Server 2008 for VFP memo fi
Message
 
 
À
30/08/2010 09:53:00
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Conception bases de données
Divers
Thread ID:
01478926
Message ID:
01479197
Vues:
51
>SQLEXEC(gnConnHandle , [INSERT INTO dbo.contacts (firstname,lastname) SELECT fname,lname FROM kba_data.contacts])
>
>SQLDISCONNECT(gnConnHandle )
>
>
>does not insert anything
>
>how would i do that correctly
>
>
>Peter

If kba_data is a database on the same SQL Server, then try:
SQLEXEC(gnConnHandle , [INSERT INTO dbo.contacts (firstname,lastname) SELECT fname,lname FROM kba_data.dbo.contacts])
Also always test the return value of SQLEXEC and use AERROR() when it's -1.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform