Welcome to dbFreaks.com!
FAQFAQ   SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Visual Basic ADO-trouble

 
   Database Help (Home) -> Visual Basic RSS
Related Topics:
sql query returns in wrong format - Hi, Hope someone can help me with this. I have MS SQL 2000 database where i have Table and there a column wich is data type All data in this column is in form So why when i run .asp page with simple query to..

arrays - is there a way to the contents of an array (looping through the array) and storing each item in a comma delimited string? Thanks!

DataReport PageBreak - Hi everyone, I would like to know how to force pagebreak in a for example after 5 records printed. Thank you all

Possible Use of a Cursor - I have a complex query that I hope I can explain it well enough for everyone to I have a table that contains for work Contained in the table are these are groupings of machining

Scroll Bars - Is there a way to find the size of on a system using Visual Basic 6.0? I know how to look and change them on the display but I don't know how to access that from within Visual Basic.
Next:  "Enter" in TextBox???  
Author Message
Eric Anderson

External


Since: Jun 05, 2004
Posts: 1



(Msg. 1) Posted: Sat Jun 05, 2004 10:46 pm
Post subject: Visual Basic ADO-trouble
Archived from groups: comp>lang>basic>visual>database (more info?)

Hello

I have some problem converting my VB-code from using MS Access to Microsoft
SQL 2000. I imported my Access-file into SQL Server and changed the
connecting-string which connects to the database. Reading entries from the
new location works perfectly fine. However adding new entries doesn't. I get
no errors what-so-ever. Nothing gets into the table.

Here is a part of the code:

'datTrackData is an ADODC-control.

strConnect = "server=(local);PROVIDER=SQLOLEDB.1;INITIAL
CATALOG=Airtools;Application Name = Airtools
Jingle;uid=Airtools;pwd=<removed>;"""
form1.datTrackData.ConnectionString = strConnect
form1.datTrackData.RecordSource = "select * from Trackdata Order by ID"
form1.datTrackData.Refresh

(...)

form1.datTrackData.Recordset.AddNew
form1.datTrackData.Recordset.Fields("Filename").Value = "Hello"

(...)

form1.datTrackData.Recordset.Save
form1.datTrackData.Recordset.UpdateBatch adAffectAll

This code (with another connectiongstring) works with MS Access but not with
MS Sql. Yep, I've checked the permission already.

Any ideas what might be wrong?

Regards
Eric Anderson

 >> Stay informed about: Visual Basic ADO-trouble 
Back to top
Login to vote
Display posts from previous:   
   Database Help (Home) -> Visual Basic All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]