Viewing 15 posts - 5,356 through 5,370 (of 8,753 total)
Quick thought, open all scripts in SSMS and do Find and Replace in All open documents
😎
May 7, 2015 at 1:00 pm
Ed Wagner (5/7/2015)
Revenant (5/6/2015)
whereisSQL? (5/6/2015)
DonlSimpson (5/6/2015)
Ed Wagner (5/6/2015)
Eirikur Eiriksson (5/5/2015)
Ed Wagner (5/5/2015)
DonlSimpson (5/5/2015)
SQLRNNR (5/5/2015)
Revenant (5/5/2015)
Ed Wagner (5/5/2015)
TomThomson (5/5/2015)
SQLRNNR (5/5/2015)
skaarhulk
Hogan
Champ
CHUMP
Chimp
Zoo
Smell
Code
Bug
Fix
Coordinates
Schedules
Overruns
May 7, 2015 at 5:57 am
charipg (5/6/2015)
it returns 21 rows.
Try copy the single row from the second query and paste it to a text editor, the full statement should be there.
😎
May 6, 2015 at 10:05 am
Since you don't need historical quantities, you can just summarize the current status
😎
SELECT
WM.ItemID
,SUM(WM.Quantity) AS CURRENT_QTY
FROM @WhareHouseMovement WM
GROUP BY WM.ItemID;
May 6, 2015 at 1:19 am
charipg (5/5/2015)
i tried with both scripts, both scripts returns only one grant statement, but it should return more grant statements.
What does this query return?
😎
SELECT 'grant execute on ' +
...
May 5, 2015 at 10:42 pm
Came across this few years back, caused some strange behaviour and took some effort to find the cause. Workaround was to call T-SQL GETDATE() once at the start of the...
May 5, 2015 at 10:19 pm
Ed Wagner (5/5/2015)
DonlSimpson (5/5/2015)
SQLRNNR (5/5/2015)
Revenant (5/5/2015)
Ed Wagner (5/5/2015)
TomThomson (5/5/2015)
SQLRNNR (5/5/2015)
skaarhulk
Hogan
Champ
CHUMP
Chimp
Zoo
Smell
May 5, 2015 at 10:10 pm
petervdkerk (5/5/2015)
Any idea already? 🙂
Still cannot run the DDL and sample insert as the insert for the dbo.giftregistry is missing;-)
😎
May 5, 2015 at 9:54 pm
Quick thought, no need for a dynamic sql statement here.
😎
The query you are constructing looks like this
SELECT
N_image_number
,N_image_name
,N_image_desc
...
May 5, 2015 at 9:45 pm
dmayley (5/4/2015)
Eirikur Eiriksson (5/3/2015)
May 5, 2015 at 9:39 pm
Quick question, why not create the symmetric key in the destination database?
😎
May 5, 2015 at 9:27 pm
Lowell (5/5/2015)
that code will update all rows, instead of just what was just inserted.
Good point Lowell, without the restrictions this is a proper time bomb, down the line it will...
May 5, 2015 at 9:20 pm
Quick question, could it be seconds after midnight UTC?
😎
To convert to a time value, use DATEADD(SECOND....
DECLARE @TTIME TIME = CONVERT(TIME,'00:00:00');
DECLARE @SECONDS_AFTER_MIDNIGHT FLOAT = 75644;
SELECT DATEADD(SECOND,@SECONDS_AFTER_MIDNIGHT,@TTIME);
May 5, 2015 at 9:15 pm
Further on Grant's post, recommend you have a look at Kalen Delaney's book SQL Server Concurrency:
Locking, Blocking and Row Versioning
😎
May 5, 2015 at 9:09 pm
Viewing 15 posts - 5,356 through 5,370 (of 8,753 total)