Unix Technical Forum

how to add 1 to the field

This is a discussion on how to add 1 to the field within the SQL Server forums, part of the Microsoft SQL Server category; --> when i work with Aceess Db i have SQL statment that cout the visitor: update Tbl1 set fldvisit = ...


Go Back   Unix Technical Forum > Database Server Software > Microsoft SQL Server > SQL Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-29-2008, 08:23 AM
yuval
 
Posts: n/a
Default how to add 1 to the field

when i work with Aceess Db i have SQL statment that cout the visitor:


update Tbl1 set fldvisit = fldvisit +1 where fld2='abc'




when i move to SQL Server it's not working
what to do?

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-29-2008, 08:23 AM
John Bell
 
Posts: n/a
Default Re: how to add 1 to the field

Hi

This should be ok! What is the error/problem?

Posting DDL and example data http://www.aspfaq.com/etiquett*e.asp?id=5006
will help others to re-create the problem.

John

"yuval" <yuvalbra@gmail.com> wrote in message
news:1115492012.471848.288840@g14g2000cwa.googlegr oups.com...
> when i work with Aceess Db i have SQL statment that cout the visitor:
>
>
> update Tbl1 set fldvisit = fldvisit +1 where fld2='abc'
>
>
>
>
> when i move to SQL Server it's not working
> what to do?
>



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-29-2008, 08:23 AM
David Portas
 
Posts: n/a
Default Re: how to add 1 to the field

What does "not working" mean. Tell us the error message if any or post some
example code to reproduce the problem (CREATE, INSERT, UPDATE statements).

--
David Portas
SQL Server MVP
--


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 08:54 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com