473,903 Members | 4,560 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 6396
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
1791
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 machine which got only .NET Framework installed), so when iam trying to compile, iam getting the same...
2
1931
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
1661
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
1488
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 in D:\WINDOWS\system32\LogFiles\W3SVC1 folder correctly. Now I want to read text from this file &...
0
1257
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
1102
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 | USA | new york,los
1
1196
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 server using dcomcnfg as described in this link: http://support.microsoft.com/kb/288368/ and know...
0
1097
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) <checkbox> Maruthi (child) <checkbox> BMW(child)...
0
9999
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 usage, and What is the difference between ONU and Router. Letís take a closer look ! Part I. Meaning of...
0
9847
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11282
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10873
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10983
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10500
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7206
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4726
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
2
4308
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.