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

Access and SQL server update

Hey there,, I know when updating,, Access can be differnt from SQL
server

this works in access from a vb.net 1.1 prog
SQL = "Update Clients SET UnameID= '" + updatevalue + "' WHERE ID = " +

checkValue + ""
Can anyone just quickly tell me what i have to change for it to work in

SQL server 2005?
Thanx..

Dec 1 '06 #1
5 1034
Nothing, but you don't need the + "" at the end for either.
"Bonzol" <Bo****@hotmail.comwrote in message
news:11**********************@79g2000cws.googlegro ups.com...
Hey there,, I know when updating,, Access can be differnt from SQL
server

this works in access from a vb.net 1.1 prog
SQL = "Update Clients SET UnameID= '" + updatevalue + "' WHERE ID = " +

checkValue + ""
Can anyone just quickly tell me what i have to change for it to work in

SQL server 2005?
Thanx..

Dec 1 '06 #2
Bonzol,

As this is VB it would be nicer to use the concationation character &
instead of the + character, with option strict of the latter can give very
strange results.

Cor

"Bonzol" <Bo****@hotmail.comschreef in bericht
news:11**********************@79g2000cws.googlegro ups.com...
Hey there,, I know when updating,, Access can be differnt from SQL
server

this works in access from a vb.net 1.1 prog
SQL = "Update Clients SET UnameID= '" + updatevalue + "' WHERE ID = " +

checkValue + ""
Can anyone just quickly tell me what i have to change for it to work in

SQL server 2005?
Thanx..

Dec 1 '06 #3
It will work as is, but you are exposing yourself to SQL injection
attacks as well as errors when someone passes a value like o'malley.

Try and use parameterized SQL as much as possible

On 30 Nov 2006 20:24:42 -0800, "Bonzol" <Bo****@hotmail.comwrote:
>Hey there,, I know when updating,, Access can be differnt from SQL
server

this works in access from a vb.net 1.1 prog
SQL = "Update Clients SET UnameID= '" + updatevalue + "' WHERE ID = " +

checkValue + ""
Can anyone just quickly tell me what i have to change for it to work in

SQL server 2005?
Thanx..
--

Bits.Bytes.
http://bytes.thinkersroom.com
Dec 1 '06 #4
I call bullshit on your shit

just because you're a retard C# dude it doesn't mean that we all want
to add unnnecessary complexity to all of our apps

go and fuck yourself; C# fag

-Aaron


Rad [Visual C# MVP] wrote:
It will work as is, but you are exposing yourself to SQL injection
attacks as well as errors when someone passes a value like o'malley.

Try and use parameterized SQL as much as possible

On 30 Nov 2006 20:24:42 -0800, "Bonzol" <Bo****@hotmail.comwrote:
Hey there,, I know when updating,, Access can be differnt from SQL
server

this works in access from a vb.net 1.1 prog
SQL = "Update Clients SET UnameID= '" + updatevalue + "' WHERE ID = " +

checkValue + ""
Can anyone just quickly tell me what i have to change for it to work in

SQL server 2005?
Thanx..
--

Bits.Bytes.
http://bytes.thinkersroom.com
Dec 1 '06 #5
and for the record.. THERE IS NO RAD IN C#

lick a monkey dick bitch

You'll be obsolete also when Microsoft renames VB to VB#
-Aaron
Rad [Visual C# MVP] wrote:
It will work as is, but you are exposing yourself to SQL injection
attacks as well as errors when someone passes a value like o'malley.

Try and use parameterized SQL as much as possible

On 30 Nov 2006 20:24:42 -0800, "Bonzol" <Bo****@hotmail.comwrote:
Hey there,, I know when updating,, Access can be differnt from SQL
server

this works in access from a vb.net 1.1 prog
SQL = "Update Clients SET UnameID= '" + updatevalue + "' WHERE ID = " +

checkValue + ""
Can anyone just quickly tell me what i have to change for it to work in

SQL server 2005?
Thanx..
--

Bits.Bytes.
http://bytes.thinkersroom.com
Dec 1 '06 #6

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

Similar topics

0
by: Rupe | last post by:
I have a web site on a remote, shared host with a bunch of individual Access databases. I want to switch my databases from Access to MS SQL and have some questions. I update some of my Access...
2
by: Shaun | last post by:
Ok here is the situation… Have an access 20002 application that I'm converting to have a SQL Server backend (2000), the application has been in use with an access backend for years, no real...
49
by: Yannick Turgeon | last post by:
Hello, We are in the process of examining our current main application. We have to do some major changes and, in the process, are questionning/validating the use of MS Access as front-end. The...
3
by: Lyle Fairfield | last post by:
In a recent thread there has been discussion about Data Access Pages. It has been suggested that they are not permitted on many or most secure sites. Perhaps, that it is so, although I know of no...
1
by: Harry Devine | last post by:
I have a DataGrid that is configured to use the Edit/Update/Cancel concept correctly. My grid shows values from 5 database fields. I only need to update that last 4 fields. The last field is a...
2
by: ILCSP | last post by:
Hello, I'm in the process of changing our 'normal' Access 2000 update queries to Update Pass Through Queries. We have a SQL server 2000 database and we're using an Access 2000 database as our...
15
by: Cheryl Langdon | last post by:
Hello everyone, This is my first attempt at getting help in this manner. Please forgive me if this is an inappropriate request. I suddenly find myself in urgent need of instruction on how to...
4
by: Bob Alston | last post by:
Anyone have experience with converting an access app from Jet database to Mysql? I am specifically looking for any changes I would have to make to my access forms, queries, modules, vba code, etc....
5
by: bubbles | last post by:
I am developing an Access 2003 frontend for SQL Server 2005. Problem: Access 2003 cannot update tables in SQL Server 2005 (but can update SQL Server 2000 tables) Is there a patch for Access...
13
by: Terry Olsen | last post by:
I'm using OleDb to connect with an Access Database. I have anywhere from 10 to over 100 records that I need to either INSERT if the PK doesn't exist or UPDATE if the PK does exist, all in a single...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: 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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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: 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...

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.