Forum Replies Created

Viewing 15 posts - 6,226 through 6,240 (of 14,953 total)

  • RE: Using Sum and Cast Together

    I guess I don't understand what you're asking.

    What type of data does your "ontime" column contain? What does the sum of it look like?

  • RE: Is xp_cmdshell the only option?

    sturner (11/4/2010)


    You might want to consider database mail as a way of sending faxes. You have a lot of flexibility, even passing a query to the senddbmail method. It...

  • RE: arithmetic operations over strings

    Something like this:

    CREATE TABLE #T (

    ID INT IDENTITY PRIMARY KEY,

    RawVal VARCHAR(10),

    CalcVal FLOAT);

    DECLARE @String VARCHAR(10), @Cmd VARCHAR(1000);

    SELECT @String = '10*5';

    SELECT @Cmd = 'insert into #T select ''' + @String + ''',...

  • RE: Is xp_cmdshell the only option?

    A CLR proc called by an outer proc has access to temp tables created in the calling proc, just like any other subproc does.

    Or run the query in the CLR...

  • RE: password policy

    I guess it depends on what you want to do. Are you just looking for making the password expire after a certain amount of time, or for password complexity,...

  • RE: How to store 1/3rd in the database

    Don't do anything that involves splitting the unit up. You're going to end up with headaches later from rounding issues. And any sort of inventory control/tracking becomes problematic....

  • RE: Any way to get OPENQUERY to connect back to a SQL Server table

    From what I understand (could easily be wrong), OpenQuery can't do anything a linked server connection can't do. It's just a little more ad hoc than those are. ...

  • RE: password policy

    Enabling password policy in SQL Server, unless I'm badly mistaken, makes SQL Server use the policies from Active Directory (Windows security).

  • RE: Total of records per set of seconds

    DECLARE

    @SDateTime DATETIME,

    @EDateTime DATETIME ;

    SELECT

    @SDateTime = '11/4/10',

    @EDateTime = GETDATE() ;

    ;

    WITH Numbers(Number)

    ...

  • RE: Help with Query

    Use Jason's (Cirque's) solution. That filters it the right way for that kind of thing.

  • RE: Select * from a table with one billion rows failing

    Leo.Miller (11/4/2010)


    Lowell (11/4/2010)


    maybe he was doing a select * from BillionRowTable so he could see the column names, and the error threw him off.

    He may not be familiar with sp_help...

  • RE: arithmetic operations over strings

    Looks like it could be solved by explicitly selecting the string as part of a dynamic SQL statment.

    Something like:

    DECLARE @String VARCHAR(10), @Cmd VARCHAR(1000);

    SELECT @String = '10*5';

    SELECT @Cmd = 'select '...

  • RE: Error in using SQLXMLBulkLoad

    Try sending it as a string, then converting it once shredded.

  • RE: Are the posted questions getting worse?

    GilaMonster (11/4/2010)


    Lynn Pettis (11/4/2010)


    Gail, Sounds like all future informal conversations will need to include a member of management.

    The 'informal conversation' today (3rd time same issue) had the Project manager present,...

  • RE: Using Sum and Cast Together

    There is a Round() function. You should be able to wrap that around the Sum() function in your first query. Have you tried that?

Viewing 15 posts - 6,226 through 6,240 (of 14,953 total)