Viewing 15 posts - 6,346 through 6,360 (of 7,608 total)
Are you absolutely sure it's file #2? SQL verifies a file before restoring it.
Check the backup file contents just to be sure:
RESTORE FILELISTONLY
FROM DISK = 'F:\For restore\Lss_backup_2013_10_13_000010_4544977\Lss_backup_2013_10_18_000012_9335308.dif'
Edit: Corrected backup...
October 18, 2013 at 1:27 pm
T.Ashish (10/17/2013)
Jeff Moden (10/17/2013)
ScottPletcher (10/17/2013)
Or just:ORDER BY 1
I often avoid using the column names at all in UNIONed queries, as the names somehow seem to
change a lot 🙂 :
Thank...
October 18, 2013 at 8:22 am
Also, you need to review the SQL log from when the error first occurred. Sometimes when errors occur SQL gets stopped and restarted, which causes a log switch. ...
October 17, 2013 at 4:16 pm
Or just:
ORDER BY 1
I often avoid using the column names at all in UNIONed queries, as the names somehow seem to
change a lot 🙂 :
October 17, 2013 at 4:11 pm
The CROSS APPLY and SUBSTRING below should do what you need. Let us know if you need some clarification for getting it into an UPDATE statement.
DECLARE @leading_trailing_chars_to_eliminate varchar(10)
SET @leading_trailing_chars_to_eliminate...
October 15, 2013 at 4:14 pm
You'll need to format the hours separately, as below, since style "114" will only handle up to 23 hours:
SELECT
CAST(DATEDIFF(ms, ActualStartTime, EndTime) / 3600000 AS varchar(3)) +
...
October 15, 2013 at 3:38 pm
I think the code below is a reasonable interpretation, but whether it's correct or not is far from certain:
ALTER TABLE [Lkup].[ReceiptReasonCodes]
ADD [IsValidSap] [bit] NULL
October 15, 2013 at 3:28 pm
LutzM (10/14/2013)
ScottPletcher (10/14/2013)
...You would have to use a trigger to prevent sa activity....Every sa could disable the trigger and still perform updates.
I should have mentioned that. I was thinking...
October 15, 2013 at 8:02 am
You can't directly restrict sa (sysadmin) accounts from any activity in SQL Server. You would have to use a trigger to prevent sa activity.
For only non-sa, you could try:
DENY...
October 14, 2013 at 2:59 pm
Use LEFT OUTER JOIN, but don't cast datetimes in any data table to dates to do comparisons; instead, use a range check.
Here's a sample join for the tables you've described:
SELECT...
October 2, 2013 at 10:12 am
Be aware that a global temp table means the code must be single-threaded, as simultaneous executions of the code would stomp on each other.
September 30, 2013 at 1:45 pm
Here's my version to do only a single pass of the table.
But I'm not sure why you want to list only "D" in the result, since both "B" and "D"...
September 30, 2013 at 1:39 pm
Seems to me like it must be two different RAID5 sets ... wouldn't different drives on the same RAID set already be using both drives?!
Either way, I'd delay your #1...
September 27, 2013 at 3:22 pm
Neither CAST nor CASE is actually necessary here:
SIGN(CHARINDEX('@', <string_value>))
September 27, 2013 at 9:55 am
Btw, if weekdayid is unique (and it seems like it has to be for this table to make sense), get rid of the dopey IDENTITY column in this table! ...
September 27, 2013 at 9:50 am
Viewing 15 posts - 6,346 through 6,360 (of 7,608 total)