Groups | Blog | Home
all groups > sql server new users > february 2007 >

sql server new users : New User can't modify tables- select works fine- update etc claims to work but doesnt


DanWeaver
2/16/2007 9:35:39 AM
I must be doing some daft thing-
In Management Studio Express I have Northwind, Pubs and a db of my
own.
I can create SQL select queries and get results back fine but when I
try to do an insert, update or delete I get the message: (1 row(s)
affected) - making me think all has gone well, however, when I refresh
and look at the relevant table nothing has changed.
Any tips?
D
DanWeaver
2/16/2007 1:13:34 PM

Great, thanks Bob- that works. I found also that some of the updates I
had done last night appeared today- I guess when I refresh the table
afer an update for eg it doesnt refresh properly for some reason...

D

[quoted text, click to view]

Bob Simms
2/16/2007 7:04:15 PM
[quoted text, click to view]

It sounds as though the transactions aren't being committed.

Try the following

BEGIN TRAN
INSERT myTbl
VALUES('aaa')
COMMIT TRAN

(Obviously, put an insert statement that makes sense)

Then do a SELECT to see if it's worked.

AddThis Social Bookmark Button