Forum Replies Created

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

  • RE: view to select from different database

    unless you add an alias to the the tables from the other db, you have to reference them with the whole 4 part identifier in the select:

    [ON_KEY_42R5_UDM2]..astAssets.ID,

    not 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: Problem With IsNumeric()

    damn you are right....

    i copied this from the end of a long thread, figuring it was complete...i tried isReallyInteger('bob'), which returned 1 for true...I'm looking at it, but it's either...

    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: Problem With IsNumeric()

    a much longer thread on the ins and outs and liabilites of the IsNumeric function resulted in two enhanced user function s:IsReallyNumeric and IsReallyInteger. I saved them in my snippets.

    try...

    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 Truncate all Tables?

    except for the fact that a delete is logged and truncate is not, doing a DELETE and the DBCC RESEED has the same affect.

    this script grabs the tables in FK...

    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 query syntax problem

    just missing the ELSE/END:

    update tblDrawings

    set TypeCode = case SheetNumber

    ...

    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

    it's your business process, so you'd know better than me...do you need to update the whole table every time?

    i thought the trigger should only update from the INSERTED table, and...

    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: Drop all database objects in sql 2005

    there is a built in procedure to get all your objects in dependancy order:

    EXEC sp_msdependencies @intrans = 1

    I've only used it to build script, and not to drop...

    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: DB design

    I think you are planning the right way. I try to analyze the issue like this:

    say i was going to support Spanish language version of my data, and consider...

    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 Find the most critical queries

    you really need to start with creating a trace with profiler....create one and let it run for a while...I'd say one business day.

    with that, it will give you every query,...

    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 me to know

    somewhere in your classes, notes and lectures, you must have heard there is an INFORMATION about SCHEMA information in the database I wonder if you were to look at some...

    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 me to know

    With this being your final year project at school, it wouldn't be right for us to do the work...you'd never gain the knowledge by copying our code. Being aware of...

    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: Function - Check Count

    you were so close on the syntax;

    to assign to a static value, you usually use SET; but

    you can assign a variable inside a select, like SELECT @CITY=CITY,@STATE=STE FROM ADDRESSES....

    here's...

    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: Calling Stored procedure at specific time

    dunno why i keep looking at this...

    you can add a trigger on the VIEW to handle the status column....

    rename the original table.

    --add a view that has the old table name...

    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: Calling Stored procedure at specific time

    Lynn he had stated previously that he actually has to check a couple other tables to get the true status...i think this was just a simplified example....since he's got 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: Calling Stored procedure at specific time

    the point trying to make, is that if the "status" is based on criteria, which you said was a combination of the end date and other factors in other tables,...

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