Viewing 15 posts - 4,681 through 4,695 (of 13,469 total)
Well. Remember that the sql security model is deny by default;
Its easy to forget that as a developer since you test as sa/sysadmin.
That means you can create a view and...
September 27, 2012 at 4:08 am
i think in addition to a DDL trigger, you want to change the default paths as well;
a simple CREATE DATABASE SANDBOX' command doesn't specify the path, so unless you changed...
September 26, 2012 at 9:26 am
a case can't due logic...it must return a single value; you are trying to use it more like an If statement to get NextReviewDate < getDate() for example.
i think it's...
September 26, 2012 at 9:05 am
chrisph (9/25/2012)
September 25, 2012 at 3:26 pm
chrisph (9/25/2012)
September 25, 2012 at 1:45 pm
jag4u (9/25/2012)
thanks a lot dude...and can i get all the database list with table count and used space schemas index etccc....
I showed you the basics, but it's up to you...
September 25, 2012 at 12:10 pm
the definition i created was based on sys.tables for SQL 2005;
create your model yourself, and script out the table, then use that for your global table definition:
select db_name()as db,*
into...
September 25, 2012 at 11:43 am
the definition of everything available inside the DDL events are here; the vary based ont he event itself.
http://schemas.microsoft.com/sqlserver/2006/11/eventdata/
looking it over, i think you want the field TargetObjectName from the eventdata:
<xs:complexType...
September 25, 2012 at 11:39 am
you need to create a global temp table, and instead of selecting , insert into the global temp table.
CREATE TABLE ##TMP (
[DB] ...
September 25, 2012 at 11:28 am
chrisph (9/25/2012)
I know the specific columns I am looking more for the syntax of the BCP command within SSMS. I'm a noob 🙂
well, bcp is actually a command line...
September 25, 2012 at 9:26 am
well, building the command is just a join of sys.tables and sys.columns...so the question is how do you know which "certain columns" are to be exported?
if you know the names,...
September 25, 2012 at 8:51 am
unless you consider dbmail creating an attachment as a file for an email, SQL server itself, doesn't have any native ways to write files to disk that I can think...
September 25, 2012 at 5:50 am
are procedures banned from this, ie you can only use a select?
you could do it in a single characet then:
CREATE PROC z
AS
SELECT cos('')
GO
z
September 24, 2012 at 12:08 pm
also, I believe deleted data does not release space until the clustered index is rebuilt...so if you had a 100 meg table, and deleted half of it, it will still...
September 24, 2012 at 11:43 am
this is a great reference that gets mentioned in a lot of posts here;
you can download the PDF for free.
another one that i like a lot is Brent Ozar's 60...
September 21, 2012 at 2:48 pm
Viewing 15 posts - 4,681 through 4,695 (of 13,469 total)