Forum Replies Created

Viewing 15 posts - 8,806 through 8,820 (of 13,459 total)

  • RE: Using the results of one query as the criteria in another query

    there's an article on something similar labeled "exotic joins" i think; if you search and read that, it can help you understand some of the less logical reasons to join...

    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: Creating a documentation

    looked like the "enhanced" version has an error in it;

    this is my slightly edited version of the same script; it runs without errors on both a 2005 and 2008 database:

    db_documentation_enhanced.txt

    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: Creating a documentation

    take a look at this wonderful script contribution:

    Comprehensive HTML Database Documentation(Revised)[/url]

    it produces well formatted, informative html document, which you could then copy and paste into excel, or open with excel.

    I've...

    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 check table creation statement

    i went to the trouble of creating a stored proc that does this;

    as previous posters already identified, the actual statement is never saved...all you can do is script out the...

    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: Login

    who created the users is not saved anywhere...with a minor exception.

    SQL does not keep track of who created or modified anything...except for a short period in the default trace.

    the...

    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 the insertion order of records in a table?

    i think the 2005 %%LockRes%% row identifier and the 2008's equivalent %%physloc%% only tell you how the data is stored, which is based in the clustered index of the table...

    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: Template - Request for Proposal for Disaster Recovery

    i have this saved in my snippets as a DR framework from a post that appeared on SSC fairly recently...I thought simon provided a pretty good list of things to...

    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 disable a default constraint in Sql Server 2005?

    also notehow a DEFAULT constraint is used! default does not mean "replace null with the default value", it means "if not included, use THIS"

    if you include a value in your...

    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 get Foreign Key back to is_trusted

    Mike Byrd (9/3/2010)


    This is after a re-enable of the constraint. Now I want to get the constraint back to a is trusted state.

    i thought re-enabling the constraint prevents future...

    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 get Foreign Key back to is_trusted

    if you disable FK's, then insert, then renable, a FK is is_not_trusted = 1 if there is data in the child table that violates the FK constraint right (like inserting...

    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: BCP from SQL server 2k to Solaris operating System

    another option is that SSIS can migrate data both to-and-from SQL to another data source....all you need is an ODBC connection.

    you could set up a package with the import/export wizard...

    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: HELP URgENT: Can you install sql on application server

    run the msi and click next five or six times....

    seriously, an "application" server is just another server that is being used for a specific purpose.

    you would have to decide if...

    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: Unable to access SQL DBEngines that have been moved to a new domain

    I believe that you can connect as sa(if you know the password), and then add the the right groupsto the sysadmin group.

    otherwise as a local administrator, you need to connect...

    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: Birthdays in next 7 days

    there may be a more streamlined way to do it, but this works:

    --results:

    BDayYearBegin dob ...

    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: getting duplicate records for a primary key column

    mostly your problem is your design is not using an identity...but it is also procedurally based, and not thinking in terms of SET based solutions.

    what if i were to insert...

    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 - 8,806 through 8,820 (of 13,459 total)