Forum Replies Created

Viewing 15 posts - 9,511 through 9,525 (of 13,460 total)

  • RE: grouping

    lcarrethers (5/10/2010)


    This gives my my totals i want but like i said i want the varid field added and some way i will need toget one of one of the...

    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: management studio stripdown

    I carry LinqPad[/url] around on a flash drive for occasions when i sit at a machine without SSMS;

    it's portable and has the ability to do object explorer equivilents as well...

    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: grouping

    ok i think this is doing what you want;

    i'm getting the original group as a sub select, and then rejoining it to the original table.

    i think there was an error...

    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: grouping

    between your two posts, the data changed; more columns, other null fields, etc.

    here is the second pass; this xemplifies why posting the table and data works so well...it avoids...

    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: grouping

    since you are new, I'm helping out and providing the work table and the data in a consumable format;

    that way anyone can test a query against it and confirm results.

    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: Some way to create a deterministic computed column that only has to count once?

    this is a logical mistake; you should never try to keep a counter in a table; the counter should be derived in a view, instead; go with bteraberry's idea 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: unfamiliar use of =*

    that's the old, deprecated syntax to designate outer joins:

    --AND R.Code = W.TransactionType is the same as

    FROM R INNER JOIN W ON R.CODE = W.TransactionType

    --AND R.Code *=...

    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: DBMail does not work

    most mail servers allow relaying only for two conditions: if your IP address is on the same subnet as the mail server, ie the internal IP to your mail...

    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: synchronise b/w servers

    what does "sychronize" mean to you?

    can you just take the backup at ServerA and restore it at ServerB, or does each server have data that their opposite server does not...

    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: SSMS Recently Used Server List

    Wayne what you are after is stored in the registry, and it depends on which verison of SSMS you are using for the exact key;

    the lazy way is to regedit...

    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: determine the sql server version from the .mdf file

    i mistook the requirement to be info in @@Version, to see if it was Express/Workgroup/Standard/Enterprise/Developer that had been using the file.

    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: determine the sql server version from the .mdf file

    i don't believe this is possible;

    i was under the impression that the mdf is a standard file format for each version(2000/05/08)...meaning that all versions of SQL save to the...

    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: Select tbl1.a if exists otherwise tbl2.a

    i was a little unsure on which to select; his thread title said "Select tbl1.a if exists otherwise tbl2.a",

    and i glossed over the implication that whether tbl1 or tbl2 =...

    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: Select tbl1.a if exists otherwise tbl2.a

    -- COALESCE returns the first non-null value from the list provided; it is a param array, so an large number of arguments can be passed to check for non-nulls.

    SELECT COALESCE(tbl1.a,tbl2.a,'no...

    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: Please help me out with this stored procedure

    i suspect you need to use ISNULL for each of your columns, right?

    concatenating NULL to anything is null, so i think that's the problem:

    DECLARE @tableHTML NVARCHAR(MAX);

    SET @tableHTML =

    N'<H1>Hot Item(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!

Viewing 15 posts - 9,511 through 9,525 (of 13,460 total)