Viewing 15 posts - 8,896 through 8,910 (of 13,461 total)
laddu4700 (8/20/2010)
Thank you very much.2 more questions on sql security
1. Can we create a SQL login with out creating a windows user?
yes, of course. sql supports two kinds of...
August 20, 2010 at 9:42 am
something like this, maybe?:
CREATE ROLE [MyNewRole]
--Select permission (assuming every object, not specific tables)
ALTER AUTHORIZATION ON SCHEMA::[db_datareader] TO [MyNewRole]
--Insert update delete permission (assuming every object, not specific tables)
ALTER AUTHORIZATION ON SCHEMA::[db_datawriter]...
August 20, 2010 at 9:25 am
looks like mine is similar to yours; just different fields that i'm capturing.
here's what i see as the differences:
I'm using sp_GetDDL not sp_GetDDLa, which returns multiple rows. i am using...
August 19, 2010 at 3:17 pm
i remember having to restart when i was playing around with lots of traces;
when C2 auditing is on, c2 traceid = 1, the default trace = traceid 2, and any...
August 19, 2010 at 12:18 pm
i'm very sure you need to simply change the c2 audit setting, then just stop and start the server;
i've done it quite a few times, and that's all i did.
August 19, 2010 at 8:32 am
well i am not na expert in xml by any means, but i googled a bit and got this to almost work; this might give you some ideas:
--the query to...
August 19, 2010 at 7:13 am
I'd recommend the method Krishnraj suggested; this is especially true with big tables with lots of constraints or foreign keys or other dependancies....the GUI does all the grunt work behind...
August 19, 2010 at 6:28 am
try using greater than instead of equal in your query:that way you get everything delivered since yesterday
where DELIVERY_date >= select DATEADD(dd, DATEDIFF(dd,0,getdate() -1), 0)
August 19, 2010 at 6:12 am
Jayraj.Todkar there is no easy way to do this, and especially not easy in SQL itself.
I can think of two ways to do this:
get the execution plan as xml.
inside that...
August 19, 2010 at 6:07 am
also look at the data in delivery date: if it contains a time portion, you'll want to strip that time off as well to do your equality comparison.
--substitute zero for...
August 19, 2010 at 5:48 am
you'll get used to handling dates; this is one of the coolest things to use once you get your head wrapped around it.
the issue you are seeing is that getdate()...
August 19, 2010 at 5:46 am
i know there are some built in sp_* functions that use cursors, so i ran this query to see if you made the change, would it be easy to identify...
August 18, 2010 at 11:08 am
a quick google for me seems to show that sp_prepexec and sp_unprepare are used internally by SQL to create/use a cursor; most of the posts i found are related to...
August 18, 2010 at 10:37 am
ahh kewl let me know how that works for you; that is one of the many reasons i made this proc( and a function that does the same thing)
i had...
August 18, 2010 at 9:50 am
dayum that made for a really nice enhancement, Vincent.
here's links to two updated versions of the script.
sp_GetDDL V 309 returns the definition as a single varchar(max) of any of...
August 18, 2010 at 9:28 am
Viewing 15 posts - 8,896 through 8,910 (of 13,461 total)