Forum Replies Created

Viewing 15 posts - 4,681 through 4,695 (of 13,460 total)

  • RE: detailed information of tables in all databses

    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...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: detailed information of tables in all databses

    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...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: Capture table info when index is created

    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...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: detailed information of tables in all databses

    you need to create a global temp table, and instead of selecting , insert into the global temp table.

    CREATE TABLE ##TMP (

    [DB] ...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: Scripting - BCP out certain columns in table?

    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...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: Scripting - BCP out certain columns in table?

    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,...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: load sql server table data to flat file with out applications

    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...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: Intresting Question need answer ASAP

    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

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: Disk Used by Tables

    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...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: SQL DB Administration

    this is a great reference that gets mentioned in a lot of posts here;

    you can download the PDF for free.

    http://www.simple-talk.com/books/sql-books/troubleshooting-sql-server-a-guide-for-the-accidental-dba/

    another one that i like a lot is Brent Ozar's 60...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: How to know if db accounts have blank passwords?

    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...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: cannot connect help asap

    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...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: cannot bring database back online

    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...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: DBA Interview Questions needed - Serious only please.

    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...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: How to know if db accounts have blank passwords?

    i have this saved in my snippets; it's checking a short dictionary of weak passwords, and also where the password is the users name.

    you might want to expand the dictionary;

    for...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

Viewing 15 posts - 4,681 through 4,695 (of 13,460 total)