Viewing 15 posts - 196 through 210 (of 2,006 total)
PRR.DB (9/25/2013)
Cadavre (9/25/2013)
No. Why didn't you just try it? It would've failed far quicker than waiting for a response on a forum.
That will fail, but i would like to know,...
September 25, 2013 at 7:13 am
September 25, 2013 at 4:22 am
C.K.Shaiju (9/24/2013)
How do we ignore an error in T-SQL?
For e.g.:- The following code throw an error once the @lCounter reach at 15 and will come out. Requirement is it...
September 24, 2013 at 8:21 am
One of these queries may help.
--== Locks held in database ==--
SELECT request_session_id AS [spid], DB_NAME(resource_database_id) AS [dbname],
CASE WHEN resource_type = 'OBJECT' THEN OBJECT_NAME(resource_associated_entity_id)
WHEN resource_associated_entity_id...
September 24, 2013 at 8:11 am
mouthbow (9/24/2013)
SELECT dbo.CabecerasFacturas.CodigoEpisodio
FROM ...
September 24, 2013 at 8:07 am
This is just for information purposes. . .
"Slow" Query Definition
SELECT cabe.CodigoEpisodio
FROM dbo.CabecerasFacturas AS cabe
RIGHT JOIN dbo.Historias AS hist
INNER JOIN dbo.Episodios AS epis ON hist.CodigoHistoria = epis.CodigoHistoria
INNER JOIN dbo.Centros ON epis.CodigoCentro...
September 24, 2013 at 6:37 am
dwain.c (9/23/2013)
Perhaps this works also?
Definitely, but I suspect that the point of the homework assignment is to learn about outer joins. The question now of course becomes, which is faster...
September 24, 2013 at 4:38 am
This looks a little bit like homework.
First, let's set up your sample data so that people can use it: -
DECLARE @Store_Out_Details AS TABLE (PurchaseOrderNo CHAR(3), SerialNo CHAR(4), Qty INT);
INSERT INTO...
September 23, 2013 at 7:14 am
ChrisM@Work (8/21/2013)
Now that was a great presentation. Watch and enjoy the show, Kapil, and work through a few examples.
I enjoyed it, found some of the questions in the audience to...
August 21, 2013 at 5:49 am
kapil_kk (8/21/2013)
USING (SELECT a,b,c
FROM @tblTempTable) [Source](a,b,[bit]) ON [Target].AccountOfficeId = [Source].a...
August 21, 2013 at 4:47 am
kapil_kk (8/21/2013)
Can anyone tell me from where I can learn about this SET Based approaches?
Aw man, that is a loaded question. Books, blogs, BOL and practise would be my answer.
August 21, 2013 at 4:35 am
kapil_kk (8/21/2013)
Cadavre (8/21/2013)
kapil_kk (8/21/2013)
Koen Verbeeck (8/21/2013)
You can replace the logic beneath @bit = 1 with one MERGE...
August 21, 2013 at 4:34 am
kapil_kk (8/21/2013)
Koen Verbeeck (8/21/2013)
You can replace the logic beneath @bit = 1 with one MERGE statement.
The logic...
August 21, 2013 at 4:20 am
I'd do something like this: -
MERGE INTO table1 [Target]
USING (SELECT a,b,c
FROM @tblTempTable) [Source](a,b,[bit]) ON [Target].AccountOfficeId = [Source].a AND
...
August 21, 2013 at 4:09 am
HowardW (8/19/2013)
If the original data was...
August 19, 2013 at 7:48 am
Viewing 15 posts - 196 through 210 (of 2,006 total)