Viewing 15 posts - 8,986 through 9,000 (of 9,641 total)
I'll through my 2 cents in as well. If the OP had posted what they had come up with, I would correct the errors gladly. When you ask...
March 18, 2008 at 7:05 pm
But wouldn't the insert have an exclusive lock on the new row created until the end of the transaction and the update, without a where clause would need an exclusive...
March 17, 2008 at 3:12 pm
One hint I picked up somewhere, and to be honest I did not test it, is to use code like this to get a consistent query plan:
Select
...
March 17, 2008 at 3:09 pm
I don't have sql on my laptop so I could not look and I haven't done that in a while.
You could also right click on the database - all...
March 17, 2008 at 3:02 pm
GSquared (3/17/2008)
In Management Studio, right-click the table name, click Script Table as -> CREATE to -> New Query Editor window.
Darn, you beat me by seconds!:crying:
March 17, 2008 at 2:48 pm
In SSMS you can right-click the table and and use script as create and it includes all the contraints, indexes, etc...
March 17, 2008 at 2:45 pm
A couple of things. I would think that it would cause a deadlock since the insert is taking an exclusive lock which should block the update. The second...
March 17, 2008 at 2:37 pm
Is IIS starting? Is the reporting service on the same server as sql server?
March 17, 2008 at 2:24 pm
You could use the information_schema.columns to get the size of the columns, sum it, and multiply it by the Count of the rows for that customer.
That should give you a...
March 17, 2008 at 2:23 pm
It sounds like the query is run first/more often with the unrestricted results and that the cached plan is using a table scan. So you will not get the...
March 17, 2008 at 2:14 pm
Are the indexes on the same file as the table? What is your physical setup? Is the server clustered?
March 15, 2008 at 8:50 pm
Are you sure the linked server user has appropriate permissions on the table in question?
March 15, 2008 at 7:38 pm
Make sure recursive triggers is off, sp_dboption 'recursive triggers' and in a trigger on table2 do:
Insert Into table2
Select
...
March 15, 2008 at 7:35 pm
10 days BEFORE today or 10 days AFTER today, PAST or FUTURE?
Since this is a school assignment I will just give a hint. In SQL Server dates work just...
March 15, 2008 at 2:07 pm
Actually Jeff, I did not mean to imply that there was a dates table. The OP did not post any table or column names so I just used dates...
March 15, 2008 at 12:41 pm
Viewing 15 posts - 8,986 through 9,000 (of 9,641 total)