473,557 Members | 2,842 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

URGENT HELP PLS: select substring('NY', status/1024&1+1,1) from master..sysdata bases where name=DB_NAME()

Hi Everyone,

All the very best for 2004!!

i need urgent help with this problem, the users are about to skin me
alive!!

we have an access front end with linked to sql server 2k tables.

when a user tries to insert a record into one of the tables it
"randomly" returns a generic ODBC error and fails to save. on other
occasions the same record will save.

a trace was applied and the following select seemed to appear right
after the insert statement whenever it failed:

select substring('NY', status/1024&1+1,1) from master..sysdata bases
where name=DB_NAME()

i had a look at other articles in the groups re this select statement,
but could not find a clear answer.

i have tried the insert statements as both SQL pass throughs and just
plain docmd.runsql's

can someone help me with the following:

* what is the purpose of the select?
* what other investigations can i do to get more info on why this
should be happening?
* how can i stop it?

the table i am doing the inserts into is showing as have a numeric
data type field in sqlserver, but the linked table shows this numeric
field as text - could this be the problem?? this field is not used in
the insert statement.

i could not find any references in the MS knowledge base.

any and all help would very gratefully received.

Edwinah63
Jul 20 '05 #1
2 6369
ed*****@custome rcare.com.au (Edwinah63) wrote in message news:<d7******* *************** ****@posting.go ogle.com>...
Hi Everyone,

All the very best for 2004!!

i need urgent help with this problem, the users are about to skin me
alive!!

we have an access front end with linked to sql server 2k tables.

when a user tries to insert a record into one of the tables it
"randomly" returns a generic ODBC error and fails to save. on other
occasions the same record will save.

a trace was applied and the following select seemed to appear right
after the insert statement whenever it failed:

select substring('NY', status/1024&1+1,1) from master..sysdata bases
where name=DB_NAME()

i had a look at other articles in the groups re this select statement,
but could not find a clear answer.

i have tried the insert statements as both SQL pass throughs and just
plain docmd.runsql's

can someone help me with the following:

* what is the purpose of the select?
* what other investigations can i do to get more info on why this
should be happening?
* how can i stop it?

the table i am doing the inserts into is showing as have a numeric
data type field in sqlserver, but the linked table shows this numeric
field as text - could this be the problem?? this field is not used in
the insert statement.

i could not find any references in the MS knowledge base.

any and all help would very gratefully received.

Edwinah63


The SELECT is checking if the database is read-only (see
"sysdatabas es" in Books Online) - possibly a standard query from your
client library?

As for your INSERT issue, it's hard to say without more information,
but I would try capturing the failed INSERT statements using Profiler,
then execute them manually in Query Analyzer. You may get a more
precise error message that way. It may be a data type mismatch, if
Access is treating the column as character data instead of numeric
data, or it may be something else entirely.

If you are still having problems, perhaps you could post the DDL for
your table (CREATE TABLE statement), along with examples of INSERT
statements that work and do not work (from Profiler), as well as the
exact ODBC error.

Simon
Jul 20 '05 #2
Hi Simon,

thanks for your reply.

the select statement above came from sql profiler. i tried to apply
an odbc trace on the machine via the ODBC settings (Win 2k operating
system on client) but it crashed.

the exact error message is "ODBC-Connection to 'Trips' failed"

here is the T-SQL insert statement that seems to fail:

INSERT INTO Crmcalls (clalpha, consultant, Attitude, Category,
subcategory, subcatdetails, CallDate, CallTime) VALUES ('FLQ0350','
',0,'Client Call','Enquiry' ,'48618297','1/29/2004','1/29/2004
11:20:12')

the table DDL is
CREATE TABLE [dbo].[CRMCalls] (
[CRMCallsID] [numeric](18, 0) IDENTITY (1, 1) NOT NULL ,
[CLALPHA] [char] (7) COLLATE SQL_Latin1_Gene ral_CP1_CI_AS NULL ,
[CONSULTANT] [varchar] (50) COLLATE SQL_Latin1_Gene ral_CP1_CI_AS NULL
,
[ATTITUDE] [numeric](18, 0) NULL ,
[CATEGORY] [varchar] (100) COLLATE SQL_Latin1_Gene ral_CP1_CI_AS NULL
,
[SUBCATEGORY] [varchar] (100) COLLATE SQL_Latin1_Gene ral_CP1_CI_AS
NULL ,
[SUBCATDETAILS] [varchar] (100) COLLATE SQL_Latin1_Gene ral_CP1_CI_AS
NULL ,
[CallDate] [datetime] NULL ,
[CallTime] [datetime] NULL
) ON [PRIMARY]
i have checked the sql statement and it seems to be in order

is there a limit to the number of tables that can be linked to an
access table?
do you think that the select statement is a red herring?

rgds

Edwina
Jul 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1773
by: Rama krishna | last post by:
Hi All: I got the same problem what u got. Could u pls explain me hoe can i proceed. I saw some sites on this issue, which actually not worked with me. Iam using System.Directoryservices dll in my .aspx page. And iam adding refrence through the VS.NET and compling, working fine. But the same file i copied in the server (say some other...
2
1922
by: WeLeh | last post by:
I am using ODBC (ODBCLink/SE) to connect to HP3000 system; Retrieving the data into Microsoft Excel goes fine using MicrosoftQuery. But if I try to use SQLServer2000-DTS on Windows2003 to do the import, it always fails and gives the message: "ODBCLINKSE does not allow multiple thread" Does anybody knows how to do that?
1
1632
by: Rahul S. | last post by:
Hey all: I need urgent information how to set the environment in Visual.NET wiritng in C. I am working with a licensed version of the Analyze 6.0 software from mayo clinic. I need to write code in C using AVW functions that are licensed by Mayo clinic. In order to access the AVW library of functions, I need to set the
0
1470
by: Amratash | last post by:
Hi, I needyour help.Its urgent. My main aim is to log the site activities in a database at runtime. I'm using W3C Extended Log File format for logging information. I can use ODBC Logging directly but I want cookies in place of IP Address. And Cookies are available only in W3C Extended logging format. Anyway, the IIS is creating the log file...
0
1236
by: poli | last post by:
Hi, I have a urgent problem. I want to end a running application before I start another one (in c# code). I see that all these function GetProcesses() ,GetProcessesByName(), run only if I have admin rights. But I have power user rights. Considering this, how can I kill a process? Thank you vry much for help! Poli
0
1085
by: sandeepkishanj | last post by:
I have the following information continent | country | Placeof interest Asia | India | agra,mumbai,delhi asia | china | beijing,shangai,shen zhen asia | mongolia | ulan bator North america | ...
1
1187
by: =?Utf-8?B?QmFkaXM=?= | last post by:
I'm doing a server side automation(I know it's bad but..) and its working fine locally and when accessing it from a remote machine using web browser is was giving me this error"Retrieving the COM class factory for component with CLSID {000209FF-0000-0000-C000-000000000046} failed due to the following error: 80070005". so I configured the...
0
1084
by: yogarajan | last post by:
Hi all, I need to display two sets of records. The second one should come under the first set of records and also second one uses the first one's unique id. for example, First table values id Show/hide button checkbox category 1 <Hide button> <checkbox> car (parent) ...
0
7626
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7549
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8061
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7911
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6180
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5454
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3577
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2044
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1161
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.