The problem is in your SQL query sintax or DB table field type.
Response.Write( strSQL) before Execute command and paste apeared query into MS SQL Query Analyzer for debugging.
User Profile
Collapse
-
Hi!
Use this little VBA code for uploading Excel data to MS SQL database.
Sub upload()
Set connAS400 = CreateObject("A DODB.Connection ")
connAS400.Open (" Provider=SQLOLE DB.1;InitialCat alog=dbname;Ser ver=servername; UID=user;PWD=pa ssword; ")
ConnOpenAS400 = True
connAS400.Comma ndTimeout = 100
For i = 1 To Workbooks(1).Wo rksheets(1).Use dRows.Count...Leave a comment:
No activity results to display
Show More
Leave a comment: