473,387 Members | 1,621 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,387 software developers and data experts.

insert query in sql server

rj
When I try to insert a row in the SQL server. I received these warnings :

Warning: mssql_query() [function.mssql-query]: message: Invalid object name
'transactions'. (severity 16) in
C:\aisservice\aisservice\inc\database\mssql.php on line 169

Warning: mssql_query() [function.mssql-query]: Query failed in
C:\aisservice\aisservice\inc\database\mssql.php on line 169
INSERT INTO users (login,domain,email,credit,entrance_bonus)VALUES
('klaas','klaas','klaas',0,6.00)

The record is inserted in the database. But what is wrong? When starting a
SELECT query everthing is running fine. When doing an update same message
appears.

Who can tell me more about this.
Many thanks in advance

Richard
Jul 17 '05 #1
2 7228
What code is on line 169?
Try putting single quotations around the numbers eg '0','6.00'

"rj" <rj@guppie.mine.nu> wrote in message
news:nS*****************@amsnews05.chello.com...
When I try to insert a row in the SQL server. I received these warnings :

Warning: mssql_query() [function.mssql-query]: message: Invalid object name 'transactions'. (severity 16) in
C:\aisservice\aisservice\inc\database\mssql.php on line 169

Warning: mssql_query() [function.mssql-query]: Query failed in
C:\aisservice\aisservice\inc\database\mssql.php on line 169
INSERT INTO users (login,domain,email,credit,entrance_bonus)VALUES
('klaas','klaas','klaas',0,6.00)

The record is inserted in the database. But what is wrong? When starting a
SELECT query everthing is running fine. When doing an update same message
appears.

Who can tell me more about this.
Many thanks in advance

Richard

Jul 17 '05 #2
rj wrote:
When I try to insert a row in the SQL server. I received these warnings :

Warning: mssql_query() [function.mssql-query]: message: Invalid object name
'transactions'. (severity 16) in
C:\aisservice\aisservice\inc\database\mssql.php on line 169

Warning: mssql_query() [function.mssql-query]: Query failed in
C:\aisservice\aisservice\inc\database\mssql.php on line 169
INSERT INTO users (login,domain,email,credit,entrance_bonus)VALUES
('klaas','klaas','klaas',0,6.00)


What happens when you type (or copy/paste) the SQL command into the
"Query Analyser" (or whatever it is called) window and execute it?

--
Mail to my "From:" address is readable by all at http://www.dodgeit.com/
== ** ## !! ------------------------------------------------ !! ## ** ==
TEXT-ONLY mail to the whole "Reply-To:" address ("My Name" <my@address>)
may bypass my spam filter. If it does, I may reply from another address!
Jul 17 '05 #3

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

Similar topics

1
by: PT | last post by:
I got a problem. And thats..... First of all, I got these three tables. ------------------- ------------------ ---------------------- tblPerson tblPersonSoftware ...
2
by: george | last post by:
This is like the bug from hell. It is kind of hard to explain, so please bear with me. Background Info: SQL Server 7.0, on an NT box, Active Server pages with Javascript, using ADO objects. ...
2
by: avinash | last post by:
hello myself avinash i am developing on application having vb 6 as front end and sql server 7 as back end. when i use insert query to insert data in table then the date value of that query is...
2
by: Elvira Zeinalova | last post by:
Hei, We have 2 MS SQL SERVER 2000 installed on 2 different servers (2 separated machines). I am triing to connect them så that when one row is added to the table in the database in main server - ...
3
by: rhaazy | last post by:
Using ms sql 2000 I have 2 tables. I have a table which has information regarding a computer scan. Each record in this table has a column called MAC which is the unique ID for each Scan. The...
9
by: rhaazy | last post by:
Using MS SQL 2000 I have a stored procedure that processes an XML file generated from an Audit program. The XML looks somewhat like this: <ComputerScan> <scanheader>...
5
by: Bonzol | last post by:
Hello, PHP n00b here. Using SQL just working off some examples, I have no problem selecting data, but I cant seem to be able to insert. If someone could see where im going wrong <!DOCTYPE...
21
by: lesperancer | last post by:
I've got an access97 reporting mdb that pulls data (77,000 rows) from a sql server table into a local table to run reports if the local table is part of the reporting MDB, the insert statement...
2
by: technocraze | last post by:
Hi guys, I have encountered this error when updating the values to the MS Acess table. Error : Update on linked table failed. ODBC sql server error Timeout expired. MS Acess is my front end and...
6
by: rn5a | last post by:
During registration, users are supposed to enter the following details: First Name, Last Name, EMail, UserName, Password, Confirm Password, Address, City, State, Country, Zip & Phone Number. I am...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...

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.