Forum Replies Created

Viewing 15 posts - 571 through 585 (of 595 total)

  • RE: nt_username in sysprocesses table is blank in one server and not in the other.

    Use the loginame column instead. The nt_username column is only populated when the user id is a Windows user. For SQL Server login id's, the column will be blank.

    select CONVERT(varchar(25),d.name)...

  • RE: Inserting lots of data into a temp table, does not keep sort order

    Rhonda,

    Review what Frank and Jonathan said initially. The fact is, there is no way to guarantee the results that you want without using an ORDER BY on the final SELECT.  For...

  • RE: Transferring Data from Foxpro DBFs into SQL 2000 Databases

    Teague brings up a good point. FoPro 2.6 dates range from 1/1/100 to 12/31/9999, which far exceeds the range of valid dates for SQL Server.

     

  • RE: Transferring Data from Foxpro DBFs into SQL 2000 Databases

    Flextech is correct. In my experience, date fields were the biggest problem. We had a FoxPro 2.6a application until 2001 (when it was converted to SQL Server and Powerbuilder).

    The two...

  • RE: Triggers to create String ID

    This version starts with A0001, then procedes to A9999, B0001, B0002,...,B9999, C0001, etc.  The loop at the end is just for testing purposes. It will insert 10005 rows to show...

  • RE: Triggers to create String ID

    The loop was just to show that the code worked correctly. I would not use a trigger if the ID is the primary key for the table. A primary key...

  • RE: Triggers to create String ID

    Is the id limited to A0001, A0002, ..., A9999? Or does A9999 get incremented to B0000 or B0001? If the A is fixed, you can obtain the next value using:

    (SELECT...

  • RE: One-Many Relationship Help

    You will need another column (I called it 'rid' ) in the residents table that will be incremented from 1 by one for each household. Each time a new household...

  • RE: User does not exist????????

    The domain admin probably just renamed her account, so the SID is unchanged.  That SID is stored in master..sysxlogins, which also remains unchanged. That's why the "new" user id has...

  • RE: SuperSocket error

    Normally, "SuperSocket info:SpnRegister Error" errors occur when SQL Server is started. "SpnRegister Error" means that SQL Server was unable to register a Service Principal Name (SPN) with Active Directory. This...

  • RE: Strange Login Failure

    Have you changed a server or workstation name recently?

    Frequently, DNS or Active Directory problems cause the error you are receiving.

    From a command prompt, type: ping -a <yourServerName> and verify...

  • RE: Password validation failed

    In Windows 2000, go to Control Panel, then Administrative Tools, then Local Security Policy.

    Then click on Account Policies, then Password Policies.

    You'll see the item "Passwords must meet complexity requirements".

    Doubleclick it and...

  • RE: Is there any way to use LIKE in JOINS?

    If you only want one row per description in the result set, regardless of the number of keywords found, something like the following might work:

    SELECT mt.description

      FROM MainTable mt

     WHERE EXISTS...

  • RE: Conditional Create Table Problem

    Unfortunately, ALTER TABLE runs into the same problem you experienced trying to declare the same table with two different schemas. Since the "ALTER TABLE DROP COLUMN" statement would follow the "CREATE...

  • RE: Field with NULL value not included in result

    You need to use the following generic format if, as in this example, col3 allows null values:

    SELECT col1, col2, col3

    FROM myTable

    WHERE col3 <> 'X' AND col3 IS NOT NULL

    Mike

     

Viewing 15 posts - 571 through 585 (of 595 total)