Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What type shall I use in SQL Server 2008 for VFP memo fi
Message
 
 
To
30/08/2010 09:53:00
General information
Forum:
Microsoft SQL Server
Category:
Database design
Miscellaneous
Thread ID:
01478926
Message ID:
01479197
Views:
50
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform