Forum Replies Created

Viewing 15 posts - 106 through 120 (of 254 total)

  • RE: Check If user exists in SQL 2005

    EXEC sp_addrolemember N'db_owner', N'login_name'

  • RE: CLR with SQL Server 2005 - Compatablity = SQL 2000

    Yes, you are out of luck. CLR is a new feature in 2005, it was not in 2000.

    But why can't you change compatibility level ? Security issues? You want to...

  • RE: Views and Performance

    Let me give you some advise: never trust overseas developers, they usually have no idea what they are doing. This is usually Oracle habit to build everything on cursors, so...

  • RE: Check If user exists in SQL 2005

    User or login ?

    In case of former you can query sys.sysusers in your database and map it to existing login with sp_grantdbaccess, in case of latter you can query master.sys.syslogins;...

  • RE: Very confusing problem..Please help me friends!!

    For the most recent service which the patient is currently enrolled in the EndDate would be null ?

    In this case:

    select

    service,

    patientno,

    count(*)

    where enddate is null

    group by

    service,

    patientNo

     

  • RE: Update Involving Subquery & Composite Key

    Use join instead of subquery. I wrote this query but did not test it because I don't have your tables and data. Try to run the following query and let...

  • RE: Hourly Rate?

    It depends on number of factors: where you are, years of experience, type of project, type of company, etc.

    In New York for example 5-10 years experienced SQL Server DBA usually...

  • RE: search all procedures for certain words??

    Thanks Andras, that's good. I used syscomments for years and did not know that in 2005 they added something new for it.

    sql_modules is certainly better, you don't have to concatenate...

  • RE: How can we delete duplicate records... conditions apply.

    with t as

    (

    select

    rn= row_number() over (order by col1,col2),

    col1,

    col2

    from tst1

    )

    delete t

    where rn not in

    (

    select min(rn)

    from t

    group by col1, col2

    )

  • RE: search all procedures for certain words??

    You can also use this, I think it's simplier:

    select

    distinct object_name(id)

    from sys.syscomments

    where text

  • RE: Urgent

    Hi Andras,

    I also ran this command out of curiousity and in order to preserve it for future emergencies. However it displays log record in binary format. Do you have a...

  • RE: Undocumented stored procedures

    Generally speaking, it is not recommended to use undocumented procedures in your production environment. They are not supported by Microsoft and can be dropped or changed at any version.

    So...

  • RE: Backup SQL Server 2000 Restore to SQL Server 2005

    If your database is large and you want to minimize downtime you can also consider this method: bring database off-line, physically dismount hard disks with its data-files (or in case...

  • RE: permission

    No, 2005. This is SQL Server 2005 forum.

  • RE: Page file size

    Please clarify what do you mean page file ? Page size is fixed 8k size, data file size depends on your volume of data. And again, it's not clear you...

Viewing 15 posts - 106 through 120 (of 254 total)