Forum Replies Created

Viewing 15 posts - 12,136 through 12,150 (of 13,460 total)

  • RE: Total columns in a table

    I was in a similar thread a while back, where there were really three different measures that we discussed:

    max defined rowsize of the table

    the actual max rowsize 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: Can this messed up text file be loaded into a table w/o using a Parser.

    well, you could insert it into a table, but I'm not sure that would help much.

    the report has 48 lines of header information, that may or may not be 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: How can I catch a blank column value on SP input?

    Jeremy's method is better; your statement will not catch an error if a space ro multiple spaces are entered...only an empty string; Jeremy catches null, empty string, and spaces...

    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 in updating

    what you are missing is an UPDATE FROM statement.

    you can say UPDATE [sometable]

    from [someothertable]

    where sometable.id=someothertable.id

    in your case, you know where the data is...you were able to select it 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: Convert RTF data

    Christopher Taylor (1/25/2008)


    i've thrown a bit of error handling in (after 1st sp_OASetProperty) and this is the output:

    ObjectID: NULL - looks like this is the problem!

    hr: 0x80042727

    Source: ODSOLE Extended Procedure

    Description:...

    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: If Then logic

    Phil you just made me so happy;

    I had previously bookmarked http://www.simple-talk.com/prettifier/default.php,

    which is fine for formatting code for some things, but not for here at SSC.

    the new link you posted at...

    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: Dynamic SQL into a temp table

    I would have changed the process to get the data myself. your proc is what my boss calls "putting wings and wheels on a horse"...that is, using one procedure 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 Dynamically Updating Tables in the procedure...?

    if the tablename is a parameter, then you must use dynamic sql.

    here's an example:

    --for users who are too lazy to type "SELECT * FROM"

    CREATE procedure sp_show...

    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 to find data over range of years

    since YEAR() function returns an integer, you could use where Year() > 2003 instead:

    select distinct CustNumber

    from dbo.InvoicesView

    where CustNumber in

    ( select distinct CustNumber

    from dbo.InvoicesView

    ...

    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: Create 'Vanilla Database'

    ok here's a script that creates the statements to delete or truncate where appropriate, and creates the statements in Foreign Key Hierarchy Order.

    now remember there are always tables 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: Selecting rows from 2 Tables

    try this and look at the results:

    SELECT *

    FROM GRADSTUDENTS G

    FULL OUTER JOIN TA T ON G.LOGINID = T.LOGINID

    --WHERE G.LOGINID IS NULL

    --WHERE T.LOGINID IS NULL

    the first rows 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: Cannot connect to SQL Server Express using a connection string

    it has to do with mix mode being allowed or not. on express, it's turned off by default, but usually on for production servers.

    1) Open up SQL Server Management Studio...

    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: Selecting rows from 2 Tables

    when you get a problem where it say find data that is NOT [whatever]

    you typically need to use a LEFT OUTER JOIN, instead of an INNER JOIN

    the word "join" 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: Convert RTF data

    I'm just guessing, but it might be the size of the variable being passed; I'm also assuming your not using the fnParseRTF, since that doesnt need CLR or OLE.

    add this...

    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: Find Table an Column name

    it might be that all your objects are not owned by dbo.

    you might have tables that need to be referenced by mike.tablename or webdev.tablename, for example .... instead of 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!

Viewing 15 posts - 12,136 through 12,150 (of 13,460 total)