Forum Replies Created

Viewing 15 posts - 5,701 through 5,715 (of 13,460 total)

  • RE: Valid XML causing Service Broker queue to Error

    that is not a valid xml/html entity character;

    it has to be escaped as [amp]pound; or & pound;(no space between...hard to describe html on the forum)

    http://www.w3schools.com/html/html_entities.asp

    the full list of entities 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: Can I ignore a specific index in a query?

    this index:

    CREATE NONCLUSTERED INDEX other_systems on MyTable(

    other_system_id ASC

    )

    INCLUDE (other_system_key)

    would be good for qa query like

    SELECT

    other_system_id,

    other_system_key

    FROM MyTable

    WHERE other_system_id = 42

    it would not benefit a 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: Can I ignore a specific index in a query?

    i know you can force a query to use a specific index, would that help?

    SELECT ContactID

    FROM Person.Contact WITH (INDEX(AK_Contact_rowguid))

    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: best way to mass email

    i do it the same way, strictly because I'm sending individualized emails; the typical "Dear [Firstname]" emails to each email address i get from multiple rows in 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: can any one just help help me to just avoid comma at end trim for this scalar function?

    try this at the end, instead of the wordier version; i'm using isnull to do the same basic logic as the if statements.

    --even this test is not necessary...but left so...

    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: Need help to query a non-normalized database

    that was a minor syntax issue...the where statemetn was occurring before the join;

    change to this:

    SELECT

    lw.name_code, lw.nc_seq, lw.name_type, lw.age, lw.race, lw.sex,

    split.ItemNumber,

    Item = CAST(REPLACE(QUOTENAME(split.Item,'"'),'"','') AS integer)

    FROM [FAYOSSIRMS].[rms].[dbo].[lwnames]...

    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: Data Extract

    where the sample values 'abcd' and 'ijkl' there to show that the clientid is alphanumeric, or are all the id's really numeric?

    if they are numeric, you can convert them 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: Scalar Variable

    remove the GO statements.

    a GO statement ends the previous batch,and destroys the declared variables as well.

    if you remove the GO statmeents, the variables will still be there, and you are...

    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: Operand data type varchar is invalid for sum operator - Pretty please, can someone help?

    assuming all the values are numeric, you should explicitly convert it to int inside the sum:

    SUM (CONVERT(int,ZL_Count))

    alternatively, the better solution is to make sure your destination table has that column...

    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 convert seconds to time in sql

    dastagiri16 (3/24/2012)


    hi,

    Thanks for replying ...

    It is not working in all cases suppose the seconds is more than 100 hours its showing wrong .

    Thanks,

    Dastagiri.

    so...yo want elapsed time converted to years:months:hours:minutes:seconds, 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: Unexpected Round behavior

    rounding inside the sum can lead to some varying results;

    look at this based on your sample data...the rounding to money is quite a bit different.

    /*4470487.674470487.76384470487.66999997*/

    select SUM(convert(decimal(10,2),number,2)),

    SUM(convert(money,number,2)),

    sum(round(number,2))

    from #temp

    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 it possible to change the orientation/Pagesize within a report.

    I had a requirement like that, and I generated the reports separately,and then used pdfmergerSB545.jar to join multiple PDF's together; in that way, i was able to get some reports...

    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: Unexpected Round behavior

    nathan 7372 (3/23/2012)


    Hello All,

    I'm experiencing some unexpected behavior using rounds and sums on a floating point column. This is my query.

    SELECT

    sum(round([Refund],2))

    FROM [MyDatabase].[TotalRefunds]

    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: Extract data from a string

    the spaces in the file names makes it hard to do also;

    i tried splitting the data on the slahses, and i'm not getting all teh possible results so far.

    with mySampleData(id,val)

    AS

    (

    SELECT...

    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: arithmetic overflow error converting expression to data type datetime

    pragyan.banerjee (3/23/2012)


    Hi,

    This is the exact error I am getting

    Server: Msg 8115, Level 16, State 2, Procedure dateadd1, Line 13

    Arithmetic overflow error converting expression to data type datetime.

    if that inner function...

    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 - 5,701 through 5,715 (of 13,460 total)