Forum Replies Created

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

  • RE: Is there a function which determines if a varchar is a number?

    the previous link was a 20+ page forum discussion here on SSC;When I used the Google tool, it did not find the thread; I grabbed what items I thought were...

    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 optimize my store procedure?

    maybe I'm missing something, but i do not see any reason for the looping construction to be in your procedure(which is the reason it is slow)

    it looks like you load...

    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: loop to search for values in a table

    SELECT *

    FROM CustomerMapping_Stage

    LEFT OUTER JOIN CustomerMapping

    ON CustomerMapping_Stage.ClientNo = CustomerMapping.ClientNo

    AND CustomerMapping_Stage.Customer= CustomerMapping.Customer

    --this finds what is NT in CustomerMapping YET:

    --AND CustomerMapping.PKid IS NULL

    martina.kenny (11/4/2008)


    The table structures are 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: HELP NEEDED IMMEDIATELY

    check the first link again, I re-edited it; the second link should be fine as well. they just open as a text file; the script is beyond the size limit...

    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 NEEDED IMMEDIATELY

    just realized that script does not handle things like varchar(max) gracefully.

    here is a link to a 2005 version:

    db_documentation_in_html_script_enhanced2005.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: HELP NEEDED IMMEDIATELY

    i got what you are looking for;

    there was a script submission that someone made; It creates an HTML document, which you just save and view.

    I've enhanced it slightly, and 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: Is there a function which determines if a varchar is a number?

    you can try the isnumeric function:

    WHERE ISNUMERIC(SOMEVARCHAR) = 1

    but as others will tell you, it's not 100% reliable, because of the way it is structured; for exampel

    select isnumeric('1E2')

    select isnumeric('1d2')

    all...

    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: INSERT INTO table with an NOT NULL column ?

    you need to change the isnsert so that it has your objnum in it, typcially by joining to the right table.

    for example, if you have a lookup table that has...

    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: Query in 2000 returns in 1 second, in 2005 it runs for more than six minutes

    in my experience, when the same query doesn't run right on two different servers, i check two items first thing: statistics and parameter sniffing.

    statistics on one server might be up...

    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: Logic for traversing thru different columns in one row

    ok here's an example for you to play with to understand the concept:

    create the two tables, and select from the two tables after every step;

    this example says if columns 3,4,5,6,7...

    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: populating my table

    all i meant was you are joining lots of tables in this query....if any two of the tables have a column named PARNT then you will get an error that...

    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: populating my table

    first thing i notice is you declared 43 variables, but only use one of them; i guess there's more to this than you pasted?

    next a minor thing is that 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: Logic for traversing thru different columns in one row

    you could easily do this automatically in a trigger, especially by using the new COLUMNS_UPDATED() function that exists for triggers in SQL2005; if a change occurs, you could have a...

    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 Server Agent

    if your dev machine is running SQL Express or SQL Express Advanced, SQl Server Agenct does not exist; it's not part of the featureset, and i suspect that is what...

    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: disabled component to install

    aw come on, you know what i mean...Dev is limited to a max of 10 connections, instead of limited only by memory in the full version, a couple 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!

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