Viewing 15 posts - 1,306 through 1,320 (of 1,409 total)
To prevent loss of speed with your queries without the WITH (NOLOCK) option, you must keep all exclusive locks (INSERTs, UPDATEs) to a minimum. That means optimizing the code to...
September 25, 2008 at 6:04 am
swapshines9 (9/24/2008)
Now I need to create sp that insert values in to the third table and save, but the EmpDeptName should not be visible in the backend. Actually I had...
September 25, 2008 at 3:45 am
I quess a UPDATE-trigger would be fired multiple times, but I'm not sure. You can test this by letting the trigger add a row with the updated values to a...
September 25, 2008 at 3:37 am
The_SQL_DBA (9/24/2008) if not what is the level of risk we are talking about here?
Your environment is working at this moment, so you could leave it as is. But invalid...
September 24, 2008 at 7:48 am
If you have to change several columns, try to split up the changes in portions you can handle. Begin with adding 1 (empty) column. Fill this column with converted datetime...
September 24, 2008 at 7:35 am
Primary Key can only contain unique values. You second insert tries to add value 1, 2, 3, 4 and 5 to the primary key but these values allready exist, thus...
September 24, 2008 at 5:43 am
b_boy (9/24/2008)
(100.*
sum(case datepart(yy,t.orderdate) when 2008 then 1. else 0. end) /
sum(case datepart(yy,t.orderdate) when 2007 then 1. else 0. end)) - 100. as 'Percent Change'
from t_orderline tl inner join t_items...
September 24, 2008 at 5:28 am
Please use capitals, punctuation and linefeeds for readability!!!
Can't you just leave the EmpDeptName out of the third query??
September 24, 2008 at 5:23 am
juliane26 (9/24/2008)
So I follow that in table B I have more than one entry for each value in c1. (I will check on this)
If so - why does...
September 24, 2008 at 5:16 am
A LEFT OUTER JOIN never returns less rows then the left table (table A in your sample). But if table B is joined to table A in a one-to-many relation,...
September 24, 2008 at 5:09 am
You can add a column of type DateTime to the table. Try to convert the dates from the varchar column to dates in the datetime column. You can do this...
September 24, 2008 at 5:02 am
can you specify what they tried to modify? And are you sure it was in the correct database where you assigned them the ddl_admin rights to?
from BOL:
Members of the db_ddladmin...
September 24, 2008 at 4:48 am
You can use the following SP sp_send_dbmail inside your job/query to send a mail. If you wrap this inside an IF statement the mail is sent when a condition is...
September 24, 2008 at 4:31 am
On the Microsoft download site you have links to the setup documentation and a readme file.
But it basically comes down to:
- backup your server
- backup your databases
- install SP2
September 24, 2008 at 4:24 am
bitbucket (9/23/2008)
September 23, 2008 at 8:13 am
Viewing 15 posts - 1,306 through 1,320 (of 1,409 total)