Forum Replies Created

Viewing 15 posts - 6,451 through 6,465 (of 7,187 total)

  • RE: Inserting Data from Another Database

    Abhay

    Does this work?

    USE QISPD

    Insert Into QISPD2.dbo.VisitInfo (VisitId, patientId, admitDate, VisitType, spotriasUniqueId)

    Select visitId, patientId,...

  • RE: SQL 2K SP4 Upgrade

    Mark

    Are you doing this on a production sever?  Have you tested it first?

    There are certain things to look out for.  For instance, I think SP4 limits the pairs of data...

  • RE: Inserting Data from Another Database

    Abhay

    I don't really know.  I take it both databases are on the same server?

    Do you get the same error if you just do this? SELECT * FROM QISPD.dbo.visitInfo

    What...

  • RE: Inserting Data from Another Database

    Abhay

    So it sounds like visitInfo doesn't exist in QISPD, or if it does it's not owned by dbo, or maybe you don't have permissions on it.  Or perhaps you have...

  • RE: Inserting Data from Another Database

    Abhay

    Assuming both abc tables have an identical structure and are owned by dbo:

    INSERT INTO QPR.dbo.abc

    SELECT * FROM XYZ.dbo.abc

    John

  • RE: Export users from role

    Have you tried sp_helprolemember?

    John

  • RE: Distinct with no order

    The order of the rows in a table has no meaning in a relational database system.  Does your table have a primary key constraint?  If so, you can order by...

  • RE: Restore backup Problem

    "I don't know why management studio only shows fisical drives, and not mapped drives"

    I imagine it's because the drive is mapped in the context of your login and not in...

  • RE: change/move of Data file without dropping subcription

    Happycat is right - backing up and then restoring to a different location is the best way.  However, I don't think detaching and re-attaching will work, since I believe this...

  • RE: database collation

    Adrain

    Right-click on your server in Enterprise Manager and choose Properties.  The server collation appears on the General tab.

    John

  • RE: Eliminate Duplicate rows

    Certainly not the best way of doing it, Anders, but since you and I have both asked how he decides which duplicate rows to keep and haven't had a proper...

  • RE: Subqueries

    Anchelin

    I imagine the error is in this line:

    set @ServerName =(Select distinct ServerName,AppName from BEPSQL01.DBA_Reports.dbo

  • RE: Eliminate Duplicate rows

    San

    If the three columns in your sample data are all part of the primary key, then those rows aren't duplicates.  You're going to need to change the design of your...

  • RE: Eliminate Duplicate rows

    San

    Which four columns is your PK defined on?  There are only three in your sample data.

    John

  • RE: How do I change the "sign" of a number in a case statement ?

    True, depending on the requirement.  Sometimes you are only interested in the size of a number, which, in the case of a scalar, means its distance from zero.  For example,...

Viewing 15 posts - 6,451 through 6,465 (of 7,187 total)