Viewing 15 posts - 4,681 through 4,695 (of 13,465 total)
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
for domain users, that's all true, but for SQLLogins, unless you use the options, or set up a policy to enforce the options, you can still create users with weak...
September 21, 2012 at 1:11 pm
it means the default database the user you are trying to connect with doesn't exist any more...renamed, dropped, whatever.
you need to log in as an administrator and change the default...
September 21, 2012 at 1:03 pm
ok if you are running a command like the one below, what error are you getting?
Or is it you expect the SSMS object explorer to auto-refresh and not show...
September 21, 2012 at 1:01 pm
ok, I have my own my knee jerk reactions for the things to review.
Grant wanted to avoid putting the answers on the forum, but i'd kind of like to see...
September 21, 2012 at 11:38 am
Viewing 15 posts - 4,681 through 4,695 (of 13,465 total)