Viewing 15 posts - 5,566 through 5,580 (of 10,144 total)
Steven Willis (9/25/2012)
September 26, 2012 at 1:43 am
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...
September 25, 2012 at 9:01 am
dwain.c (9/24/2012)
Sean Lange (9/24/2012)
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...
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...
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...
September 25, 2012 at 6:48 am
EdA ROC (9/24/2012)
I think I mentioned before that...
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(...
September 25, 2012 at 3:34 am
mick burden (9/24/2012)
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(),...
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...
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...
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...
September 25, 2012 at 2:18 am
prasan.dash83 (9/25/2012)
'Create table emp_hrs as...
September 25, 2012 at 2:13 am
Duplicate post - please reply to
September 25, 2012 at 1:55 am
Viewing 15 posts - 5,566 through 5,580 (of 10,144 total)