469,317 Members | 1,858 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,317 developers. It's quick & easy.

T-SQL in Mngmt Studio Express Doesnt affect change- obvious omission?

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?

ps In learning the basics of SQL server, vs.net, javascript and
vbscript I am often encoutnering a problem that halts me for five
hours or so but has an obvious solution 'if you know how'- I suppose
this is the difference learning on your own vs in an office
environment- "Pete, how do you...?". I am trying to create a
beneficial application under my own steam and with limited resources-
are there any other sources of internet support I might not know about
but could use to get quick answers to sticky techie questions?
D

Feb 16 '07 #1
6 2104
DanWeaver (da*********@googlemail.com) writes:
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?
Since you say "refresh" I assume that you mean Open Table or the Query
Designer. These are just tools of dubious quality. Better to run a SELECT
statement from a query window.

--
Erland Sommarskog, SQL Server MVP, es****@sommarskog.se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pro...ads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinf...ons/books.mspx
Feb 16 '07 #2
Yes, I was using MS SQL Server Management Studio Express. I cannot
believe it! When someone is trying to learn the basics and the table
refresh (or even db refresh as I just tried) doesnt work properly-
this is rubbish!
Thanks very much Erland- I tried a select statement (which didnt occur
to me a couple of nights ago when despairing at my incompetance !! !-)
and all of my statements were working fine.
Well, another 5 hours wasted on systems saying one thing and doing
another- search phrase REFRESH DOESN'T WORK.

Thanks again,
Dan
Since you say "refresh" I assume that you mean Open Table or the Query
Designer. These are just tools of dubious quality. Better to run a SELECT
statement from a query window.

--
Erland Sommarskog, SQL Server MVP, esq...@sommarskog.se

Books Online for SQL Server 2005 athttp://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books...
Books Online for SQL Server 2000 athttp://www.microsoft.com/sql/prodinfo/previousversions/books.mspx

Feb 17 '07 #3
DanWeaver (da*********@googlemail.com) writes:
Yes, I was using MS SQL Server Management Studio Express. I cannot
believe it! When someone is trying to learn the basics and the table
refresh (or even db refresh as I just tried) doesnt work properly-
this is rubbish!
I'm curious. I tried Open Table, but I could not find any Refresh
operation. Where exactly did you select Refresh?

--
Erland Sommarskog, SQL Server MVP, es****@sommarskog.se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pro...ads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinf...ons/books.mspx
Feb 17 '07 #4
On Feb 17, 3:06 pm, Erland Sommarskog <esq...@sommarskog.sewrote:
DanWeaver (danofwea...@googlemail.com) writes:
Yes, I was using MS SQL Server Management Studio Express. I cannot
believe it! When someone is trying to learn the basics and the table
refresh (or even db refresh as I just tried) doesnt work properly-
this is rubbish!

I'm curious. I tried Open Table, but I could not find any Refresh
operation. Where exactly did you select Refresh?
In SQL Server Mngmt Express- Object explorer- right click on Databases
or any DB or any table.
D

Feb 18 '07 #5
DanWeaver (da*********@googlemail.com) writes:
In SQL Server Mngmt Express- Object explorer- right click on Databases
or any DB or any table.
I suspected that. I'm afraid that's a misunderstanding on your part.
Refresh there only freshes the list of tables or objects that is
displayed in the Object Explorer. (Keep in mind that a table has dependent
object, such as indexes, constraints etc.) It does not affect what you may
see in other windows.

The way to update the grid in Open Table is simply to press the Exclamation
mark which reruns the query that loaded the grid. (And which you can see
by right-clicking and select SQL under the Pane submenu.)
--
Erland Sommarskog, SQL Server MVP, es****@sommarskog.se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pro...ads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinf...ons/books.mspx
Feb 18 '07 #6
On Feb 18, 5:37 am, Erland Sommarskog <esq...@sommarskog.sewrote:
DanWeaver (danofwea...@googlemail.com) writes:
In SQL Server Mngmt Express- Object explorer- right click on Databases
or any DB or any table.

I suspected that. I'm afraid that's a misunderstanding on your part.
Refresh there only freshes the list of tables or objects that is
displayed in the Object Explorer. (Keep in mind that a table has dependent
object, such as indexes, constraints etc.) It does not affect what you may
see in other windows.

The way to update the grid in Open Table is simply to press the Exclamation
mark which reruns the query that loaded the grid. (And which you can see
by right-clicking and select SQL under the Pane submenu.)

--
Erland Sommarskog, SQL Server MVP, esq...@sommarskog.se

Books Online for SQL Server 2005 athttp://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books...
Books Online for SQL Server 2000 athttp://www.microsoft.com/sql/prodinfo/previousversions/books.mspx

You're a star, Erland.
Dan

Feb 19 '07 #7

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Bootstrap Bill | last post: by
reply views Thread by Lyle Fairfield | last post: by
reply views Thread by olrt | last post: by
1 post views Thread by olrt | last post: by
1 post views Thread by sundarvenkata | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
1 post views Thread by Geralt96 | last post: by
reply views Thread by harlem98 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.