Forum Replies Created

Viewing 15 posts - 46 through 60 (of 1,185 total)

  • RE: Sorting across columns

    You can accomplish that by adding a COMPUTED column and then sorting on that i.e. COL4 with a DEFAULT VALUE of Col1 + Col2 + Col3 and then ORDER BY...

  • RE: how to copy a data from one table to another table

    ASSUMPTION:  ID = IDENTITY.

    Just run INSERT INTO Table2 ([Name], Address) SELECT ([Name], Address) FROM Table1

    Parent_ID will need to be manually recreated (I am thinking)....

  • RE: Back to sql 2000

    Sounds like the problem is that once you created/restored to SQL 2K5 it changed the database version to 9.0 (SQL 2K5).  You will need to restore to SQL 2K5 change...

  • RE: How can I install SS2K with domain account?

    IF you are attempting to do something like the following it wont work:

    1.  Setup a PC that is NOT on the network

    2.  Attempt to install SQL using DOMAIN\USERID (doesn't exist...

  • RE: Looping through part of a DTS Package?

    Why not have a MAIN stored-procedure that calls the SP's that BCP thge data out to the 563 various Excel files as 1 step and then the next step could...

  • RE: How can I install SS2K with domain account?

    What problems are you having?

  • RE: Querying SQL and finding Access Rights

    Unless you have this information stored inside SQL (out of the box it isn't there) you won't be able to find it.  HOWEVER, I am sure that someone can help...

  • RE: Looping through part of a DTS Package?

    Why not produce All the reports needed first and THEN mail out the reports to the proper recipients?  No looping required ....

  • RE: Automatically Create Joints

    I know that there are more elegant ways of doing this but how about creating a loop for the tblState table that will look for stateName in States and then...

  • RE: what''''s wrong with simple statement?

    How many columns are in your @ReverseFields?  I think you would need to set each individually = to COUNT (if there is more than 1 column)....

  • RE: Trying to group columns into one row

    Look at the DDL of the tables.  One of the columns you are attempting to join on has a different COLLATION then the others.  This is causing the problem.  2...

  • RE: Trying to group columns into one row

    I would look at the table definitions of Ops_Narr and ensure that BOTH columns are either CHAR with the SAME COLLATION or INTEGER (SANS Collation).

    Looks like you are either having...

  • RE: Search date between mm1/yyyy1 and mm2/yyyy2

    You will have to put the columns back together in a dateformat to search like that along with the MM/YYYY you are looking for i.e.

    WHERE MM/01/YYYY BETWEEN MM1 + '/01/'...

  • RE: Latest Security Patches From Microsoft

    We test, test, test and do more testing prior to installing patches.  We have several machines in our lab set-up specifically for this purpose.

     

  • RE: Cast-Convert question

    How bout something like

    DECLARE @val DECIMAL(8, 0)

    DECLARE @Table TABLE

    (FirstHalf  DECIMAL(4, 0),

     SecondHalf DECIMAL(4, 0))

    SET NOCOUNT ON

    SET     @val = 10005555

    INSERT INTO @Table (FirstHalf, SecondHalf)

    SELECT LEFT(@Val, 4) FirstHalf, RIGHT(@Val,...

Viewing 15 posts - 46 through 60 (of 1,185 total)