Forum Replies Created

Viewing 15 posts - 91 through 105 (of 140 total)

  • RE: Why must tables have PKs?

    My 2bits. Every table I ever create has as its first column "UID" which is an idenity column and is set a primary key.

    In the very rare circumstance when I...

  • RE: transaction not rolling back

    What I don't know never ceases to amaze me.

    Thanks Hanslindgren, If I understand correctly this is what I have been looking for.  Most of my transactions are the type where...

  • RE: sql mail

    Looks like its essentialy the same as win03. don't you require authentication on your smtp server? Gotta fight spam ya know

    Adding (vbscript):

    objMessage.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate")...

  • RE: sql mail

    Well I went the route David Scotland went, since I already have an aspEmail componant installed on that server, I just use it.

    I was not excited about installing outlook on...

  • RE: sql mail

    From outlook it works fine. I resolved this by simply using sp_OACreateObject and an already installed smtp email componant. Sure is allot less hassle. Permission aside

  • RE: transaction not rolling back

    Thanks grasshopper that seems like the easiest way. Unless issueing the rollback/committ stops the proc then wouldn't I also need something like:

    insert statement ....

    If @@ERROR 0

    ...

  • RE: 2.4gh P4 vs. dual P3 with RAID

    Well I havn't run any performance audits, but for the most part it's save a form and deliver a list sort of activities. Not a whole lot of analysis going...

  • RE: transaction not rolling back

    ya as soon as I started to update the proc my brain turned back on

    Thanks again,

    dave

  • RE: transaction not rolling back

    OK after playing around with it a few times I think i have it. I actually need two variables.

    declare @DidItError int

    declare @AnyErrors bit

    insert statement ....

    set @DidItError = @@error

    if @DidItError ...

  • RE: Storing TimeZone information in SQLServer !!! URGENT PLEASE !!!

    Are the data collection points all in different time zones? and being sent to a seperate sql location in yet another time zone?

    If so then you'll need some identifer from...

  • RE: Storing TimeZone information in SQLServer !!! URGENT PLEASE !!!

    What format is the timezone in? Is it simply an offset from UTC?

    "tiwjt" Is this a typo or perhaps is a formt I'm unfamiliar with.

  • RE: insert trigger question

    yup the performance issues made it a no go on running the cursor in the trigger to call this proc..loop within a loop, was causing the remote bulk insert...

  • RE: insert trigger question

    Thankyou, Your first comment solved the main cofusion for me. Knowing that the trigger fires for the statement rather then for each row makes a difference.  Although it's not reccomended I have a felling...

  • RE: MAX problem

    Um without created those tables and trying it on mine. Wouldn't you:

    SELECT     dbo.detailtable.stockID, dbo.detailtable.purchasenumber, MAX(dbo.detailtable.quantity) AS Expr1

    FROM         dbo.detailtable INNER JOIN

                          dbo.mastertable ON dbo.detailtable.stockID = dbo.mastertable.stockID AND dbo.detailtable.purchasenumber = dbo.mastertable.PurchaseNum

    GROUP BY...

  • RE: CASE vs IF..ELSE

    Yup thanks, I was moving my code from T-sql into the script portion and realized my brain fart...thanks

    dave

Viewing 15 posts - 91 through 105 (of 140 total)