![]() | |
![]() |
| | Thread Tools | Display Modes |
#21
| |||
| |||
|
|
Sorry for the delay... I tried doing some research on this to find a rhyme or reason and here's what I found... So, I created a new table: CREATE TABLE [dbo].[test]( [PK] [int] NOT NULL, [Test] [varchar](50) NULL, CONSTRAINT [PK_test] PRIMARY KEY CLUSTERED ( [PK] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] No defaults or anythings out of the ordinary. This still doesn't work. There are no triggers, constraints, computed columns or anything... |
#22
| |||
| |||
|
#23
| |||
| |||
|
|
In some situations you want to simply change an active flag or something you are seeing in a table. You should be able to use the tool (as you always have been able to in the past) to edit that value when you see it and trust that the tool (made by the same company as the server itself) would generate at the very least a sql statement that works. |
|
It generates the following sql captured from SQL Profiler (from my post on 4/28/2009): exec sp_executesql N'INSERT INTO tmpMassEmail(emailto) VALUES (@emailto)',N'@emailto nvarchar(13)',@emailto=N'jack (AT) jack (DOT) com' That appears OK, however it generates an error (The updated row has changed or has been deleted since data was last retrieved). However, when you copy this code to a new query, it works correctly. |
#24
| |||
| |||
|
|
Maybe, but to be honest I don't have that trust. Microsoft have never been able to get this fancy GUI >>stuff right. There is some stuff in Mgmt Studio which is really horrible as the Table Designer. |
#25
| |||
| |||
|
|
The second batch you are referring to is the "re-selection" of changed data thereby rolling the changes back. As an example, here is the entire sql profile batch for the change itself. I waited for over an hour for any additional batches to be created just to make sure. Line breaks my mess it up, so copy it and paste it into notepad or SSMS if you'd like. |
|
The point is Microsoft SQL Server is NOT free, as a matter of fact, it is quite a few American Dollars. I would understand (a little, but very little) if it were the "free" SSMS Express Edition, but this is the full product and I just want a tool that works for my money! If MySQL can do it, why can't Microsoft? Hopefully, someone has an answer out there somewhere... |
#26
| |||
| |||
|
|
But in this case there is no re-selection, huh? Is that the problem? If fails to run the reselection batch, and then forgot that it hasn't? |
|
I am not going to try it. All I can say is that the engine is of far better quality than the tools. |
#27
| |||
| |||
|
|
I left it at the prompt saying the row changed between retrieve & update for the hour. So, the reselection never happened as this doesn't happen until after you click OK to clear the box. |
#28
| |||
| |||
|
|
Lonnie koenig (anonymous (AT) devdex (DOT) com) writes: I left it at the prompt saying the row changed between retrieve & update for the hour. So, the reselection never happened as this doesn't happen until after you click OK to clear the box. Hm... One more thing to try: add the events Error:Exception and Error:UserMessage to the trace, and see if this reveals something. -- Erland Sommarskog, SQL Server MVP, esquel (AT) sommarskog (DOT) se Links for SQL Server Books Online: SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx SQL 2000: http://www.microsoft.com/sql/prodinf...ons/books.mspx . |
#29
| |||
| |||
|
#30
| |||
| |||
|
|
SOLVED!!! I FIGURED IT OUT!!! OK, it's a little strange, but the problem for me was in the database server connection properties. So in Microsoft SQL Server Management Studio, right-click on the database server and click on Properties. Then select Connections in the left pane under "Select a Page". Make sure "No Count" is NOT checked under "Default Connnection Options". Click on OK and restart Database Server Services. You should now be able to update data in the grid... Now, does any one know why this is the case??? |
![]() |
| Thread Tools | |
| Display Modes | |
| |