Viewing 15 posts - 5,566 through 5,580 (of 10,143 total)
Eugene Elutin (9/25/2012)
farax_x (7/24/2012)
...On the other hand sending UNIQUEIDENTIFIER to customer is not acceptable so I need to convert it to int ...
ChrisM@Work (9/25/2012)
How does CHAR(16) suit you?...
I don't think...
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
September 25, 2012 at 9:01 am
dwain.c (9/24/2012)
Sean Lange (9/24/2012)
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
September 25, 2012 at 8:58 am
How does CHAR(16) suit you?
SELECT
[Start GUID] = d.aguid,
z.[To Character],
[back to GUID] =
CAST(
STUFF(STUFF(STUFF(STUFF(
STUFF(CONVERT(CHAR(34),CONVERT(BINARY(16),z.[To Character],0),1),1,2,'')
,9,0,'-'),14,0,'-'),19,0,'-'),24,0,'-')
AS uniqueidentifier)
FROM (SELECT aguid = newid()) d
CROSS APPLY (SELECT vID = CAST(REPLACE(aguid,'-','') AS...
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
September 25, 2012 at 8:10 am
Abu Dina (9/25/2012)
I'm looking at recursive CTEs but I don't think it will work. Well I've been trying for the last couple of hours and it's still not giving...
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
September 25, 2012 at 7:46 am
Abu Dina (9/25/2012)
But tthe solution doesn't work with the following record set:
drop table dbo.testing
create table dbo.testing...
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
September 25, 2012 at 6:48 am
EdA ROC (9/24/2012)
I think I mentioned before that...
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
September 25, 2012 at 4:35 am
ChrisM@Work (9/25/2012)
t.brown 89142 (9/25/2012)
Basically you create your entire SQL Statement in a string then call EXEC on it.
e.g.
DECLARE @sql Varchar(MAX);
DECLARE @TODAY Varchar(10);
SELECT @TODAY = CONVERT(...
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
September 25, 2012 at 3:34 am
mick burden (9/24/2012)
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
September 25, 2012 at 3:21 am
t.brown 89142 (9/25/2012)
Basically you create your entire SQL Statement in a string then call EXEC on it.
e.g.
DECLARE @sql Varchar(MAX);
DECLARE @TODAY Varchar(10);
SELECT @TODAY = CONVERT( VARCHAR(10),GETDATE(),...
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
September 25, 2012 at 3:07 am
Familiarisation? Probably the easiest place to start is the Activity Monitor.
Watch for Recent Expensive Queries and examine them in detail as they come up. Experiment by sorting the columns...
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
September 25, 2012 at 3:04 am
Hi Abu, thank you for the kind mention - I take it that phase of the project is now concluded.
Have a try with this. It works by first selecting retained...
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
September 25, 2012 at 2:33 am
Inline tvf's would get around the cardinality issues Gail mentions. Something like this:
DECLARE @strID int
SELECT ID
FROM Table1
WHERE ID = @strID AND REP = 1
UNION ALL
SELECT ID
FROM...
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
September 25, 2012 at 2:18 am
prasan.dash83 (9/25/2012)
'Create table emp_hrs as...
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
September 25, 2012 at 2:13 am
Duplicate post - please reply to
http://www.sqlservercentral.com/Forums/FindPost1363825.aspx
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
September 25, 2012 at 1:55 am
prasan.dash83 (9/25/2012)
I have an MIS system where I have to run 15 queries and update 15 sheets which takes a lot of time as I need to make changes...
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
September 25, 2012 at 1:53 am
Viewing 15 posts - 5,566 through 5,580 (of 10,143 total)