PC Review


Reply
Thread Tools Rate Thread

data does not 'save' in sql server back end

 
 
Ian Burton
Guest
Posts: n/a
 
      30th Sep 2009

Hi,
I have an access front end connected to a SQL Server back end. I run a
series of update queries, which take data from a few access tables, and
run append queries into SQL Server. this process can take a couple of
hours of quite intensive query activity each time to run about a hundred
queries, some with code functions from vba inside.

The functions all seem to run fine, and I can see all the appended data
inside the database. However, If I close the access database down, and
reopen it again, ALL the SQL SERVER data just appended has gone, almost
as if a transaction has been rolled back.

I would appreciate any clues as to where I might look for a solution. I
just have no ideas why the data would appear to be there. The reason I
close down the database is because if I go to a query I have not touched
to view some other data I get an ODBC error.

I am trapping errors, but I do use the line Docmd.setwarnings false,
because I am running append and update queries. I do not get any vba
errors though.

Is there some type of function I can run that will close down any
connections that might be causing a lock or something? then I can use
this function between each pass of the database or something?

Any clues gratefully received.
Thanks,
Ian Burton
 
Reply With Quote
 
 
 
 
Ian Burton
Guest
Posts: n/a
 
      30th Sep 2009
In article <(E-Mail Removed)>, Ian8888
@hotmail.com says...
>
> Hi,
> I have an access front end connected to a SQL Server back end. I run a
> series of update queries, which take data from a few access tables, and
> run append queries into SQL Server. this process can take a couple of
> hours of quite intensive query activity each time to run about a hundred
> queries, some with code functions from vba inside.
>
> The functions all seem to run fine, and I can see all the appended data
> inside the database. However, If I close the access database down, and
> reopen it again, ALL the SQL SERVER data just appended has gone, almost
> as if a transaction has been rolled back.
>
> I would appreciate any clues as to where I might look for a solution. I
> just have no ideas why the data would appear to be there. The reason I
> close down the database is because if I go to a query I have not touched
> to view some other data I get an ODBC error.
>
> I am trapping errors, but I do use the line Docmd.setwarnings false,
> because I am running append and update queries. I do not get any vba
> errors though.
>
> Is there some type of function I can run that will close down any
> connections that might be causing a lock or something? then I can use
> this function between each pass of the database or something?
>
> Any clues gratefully received.
> Thanks,
> Ian Burton


Hi, as a follow up,
the error code I get from Microsoft Access for the ODBC is:
Run-time error 3146
ODBC - call failed
thanks again in advance for any iassistance.
Ian Burton
 
Reply With Quote
 
Guest
Posts: n/a
 
      16th Nov 2009


"Ian Burton" <(E-Mail Removed)> a écrit dans le message de groupe de
discussion : (E-Mail Removed)...
>
> Hi,
> I have an access front end connected to a SQL Server back end. I run a
> series of update queries, which take data from a few access tables, and
> run append queries into SQL Server. this process can take a couple of
> hours of quite intensive query activity each time to run about a hundred
> queries, some with code functions from vba inside.
>
> The functions all seem to run fine, and I can see all the appended data
> inside the database. However, If I close the access database down, and
> reopen it again, ALL the SQL SERVER data just appended has gone, almost
> as if a transaction has been rolled back.
>
> I would appreciate any clues as to where I might look for a solution. I
> just have no ideas why the data would appear to be there. The reason I
> close down the database is because if I go to a query I have not touched
> to view some other data I get an ODBC error.
>
> I am trapping errors, but I do use the line Docmd.setwarnings false,
> because I am running append and update queries. I do not get any vba
> errors though.
>
> Is there some type of function I can run that will close down any
> connections that might be causing a lock or something? then I can use
> this function between each pass of the database or something?
>
> Any clues gratefully received.
> Thanks,
> Ian Burton


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Open Word Document from SQL Server and Save back again Jude_44 Microsoft ASP .NET 8 22nd Feb 2008 12:54 AM
HOw to force file save back to server location? =?Utf-8?B?RGFuaWVs?= Microsoft ASP .NET 1 11th Dec 2005 09:37 AM
edit shared XML via asp.net page and save back to server. Glenn M Microsoft ASP .NET 4 20th Jul 2004 11:16 AM
how to save record from datagrid back to sql server? jaYPee Microsoft ADO .NET 2 20th Jan 2004 02:37 PM
how to save record from datagrid back to sql server? jaYPee Microsoft VB .NET 4 20th Jan 2004 02:37 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:21 AM.