Viewing 15 posts - 2,176 through 2,190 (of 5,504 total)
Are there any duplicates?
If not, you could simply use
ROW_NUMBER() OVER(ORDER BY Value) - 1
January 6, 2011 at 8:55 am
JenMidnightDBA (1/6/2011)
mister.magoo (1/6/2011)
Rem70Rem (1/6/2011)
This seems to be a good approach, but some year have 52 weeks when some other have 53.
The DATEPART function has a WEEK datepart that displays the...
January 6, 2011 at 8:35 am
christophe.bernard 47659 (1/6/2011)
thanks you so much for your sample now i understand that we can add a relation between the table deleted and inserted ..
Sorry i'm a beginner and i...
January 6, 2011 at 7:52 am
deepikamm (1/6/2011)
hmm
Another advice: once you posted something, don't delete or replace it by a comment like you just did. Stick to what you posted. Deleting posts is not following forum...
January 6, 2011 at 5:08 am
deepikamm (1/6/2011)
actually i posted it in different forum..but i didnt get a reply..dats y posted here.
You posted about an hour ago on the other thread.
I strongly recommend to lower...
January 6, 2011 at 5:06 am
deepikamm (1/6/2011)
consider this,
Original query
update workmgmtplan with(rowlock) set IsWebPlannerTracked=1 where planid=@WMPID
update workmgmtplan with(rowlock) set IsWebPlannerTracked=1 where planid in
(select workmgmtplanid from workmgmtlinkedplans with(nolock) where linkedworkmgmtplanid=@WMPID)...
January 6, 2011 at 4:44 am
If you're using SS2K8 (as indicated by the forum selected), you could pass the parameter using a table variable. That would avoid the additional overhead caused by XML tags.
January 6, 2011 at 4:28 am
Henrico Bekker (1/6/2011)
deepikamm (1/6/2011)
what is the major difference between EXEC and sp_executesql?they are the same....
Dave explains is very nicely...
No, both are different. And the link you provided shows the difference...
January 6, 2011 at 4:24 am
That's not how auto-incrementing works.
Usually, auto-incrementing is used to create a unique number to refernce that in another table. If you renumber your values, you'd change the references.
Why do you...
January 6, 2011 at 4:17 am
Something like this (assuming you're using SS2K5 or above)?
DECLARE @xml XML
SELECT @xml='<Root>
<Data>
<Item ID="1" AdditionalInfo="Some info">
<SubItem ID="1">1</SubItem>
<SubItem ID="2">2</SubItem>
<SubItem ID="3">3</SubItem>
</Item>
<Item ID="2" AdditionalInfo="Some info">
<SubItem ID="1">1</SubItem>
<SubItem ID="2">2</SubItem>
</Item>
</Data>
</Root>'
SELECT
y.value('@ID[1]','INT') AS SubItemId,
y.value('.','INT') AS SubItemValue,
c.value('@ID[1]','INT') AS ItemId,
c.value('@AdditionalInfo[1]','varchar(30)') AS...
January 6, 2011 at 4:04 am
franck.maton (1/6/2011)
If I use a job, I'll get a mail every day even if no DB was created, right ?
The purpose is to get a mail...
January 6, 2011 at 2:12 am
hoanglong88i (1/6/2011)
January 6, 2011 at 2:04 am
To slightly change Henricos script to exclude tempdb:
SELECT name FROM sys.databases
WHERE create_date > (GETDATE() -1)
AND name <>'tempdb'
January 6, 2011 at 1:59 am
@ITJITS:
I first thought it was WayneS who replied due the avatar.
May I kindly ask you to change it?
Kinda confusing...
January 6, 2011 at 1:37 am
C3PO-594572 (1/5/2011)
SQL Server is so inferior to Oracle its unbelievable!
Spam. Reported. (Not because of the message. Because of the signature. ;-))
January 6, 2011 at 1:03 am
Viewing 15 posts - 2,176 through 2,190 (of 5,504 total)