Forum Replies Created

Viewing 15 posts - 11,446 through 11,460 (of 13,460 total)

  • RE: DDL trigger for ALTER_DATABASE is not working

    you'll need to paste the trigger in question, so we can see what the issue is.

    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: Invalid column name EE0_Classification

    it's not obvious, but the table definition says 'eeo'_Classification, but the insert is 'ee0'_Classification

    so the chars look the same, but the "O" is not the same character "0" in...

    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: Update and delete question...

    if you can provide the actual CREATE TABLE statements, and a few rows of sample data, we could really help a lot better.

    off hand, i think you'll update table2 before...

    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: Import table process

    psuedo code wastes your time and mine...give us the specifics so we can help with specific answers.

    1. Import the table [message]from server a to server b

    --are you doing this 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 keep logging enabled in SQL Server 2005 table.

    you can do it by comparing the COLUMNS_UPDATED function to see if specific columns have changed, and only let the trigger run if that is true; it uses a bitmask...

    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: Import table process

    one of Florian's many points is this:

    SQL server does not natively have a rollback after x seconds functionality. because a database needs to preserve ATOM-ocity, it's an all-or-nothing scenario,...

    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: DDL auditing in sql server2000

    definately use some of the log trolling tools out there...i think RedGates SQL Log Rescue for SQL 2000 is/was free, so something like that or profiler are your best bets.

    i...

    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: Inner Like Join?

    correct me if I'm wrong, but the character after the '-'(A,B etc) is the screen...so if you get that substring, you could check for the charindex on each user:

    try joining...

    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: sys.sysservers table

    i mapped this out for fun; i reversed engineered by comparing the values to all my serves(8 total in my db) for the first 10 columns, the values seem...

    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 with Group By

    you want to use MAX() to get the highest values,sum() to add stuff, and group by the items that you want to...well..group by. something like this:

    select

    max(id),dpid,cabid,max(stlid),joid,sum(qty)

    from your table

    group by dpid,cabid,joid

    Rad...

    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: list all the user permissions

    use the search in the upper right for "script user permissions"

    there are like ten different versions of scripts in the contributions section that does exactly this;

    this is the one i...

    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: script to see total number of records in all the tables in one db

    if you search for "count all rows", there are like 10 different versions of this script in the contributions.

    there's two ways to do it:

    use the indexes to get the counts,...

    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: Script to return a table using foreign key references and dynamic SQL

    in your example above, you mentioned only specific fields, that would be grabgbed based on foreign keys:

    Orders.OrderID, Orders.CustomerID, Customer.CustomerID, Customer.Name, Orders.ProductID, Products.ProductID, Products.Name

    that is nothing more than a view which...

    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 create a database using SQL Server Management Studio or from external program

    looks like someone has specifically prevented new databases from being created...most like a DDL triger at the server level. that is not an MS error message...someone returned that message as...

    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: Script to return a table using foreign key references and dynamic SQL

    yes i've done this lots of times.

    for me, the core was using sp_fkeys [yourtable] to get all the direct dependancies on the table...

    from there, it was building all the queries...

    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 - 11,446 through 11,460 (of 13,460 total)