Log inUsernamePassword
Log me on automatically each visit    
Register
Register
Log in to check your private messages
Log in to check your private messages
Visual Basic Forum for Visual Basic Programmers VB Forum Index » Database & Reporting

Post new topic   Reply to topic
sql statement don't run in MS Sql server
View previous topic :: View next topic  
Author Message
vhmau
Newbie


Joined: 22 Sep 2005
Posts: 3

PostPosted: Jun 12th, 2006 03:51 AM    Post subject: sql statement don't run in MS Sql server Reply with quote

Hi everyone
I have this vb6 code:
strSql = "select * into [text; FMT=Delimited; HDR=Yes; Database=c:\temp].[TC.txt] from Employees"
con.Execute strSql
if my con connects to MS access database, this bulk of code run ok. If my con connects to MS Sql server 2000 database, this bulk of code returns error.
Can anyone shows me how to do in MS Sql server 2000 to get the same result as when running this code with MS access database ?.
Thanks.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Visual Basic Forum for Visual Basic Programmers VB Forum Index » Database & Reporting All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Visual Basic Forum runs phpBB | Forum Template © iOptional
VB Resources | SSL | Visual Basic