Viewing 15 posts - 7,516 through 7,530 (of 15,381 total)
WOW!!!! Your second post and you nailed the ddl and sample data. Excellent job!!! This takes many people dozens of posts, if they ever actually do it right. The only...
July 17, 2013 at 9:20 am
daniness (7/17/2013)
Just edited the query at the beginning of the thread to include the On criteria, but still no progress...any thoughts, anyone?
The problem here is that we can't see your...
July 17, 2013 at 8:37 am
riya_dave (7/17/2013)
that will show all the index , i need to know particular indexif exist(
Do you know how to use a where clause?
if exists(select * from sys.indexes WHERE ...)
July 17, 2013 at 8:34 am
Hi and welcome to the forums. In order to help we will need a few things:
1. Sample DDL in the form of CREATE TABLE statements
2. Sample data in the form...
July 17, 2013 at 7:48 am
mark.bienkowski (7/17/2013)
Sean Lange (7/16/2013)
At best you can find out what indexes have been used. This is not the same as what tables. So often this type of request is followed...
July 17, 2013 at 7:32 am
DATEDIFF can return negative numbers. FWIW, you don't need to use floor. You are dividing datediff / 30 which is integer division, the result will be an int. For example:
select...
July 16, 2013 at 3:32 pm
Khalid Hanif-458693 (7/16/2013)
The rownumber is very costly on a large table,The Order By can be By Cost_Center_Code, Payment_Code, Inv_No
Thanks
You are going to have to use RowNumber somewhere along the way...
July 16, 2013 at 3:01 pm
mark.bienkowski (7/16/2013)
I need to show all tables from my database that meet some conditions. For example tables with entries only after a particular date.
I want to see what...
July 16, 2013 at 8:57 am
As Phil said, although more gently than me, you do not need a cursor for this at all. There is absolutely NO NEED for one. If you can explain why...
July 16, 2013 at 7:24 am
And if at all possible do yourself a favor and change the column to datetime. When you store datetime information in another datatype you lose the ability to do calculations,...
July 16, 2013 at 7:20 am
ramyours2003 (7/16/2013)
what are the possible reasons for not truncating the log file ?
i have Log file of...
July 16, 2013 at 7:15 am
Steven Willis (7/15/2013)
Perhaps an even simpler solution:
Nice. I always forget about except, not really sure why. Thanks for reminding that is in the toolbox!!!
July 16, 2013 at 7:15 am
amar_kaur16 (7/15/2013)
Sean, do you mean same code but instead of calling sp just fore trigger when the value changes?Please bear with me as I am a newbie.
Thanks
This will explain what...
July 16, 2013 at 7:03 am
Assuming that each person who uses the application connects to the sql server with a unique login you could just query SYSTEM_USER.
select SYSTEM_USER
The above code will retrieve the username of...
July 15, 2013 at 2:45 pm
Viewing 15 posts - 7,516 through 7,530 (of 15,381 total)