Forum Replies Created

Viewing 15 posts - 10,006 through 10,020 (of 13,469 total)

  • RE: Connection String Problem

    just wrap the servername in brackets, the same way you do with TSQL reserved words:

    Data Source=SQLSRVDEVNSMAIN;Database=pubs;Trusted_Connection=True;";

    string connectionString =

    "Data Source=[HENRY-PC\SQLSRVDEVNSMAIN];Database=pubs;Trusted_Connection=True;";

    you could also switch to an ip\instance, or an ip port, which...

  • RE: Showing Time in [h]:mm:ss format

    i think something like this might help you build what you are after?:

    results:

    Years Months Days ...

  • RE: Encrypt connection to SQL Server 2005

    as i understand it, you should do this in two places;

    you can make your server require encryption from everything connecting,a dnt he native client will handle it automatically:

    SQL Server Configuration...

  • RE: NESTED Statement only compiles part of first CASE

    maybe something like this will help you model your calculation?

    SELECT

    SUM(

    CASE WHEN property = 'prop1' THEN 1 ELSE 0 END

    + CASE WHEN property =...

  • RE: how to write a query which must identify a particular word from one table and another table

    i think this is what you are after;

    the "description" field must be like the NAME, and the NAME must be like your search parameter:

    so the "description" must be like '%WASH...

  • RE: NESTED Statement only compiles part of first CASE

    Tammy from what you describe, the CASE statement is working as it is supposed to, but not the way you want it to.

    a case statement executes the first TRUE condition...

  • RE: Help with Loop

    ha; Ramesh and i came up with identical solutions;

  • RE: Help with Loop

    jordan i think this example might help;

    i'm using the power of set based operations and the row_nubmer() function to generate the needed values;

    check out the SELECT statem3ent...if you run it...

  • RE: sql script assistance

    here you go;

    this is using the FOR XML trick to concat your values together:

    create table #temp

    (

    offerid int

    , Catg varchar(100)

    )

    insert into #temp( offerid, Catg )

    select 1, 'health' union all

    select 1, 'fitness'...

  • RE: Add Linked Server

    they linked server syntax you used is a bit different from what I typically use; i'm posting it here for reference;

    also, just a confirmation, your server is not 64 bit...

  • RE: Speeding up a fast forward cursor proc

    tendayit thanks for posting everything we might need to analyze it; it's so large, it'd take a lot to look at it all;

    your functions 2200+lines ,and it's all doing...

  • RE: Single mdf file attach in sql 2005

    imtiazm (2/4/2010)


    This is the reply i get

    ...

    File activation failure. The physical file name "f:\XXX.ldf" may be incorrect.

    File activation failure. The physical file name "f:\XXX.ldf" may be incorrect.

    The log cannot be...

  • RE: Denying Access to Domain & BuiltIn Adminstrators

    the right thing to do is to go tell your other admins to not fiddle with your development server. Going behind their back and trying to lock them out is...

  • RE: Help With REPLACE Function

    Rup you might want to check for other iterations based on html differences; for examples spaces before/after the equals sign just to be sure;

    i'm glad this worked for you.

    --original:

    set @pre...

  • RE: Help With REPLACE Function

    Ruprecht I'm halfway there from a sinlge command solution, but i wanted to post an immedite fix right away; if this is a one-time solution, this would give you everything...

Viewing 15 posts - 10,006 through 10,020 (of 13,469 total)