Viewing 15 posts - 451 through 465 (of 496 total)
Please provide the actual code to create the tables and some sample data inserts too. After that we should be able to help you with the query.
At first glance...
October 21, 2013 at 1:07 pm
Well you could use the copy-only option with your native backups until you feel comfortable with the NetBackups. Here is a link on copy only backups: http://bit.ly/181yi6y
It won't...
October 21, 2013 at 12:31 pm
Have you verified that the SQL Server service account has access to write to that network directory?
October 21, 2013 at 10:28 am
If you create those tables and add some test data and run both queries you will notice that you get the same exact plan. The two statements are identical.
As far...
October 21, 2013 at 8:37 am
I'm not sure I understand why you need to do both backups? What is the situation that you are trying to solve by having to do both native and NetBackups...
October 21, 2013 at 8:27 am
This should get you pretty close.
select
coalesce(a.UnitDate,dateadd(dd,1,b.UnitDate)) as UnitDate
,coalesce(a.UnitID,b.UnitID) as UnitID
,case
when a.UnitID is null then 'Unit No Longer Available'
when b.UnitID is null then 'Newly Available Unit'
end
from @AvailableUnits a
full outer...
October 10, 2013 at 11:20 am
The log file will simply change it status from a 2 (active) to a zero which means that the 1's and 0's are still there. He could do what you...
October 10, 2013 at 7:06 am
Take a look at the following link on how to create, use and manage partitioned views:
http://technet.microsoft.com/en-us/library/ms190019(v=sql.105).aspx
October 9, 2013 at 8:40 pm
add a "select @DB" before you run the sp_execute statement and verify that the query looks correct.
October 9, 2013 at 1:16 pm
sp_execute needs the statement to be unicode, so change @DB to NVARCHAR...
October 9, 2013 at 12:42 pm
This will work, but I'm not sure how the performance will be on 10 million rows.
insert into SessionNumber
values (123, '09:00:00')
, (123, '09:01:00')
, (123, '09:02:00')
, (123, '09:05:00')
, (123, '09:08:00')
, (123, '09:11:00')
,...
October 9, 2013 at 11:47 am
Would this work?
create table SessionNumber (userID int, startTime time, sessionNum int)
insert into SessionNumber
values (123, '09:00:00', 0)
, (123, '09:01:00', 0)
, (123, '09:02:00', 0)
, (123, '09:05:00', 0)
, (123, '09:08:00', 0)
, (123, '09:11:00',...
October 9, 2013 at 10:09 am
As mentioned above try using this:
coalesce(st.markdownprice1,st.sellprice1)
That should get you what you want.
October 9, 2013 at 7:26 am
A couple of questions:
Is the growth due to the log file or the data file in TempDB?
Are you using Snapshot Isolation?
Have you checked for long running transactions?
What have you...
October 8, 2013 at 1:30 pm
Viewing 15 posts - 451 through 465 (of 496 total)