Forum Replies Created

Viewing 15 posts - 12,376 through 12,390 (of 13,460 total)

  • RE: Error Severity

    select * from sys.messages will give you the error text as well as severity, etc.:

    message_id

    language_id

    severity

    is_event_logged

    text

    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: Stored procedure trouble with sp_executesql

    isn't this the problem?: @tradeid ahs a single quote, which would stop theprocess, and then all the other varables need doublesingle quotes, like @vcDeptName = ''IF-PM'',

    exec sp_executesql N'sp_UpdateProcessedTrades',...

    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: Whoa! @table variables unaffected by Transaction

    yeah i agree; it's just my knee jerk reaction was "but it's in a TRANSACTION", like that makes up for everything.

    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: Identity Value missing -- SQL 2000

    if you start a transaction, insert, and then rollback due to a business decision, your identity will increment, but no error is thrown. a missing identity value does not necessarily...

    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: Finding system_user

    you can use the function USER_ID() and USER_NAME() inside your trigger, and there is a bunch of system functions like APP_NAME and others that might be helpful for auditing/logging. look...

    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 to list technicians and traffic controllers

    show us the query you have done so far, so we can offer suggestions with your homework; you won't learn if someone just gives you the answer.

    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: Obtaining XML with same tags

    can you show us the sql you are currently using?

    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: I keep getting this error when running this script

    Update dbo.WipJobAllMat

    Set dbo.WipJobAllMat.Bin = dbo.InvWarehouse.DefaultBin

    FROM dbo.InvWarehouse

    INNER JOIN dbo.WipMaster ON dbo.WipJobAllMat.Job = dbo.WipMaster.Job

    Where dbo.InvWarehouse.StockCode = dbo.WipJobAllMat.StockCode

    and dbo.WipJobAllMat.Job = dbo.WipMaster.Job

    and dbo.WipMaster.Complete <> 'Y'

    and dbo.WipMaster.JobClassification = '90'or dbo.WipMaster.JobClassification = '96'

    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: getdate function

    i provided an example when using the convert function; take a look at books on line...

    most people suggest using a datestamp like 200709261727 instead of the format you were suggesting;

    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!

  • RE: Losing user logins when restoring database to new server

    longtime known issue.

    logins on a server are stored in the master database. access to the login is stored in the actual database (select permissions only, db_datareader for example) are inside...

    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: No column exists...still it works!!

    if you don't explicitly say tablename.columnname, the engine does it's best to resolve the columns automatically, since there IS a state column in one of the two tables involved int...

    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: Embedding Excel in a Send Mail Task

    watching this topic, to see if it's possible.

    personally I always make CSV or HTML files and change their extension to .XLS, so I never automate Excel, and I've always just...

    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: Trigger to increment the salary by 10%

    ok think the business rule thru completely;

    if a technician does his three tests in one day, he's qualified for a 10% raise(note you said raise and not a bonus, 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: Trigger to increment the salary by 10%

    yeah hire me too and i'll be a testing maniac! getting my pay to go up 10% per day of testing would be awesome.

    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: Trigger to increment the salary by 10%

    zim (9/25/2007)


    Posted - 09/25/2007 : 04:13:20 Show Profile Email Poster Edit Topic Reply with Quote

    i want to write a database trigger to increment the salary...

    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 - 12,376 through 12,390 (of 13,460 total)