Forum Replies Created

Viewing 15 posts - 9,586 through 9,600 (of 13,461 total)

  • RE: How to Reference HTML Meta Tag in a Stored Procedure or Insert Query

    Sid whenever I've done anything like this, I've always just added a hidden input to the form of the page that contains the article Id you'd be looking for;

    then...

  • RE: Insert Column Default Values

    but your @student table does not allow nulls for the lunch; that is the constraint failure;:

    ,LunchPeriod INT DEFAULT(4) ...

  • RE: Insert Column Default Values

    i think i had to change my data; you had one class with a null lunch:

    SELECT '10-B', NULL

    which i changed so it would work; i was kind of assuming...

  • RE: Data Type for fixed-length number?

    000, 052, 020, <--those are not numbers. 0 is zero, there are no preceeding digits for real number types like integers, so you are right, you'd want to consider a...

  • RE: Table to Table with SUM

    ahh...exactly my point... a view never needs to be updated. you might think of it as self-updating.

    technically, it is a saved query, that is run on demand.

    if you run it...

  • RE: Insert Column Default Values

    how about selecting from the @Class table?

    INSERT INTO @Student(FirstName, LastName, ClassID, LunchPeriod)

    SELECT 'John', 'Smith', @ClassID, isnull(@LunchPeriod,LunchPeriod) from @Class where ClassId = @ClassID

  • RE: Opening tables via SSMS right-click

    yes it does; at a minimum, i followed your steps and got a shared lock on the table; you can check it yourself by doing as you described, and then...

  • RE: Table to Table with SUM

    good; just create a superview then, that contains everything you need, and select from that;

    CREATE VIEW vw_SuperView AS

    SELECT

    [Fault],

    COUNT([Occurred]) AS [Occurances],

    sum(datediff(ss,0,[Duration])) AS [DTDuration]

    FROM Table1

    GROUP BY [Fault]

    UNION ALL

    SELECT

    [Fault],

    COUNT([Occurred]) AS [Occurances],

    sum(datediff(ss,0,[Duration]))...

  • RE: Table to Table with SUM

    can you change the "duration' column to be an integer with the number of minutes or seconds or something?

    or do it inline int he view?:

    CREATE VIEW vw_Table1 AS

    SELECT

    [Fault],

    COUNT([Occurred]) AS...

  • RE: xp_cmdshell says executing but nothing happens

    sunshine-587009 (4/28/2010)


    xp_cmdshell is enabled I run the following and it says executing but nothing actually happens it just continues to say executing when via cmd prompt it works and only...

  • RE: Table to Table with SUM

    Alan, don't put the summary results into a table. Always create a VIEW, which gets the data you want on demand instead...the view would be correct at all times, and...

  • RE: Grouping question

    nearly the same as ms65g's reply:

    SELECT

    col0,

    min(col1),

    sum(col2),

    max(col3)

    from #Example

    Group By col0

  • RE: connecting to Oracle on a 64 bit server 2008 windows

    the 64 bit drivers are not named odbcad32; I'm very sure they have a different name,and contain "64" in their name.

    that's the issue i think; trying to use 32...

  • RE: Slow Database Backup & Restore

    does your server have a lot of free space? if it does not, it might be taking a long time trying to find 3.8 gig of space to restore the...

  • RE: connecting to Oracle on a 64 bit server 2008 windows

    there is a seperate download for 64 bit Oracle drivers from Oracle; so it might be true the oracle 32 bit client tools are installed on the server, and they...

Viewing 15 posts - 9,586 through 9,600 (of 13,461 total)