Viewing 15 posts - 6,226 through 6,240 (of 13,879 total)
alex.sqldba (12/8/2016)
I have an archive routine that runs every night, it inserts some rows and then performs a delete. Basic stuff.
I have had to move the archive database to...
December 8, 2016 at 5:34 pm
You need to make the updates conditional. Add something like
WHERE a.load_id <> q.load_id or a.load_id is null
to both queries.
December 8, 2016 at 12:58 pm
... we need the queries to run like this:
You still haven't explained why.
December 8, 2016 at 11:03 am
Lowell, that's a neat trick!
Next step would be some refinement to return the actual SQL needed, ready for cut & paste. This sort of thing (borrowing your code):
IF OBJECT_ID('tempdb..#temp', 'U')...
December 8, 2016 at 10:17 am
sanjaydut26 (12/8/2016)
Thanks John, but no such files. 🙂Thanks
Sanjay
I think you are out of luck. There is no magic 'reduce the size of files without shrinking them' command.
December 8, 2016 at 8:23 am
First thing I'd suggest is removing this line:
INNER JOIN dbo.Drops D ON J.JobID = D.JOBID
As it is no...
December 8, 2016 at 7:26 am
padmakumark26 (12/8/2016)
Like select * from table .
But i cannot access like that it is...
December 8, 2016 at 7:15 am
padmakumark26 (12/8/2016)
I created a user (User1) and Schema (shema1). Made schema1 as defult user schema.Now i cannot access table name without schema1.table name. Select * from table don't work
I...
December 8, 2016 at 6:38 am
December 7, 2016 at 2:11 pm
dianerstein 8713 (12/7/2016)
December 7, 2016 at 1:02 pm
Can you use something like this?
IF NOT EXISTS(SELECT * FROM sys.indexes WHERE object_id = object_id('schema.tablename') AND NAME ='indexname')
--Do stuff
December 7, 2016 at 11:11 am
dianerstein 8713 (12/7/2016)
December 7, 2016 at 11:07 am
wendy elizabeth (12/7/2016)
December 7, 2016 at 10:52 am
paul 69259 (12/7/2016)
That appears to be nearly there the only problem now is if a job doesn't have any additional drops it doesnt show the collection and...
December 7, 2016 at 10:48 am
IF my understanding is correct, STUFF should do what you want.
You had the same idea as me, though STUFF is not doing much here other than removing an unwanted character;...
December 7, 2016 at 10:08 am
Viewing 15 posts - 6,226 through 6,240 (of 13,879 total)