Forum Replies Created

Viewing 15 posts - 2,326 through 2,340 (of 7,429 total)

  • RE: new year new number Generating in SQL server

    I see one way this can be done is by using two fields and making a composite key if this is to be a driving data key.

     

    Create a table with...

  • RE: performance using SP w/dynamic sql?

    No writing Dynamic SQL opens many variables for exploitation. You have to give extra rights to the underlying data tables which is a security risk. However all said you sometimes...

  • RE: new year new number Generating in SQL server

    Not sure what you mean. Do you mean you want to have like a generated number but start at say 20030000 to provied numbers 20030000 - 20039999 or some other...

  • RE: Maximum or recommended number of joins in statement

    I have heard various numbers tossed around in the passed. It boils down to performance, for best performance denormalize so you can do fewer joins. However with newer and faster...

  • RE: inserting last record....

    A couple of things

    1 you use reference to table 2 in and outside you trigger statement and I am kind of confused.

    If you are trying to insert the data based...

  • RE: inserting last record....

    Thinking about it, if you do the following type of code

    DECLARE @val INT

    SET @val = (SELECT valid FROM tblx)

    If multiple rows return you will get an error.

    If you however do

    DECLARE...

  • RE: inserting last record....

    I agree with SQLBill, if you get bad data in the outputs from the select and try to insert you might be getting an error causing a rollback on the...

  • RE: DTS & OWNER PASSWORD

    I know of no tool at this point that can hack the DTS encryption or these. However right click the package and try one of the previous versions (DTS has...

  • RE: How to load data into table from store procedure?

    You could use a linked server (even to the server on) and using openquery to call the sp do the select into:

     

    Ex:

     

    Select * into #x from openquery (linksrv,'sp_name')

     

    but you are...

  • RE: inserting last record....

    What does your trigger do?

  • RE: What is a SQL Server Instance (in simple terms)?

    The only problem is they do not always get attached to EM when installed. Not a guranteed place to see.

  • RE: What is a SQL Server Instance (in simple terms)?

    An installation of the SQL executables which can be run independently in memory. You have at minimum 1 instance but can install more that can be run independently in memory....

  • RE: A Grain of Salt

    Personnally, I love this one. I have seen and been a part of manipulating the data to provide the best potential statistics possible. Most companies usually drop the lowest and...

  • RE: Error when using trigger

    COuld you please post the code for the SP so we have a bit of an idea what you are doing.

  • RE: Reindex New Table

    First I would consider dropping the NC index. The reason is this.

    The NC index does not contain pointers to pages it only contains the associated value in the Clustered index...

Viewing 15 posts - 2,326 through 2,340 (of 7,429 total)