Viewing 15 posts - 1,831 through 1,845 (of 13,469 total)
Naveen J V (4/7/2015)
SP is also fine, but again SP needs to be called for each table right?and transaction should be handled with in SP or what?
the stored proc can...
April 7, 2015 at 7:07 am
that would be the default action for dynamic sql within a cursor, then. just don't wrap the cursor in a transaction.
i would not use a cursor for this, but pending...
April 7, 2015 at 7:03 am
so, if your cursor were going to loop through 50 tables,
and you get an error on table #30, do you want to rollback just table30, or the 29 previous...
April 7, 2015 at 6:42 am
this is effectively recreating the wheel, isn't it(youtube.com?)
Like Sean said, i doubt you'll have an API to push around a DVR; i've never seeen or heard of one.
if you have...
April 6, 2015 at 3:10 pm
convert has an optional 3rd parameter:
--2015-04-06 16:13:21.187
SELECT CONVERT(VARCHAR,getdate(),121)
April 6, 2015 at 2:13 pm
also, use quotename around your db variable; sharepoint databases often get created with hyphens, and hyphens or spaces int he naem will break your script
SET @sql = 'USE ' +...
April 6, 2015 at 10:20 am
deleting and inserting again where the your Id already exists is exactly what an update actually does...
it sounds like if you cannot fix the applciation/datastream to know it has an...
April 6, 2015 at 9:43 am
as i remember it, pragmatic works is around 1500 bux, which would save you weeks of self development anyway.
certainly a good option, in my opinion.
April 6, 2015 at 8:30 am
there's an older 2008 version here, which can be compiled:
April 6, 2015 at 8:28 am
you did see that that project contains the complete source code, so you can compile it yourself, right?
April 6, 2015 at 7:44 am
ok, i see what the others were saying now.
https://ola.hallengren.com/sql-server-index-and-statistics-maintenance.html
EXECUTE dbo.IndexOptimize @Databases = 'USER_DATABASES, -Prod',
April 6, 2015 at 7:31 am
i've used this open source project several times:
https://ssissftp.codeplex.com/
no sense reinventing the wheel, if it's open source, you can rename it, taking care to leave credit where credit is due, and...
April 6, 2015 at 6:08 am
for the specific database you exclude, is it a database snapshot, or offline or read only ?
April 5, 2015 at 11:54 am
easy fix.
@temp variables go out of scope when you call it in the msdb.dbo.sp_send_dbmail call , so you'll have to change it to a #temp table instead.
April 2, 2015 at 11:11 am
in a general sense yes,it's probably good for 90% of what you need, but depending on your settings for your scripting options things can NOT be scripted. that's why a...
April 2, 2015 at 9:46 am
Viewing 15 posts - 1,831 through 1,845 (of 13,469 total)