Viewing 15 posts - 2,251 through 2,265 (of 2,458 total)
I am with Sean and venkyzrocks about providing more detail. That said, I think you are looking for this:
--SETUP SAMPLE DATA
------------------------------------------------------------------------------
IF OBJECT_ID('tempdb..#old_fact') IS NOT NULL
DROP TABLE #old_fact;
IF OBJECT_ID('tempdb..#Dim_FiscalYear_Old') IS...
April 18, 2013 at 12:03 pm
kpann (4/18/2013)
i know this sounds silly but will it be helpful if i upload my zip folder so you can understand it better?
By zip folder are you talking about the...
April 18, 2013 at 8:36 am
Wow.
Amazing work Jeff. Great article too. 5 stars.
April 9, 2013 at 8:18 pm
... once you fix that you can do something like this (with or without the UNION statement commented.
IF EXISTS (SELECT * FROM INFORMATION_SCHEMA.ROUTINES WHERE ROUTINE_NAME='deleteme2')
DROP PROC deleteme2;
GO
CREATE PROCEDURE deleteme2...
April 9, 2013 at 5:03 pm
First, take a look at your temp table and the code in testProc2
CREATE TABLE #Test
(
a float,
b float,
c float,
d float,
e float,
f int,
g float,
h DECIMAL(22,2),
i DECIMAL(22,2),
j DECIMAL(22,0),
k DECIMAL(22,2),
l float,
m float
)
GO
INSERT INTO #Test
SELECT...
April 9, 2013 at 4:57 pm
Thank you Jeff.
sql_r:... Sorry about that :blush: - I should have googled "Broadcast Calendar" or "Broadcast week" before giving this a shot. It's been a busy couple weeks (this...
April 9, 2013 at 4:36 pm
Lynn,
Good eye. Thanks. 😉
Lowell,
Both your quotes are great. I actually wonder how many people who come to SSC google "There is no spoon". I know I did. It took me...
March 21, 2013 at 5:00 pm
The query below should do the trick. I don't know what day counts as "Media Start of Week" but I went with monday (isowk). Also, I don't know what you...
March 21, 2013 at 11:45 am
For better, quicker answers on T-SQL questions, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
March 21, 2013 at 9:25 am
First, welcome to SSC. To save you some grief - in the future I would suggest posting some DDL so that we can better understand exactly what you are trying...
March 19, 2013 at 5:20 pm
cnayan (3/19/2013)
When I ran your queries, like:
select n.*
from Names n
FULL JOIN TableB b ON n._id=b._id
WHERE LEFT(name,1)='A'
AND ChildCount>50
it showed Nested Loop as you suggested.
But, I...
March 19, 2013 at 4:04 pm
cnayan (3/19/2013)
My question is the latter one - which is more efficient.
I tested this a little and here's what I determined: Both queries you posted will produce the exact...
March 19, 2013 at 12:26 pm
pehlebhiayatha (3/19/2013)
Sorry for the late response. I tested the script and it works great. But I want to split the backup files to multiple files if the database size is...
March 19, 2013 at 11:34 am
I worked on this for awhile and this was the best I could come up with...
-- SAMPLE DATA
IF OBJECT_ID('tempdb..#Weekday') IS NOT NULL DROP TABLE #Weekday; CREATE TABLE #Weekday(Weekday_id int...
March 19, 2013 at 9:53 am
zouzou (3/12/2013)
I have a live db that users need to access it for reporting purposes. What is the best way to let them access [it] without [affecting live]?
They...
March 15, 2013 at 4:30 pm
Viewing 15 posts - 2,251 through 2,265 (of 2,458 total)