473,426 Members | 1,603 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,426 software developers and data experts.

MS Access to SQL server connection string

5 Nibble
Hi Folks. I have an access application that is using SQL server 2019 for the backend. All of my "queries" work but when the Update and insert statements execute Access will display the append or Update warning but nothing is actually being written or changed in the SQL tables. I believe I need to establish a SQLOLEDB connection string in my access project but I am having trouble. I get a message the states "Object Required". Any assistance would be greatly appreciated. Thank you. So far my code for the connection looks like this:
Expand|Select|Wrap|Line Numbers
  1. Dim ConnStr As String
  2.  
  3. ConnStr = "Provider=SQLOLEDB;Data Source='FalconXtreme';" & _
  4.  "Initial Catalog='SacDb';Integrated Security= TRUE;"
  5.  
  6.  objConn.Open ConnStr
Jun 14 '21 #1
4 3915
NeoPa
32,556 Expert Mod 16PB
So, from your description it's clear you're doing something wrong. What that might be is very hard to tell from the information you share. Your queries work without working :-S

Do you actually have a connection to the SQL Server in any way that allows updating of data? What are the queries working with? Don't leave us trying to guess what should be in your question.
Jun 14 '21 #2
isladogs
456 Expert Mod 256MB
Following on from NeoPa's comments, please show an example of the code used in your update and insert SQL statements
Jun 14 '21 #3
hilmi123
5 Nibble
Can you share your execution of the sql statement?

For access front and sql be, you need to change your code for execution for delete, update and insert to "dbSeeChanges"

Eg

Expand|Select|Wrap|Line Numbers
  1. CurrentDb.Execute sql, dbSeeChanges
Jun 29 '21 #4
NeoPa
32,556 Expert Mod 16PB
Hilmi123:
For access front and sql be, you need to change your code for execution for delete, update and insert to "dbSeeChanges"
That's very true. Worth a try if you haven't already.
Jun 29 '21 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: J. Muenchbourg | last post by:
I keep getting "Unable to open registry key 'Temporary (volatile) Jet DSN " errors pointing to my connection string when the same connection string is working for a few of my other pages. The...
5
by: Fred Zuckerman | last post by:
Hello All, After reading in this group about the preference for connecting to a SQL Server using a connection string instead of a DSN file, I have done just that. BUT, I cannot update my data....
3
by: paulo | last post by:
Hello, I'm developing a web services apllication using SQL Server in mixed mode. I'm also using WSE 3.0. For each user in the application there's a corresponding user on the database. The...
1
by: madfisher | last post by:
Hi, I'm trying to set a conection string for my Access DB and I want to use a DSN. This is what I'm using: this.oleDbConn.ConnectionString =...
3
by: blue875 | last post by:
Ok, I've tried searching, and haven't found the answer, so it must mean everyone else but me already knows this. I have an Access 2000 form that I want to connect to an Access 2000 table in the...
2
by: SAL | last post by:
Hello, I am working with Framework 1.1 and Microsoft Enterprise Library 2005. I've used the Enterprise Library Configuration utility to create my app.config & dataConfiguration.config files. ...
3
by: venkatanarasimhaa | last post by:
Hi, I am developing one application in VB as front end and SQL Server as backend. When I am trying to connect to SQL server, If I have Local Admin rights to my system then it is working fine...
2
by: Man T | last post by:
I just wonder what is/are your practices to build the SQL Server connection string? Use object to build the connection string from config file or somewhere?
2
by: Lamont J | last post by:
I have configured Sql Server Express on a server, Enabling TCP/IP and Named Pipes to accept remote connections. However when i attempt to connect from VB.net on another PC on the same network I get...
6
by: apselvamdp | last post by:
Hi all, I have tried to connect my sql server 2005 using a domain name. i have bought a domain name and a dns client. this is my connection string { SqlConnection sqlconn = new...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.