Viewing 15 posts - 496 through 510 (of 1,539 total)
Duplicate Post:
Please post your replies at http://www.sqlservercentral.com/Forums/Topic777289-1291-1.aspx
August 26, 2009 at 1:06 am
SELECT DATEADD(s,-1,DATEADD(mm, DATEDIFF(m,0,GETDATE())+1,0)),
Case
datepart(dw, DATEADD(s,-1,DATEADD(mm, DATEDIFF(m,0,GETDATE())+1,0)))
When 0 Then 'Sunday'
when 1 then 'Monday'
When 2 then 'Tuesday'
when 3 Then 'Wednesday'
When 4 Then 'Friday'
When 5 Then 'Saturday'
End
as Day
Refer - http://blog.sqlauthority.com/2007/08/18/sql-server-find-last-day-of-any-month-current-previous-next/
August 26, 2009 at 1:03 am
Edit - Duplicate post due to network issue
August 26, 2009 at 12:55 am
select so.name as table_name, si.is_primary_key from sys.indexes si
left Join sys.objects so on si.object_id=so.object_id
where si.is_primary_key=1
and so.type='U'
I made some changes to SQLBOT's code and it's giving me all table names where...
August 26, 2009 at 12:53 am
update mytable set datetimefld=convert(varchar, datetimefld,101)
Try with that code.
p.s. - i didnt test it.
August 25, 2009 at 7:05 am
query backupset table in msdb and see the frequency of backups happening for various databases.
August 25, 2009 at 6:59 am
fjmorales (8/25/2009)
I don't see where to add those parameters on the MP. Do I have to do it with code?
This url from msdn side has a nice example of...
August 25, 2009 at 6:51 am
Mine has little issues. within forum it says 1566 and on the main page it says 1569 points... difference of 3 points...
August 25, 2009 at 6:47 am
Script out all objects of your database and ship the script to the customer.
August 25, 2009 at 6:06 am
charipg (8/24/2009)
how to understand Blocking Problem in SQL Server 2005 and how to find solutions?
Go through the articles that others have suggested.
Blocking can happen due to multiple reasons....
August 25, 2009 at 6:04 am
kumar99ms (8/25/2009)
Thank you for your reply
Deleting T-log file it is not good right
we will shrink the file only
Is it possible to delete T-log file what happed ?
AS per...
August 25, 2009 at 5:58 am
Bhavin_Bhatt25 (8/22/2009)
------------------------------------------------------------
SELECT
Tran.Amount+Tran.Discount+Tran.Taxes AS [Nett]
--,[Nett] / 6.5 AS [Payable]
...
August 22, 2009 at 8:09 am
For the query you've mentioned, there cant be any performance improvement as Ian rightly said that all associated data pages will be read to return the resultset.
However, if you're concerned...
August 22, 2009 at 8:07 am
you can schedule it to run after business hours. Keep in mind that reindex will lock the base tables (users will not be able to run dml operations unless u've...
August 22, 2009 at 12:12 am
Viewing 15 posts - 496 through 510 (of 1,539 total)