Viewing 15 posts - 91 through 105 (of 898 total)
Any reason for not using splitter udf?
August 7, 2013 at 3:10 am
SQLSteve (8/7/2013)
Kingston Dhasian (8/7/2013)
When you create a new database, the new database will automatically inherit this stored procedure from the model...
August 7, 2013 at 3:04 am
You can create this stored procedure in the model database
When you create a new database, the new database will automatically inherit this stored procedure from the model database
Check the link...
August 7, 2013 at 2:40 am
Good question, but the explanation could have been better.
You could have explained why the condition is similar to "WHERE 1 = 1"
Your query is as below
SELECT
ID,...
August 7, 2013 at 12:36 am
Performance Considerations
Avoid adding unnecessary columns. Adding too many index columns, key or nonkey, can have the following performance implications:
Fewer index rows will fit on a page....
July 18, 2013 at 12:22 am
Something like this should work
DECLARE@num1 NUMERIC(12,2)
DECLARE@num2 NUMERIC(12,2)
SELECT@num1 = 29, @num2 = 30
SELECT CONVERT(NUMERIC(12,2),@num1/@num2)
OR this
SELECT 29/30.00
This issue happened because when you do something like SELECT CONVERT( NUMERIC(12,2), 29/30 ), an INTEGER...
July 18, 2013 at 12:13 am
Revenant (7/11/2013)
BOL writers are humans, too, and most of them are in India and paid $5 per day.
Even I don't think it's about the money. You can get people with...
July 15, 2013 at 1:18 am
L' Eomot Inversรฉ (7/11/2013)
Kingston Dhasian (7/11/2013)
Bajrang (7/11/2013)
and
Thank you all members.. Yes, explanation provided on BOL link doesn't fit but couldn't find any other...
July 15, 2013 at 1:11 am
Bajrang (7/11/2013)
Thank you SSC for posting this question.. ๐and
Thank you all members.. Yes, explanation provided on BOL link doesn't fit but couldn't find any other source to support this. ๐
The...
July 11, 2013 at 8:46 am
The explanation is not completely correct
The upper limit for INT data type is 2^31 - 1( 2,147,483,647 ), the number 5555555 does not exceed this limit
As Danny has said above,...
July 11, 2013 at 12:23 am
You can do this using a Tally Table
declare @date1 datetime
declare @date2 datetime
set @date1='20130801'
set @date2='20130807'
SELECTDATEADD(DAY,T.N-1,@date1) AS Dates
FROMdbo.Tally AS T
WHERET.N <= DATEDIFF(DAY,@date1,@date2) + 1
For more information on what a Tally table is...
July 8, 2013 at 6:58 am
shy.n86 (7/6/2013)
I have question about usage of this SP that how legal it is use to use this sp?
what kind of impact it does on your sever when a...
July 8, 2013 at 6:48 am
Can you post your execution plan?
You can try replacing the NOT IN with NOT EXISTS
SELECT
CASE WHEN substring(cli, 1, 2) = '44' THEN cli ELSE '44' + cli
END 'cli', min(call_date) 'date'
FROM...
June 28, 2013 at 5:53 am
I am not really clear what your requirement is.
You can probably explain it much better with some DDL, sample data( may be some 10 - 20 rows ) and the...
June 27, 2013 at 4:04 am
Bala' (6/27/2013)
More than one rows per date
how spend date was calculated
how late and half date was updTED
etc
GIVE PROPER EXPLANATION ON HOW THE DATA RESIDES , AND...
June 27, 2013 at 3:50 am
Viewing 15 posts - 91 through 105 (of 898 total)