Forum Replies Created

Viewing 15 posts - 271 through 285 (of 1,132 total)

  • RE: Computed column formula with join

    A computed column cannot be used as defining expression may only reference base columns within the same table.

    You will need to add a physical column and then use a trigger...

  • RE: Getting IS_Member to work as expected

    The system function works as defined, which is for the current database user

    When connection with a domain account with sysadmin role:

    select is_member('UserRole'), user_name(), suser_sname()

    execute as user = 'Carl.Federl'

    select is_member('UserRole'), user_name(),...

  • RE: Running Jobs from Command Prompt

    Use the SQLCMD program:

    sqlcmd.exe

    [{ { -U login_id [ -P password ] } | –E }]

    [-S server_name [ \ instance_name ] ]

    -Q"execute msdb.dbo.sp_startjob @job_name = 'PREPROD_ORA_POPULATE'"

    and any other parameters that...

  • RE: Debugger For SQL

    Jeff & GSquared:

    Did either of you get a chance to perform any additional analysis ?

  • RE: Differential Backup Failures

    For your reference: "The Ntbackup.exe operation may break the differential backup chain of a SQL Server database and may invalidate the differential backups when you perform a snapshot backup of...

  • RE: more than one query in CASE-WHEN-THEN statement

    I intend to do something like this:

    SELECT @FValue =

    CASE @FieldName

    ...

  • RE: Using SQL Server to talk to Progress

    SSMS is short for SQL Server Management Studio and only works with SQL Server.

    Are you sure that the product name is Progress?

    Progress is a company, and their DBMS is ObjectStore.

    Postgres...

  • RE: Something wrong with this join...

    As written, the WHERE restrictions are causing any left outer joined rows to be removed from the result. Try this:

    FROM T_OrderLine

    LEFT OUTER JOIN

    ...

  • RE: Excel Result Vs DB Result

    Joe's code looks complex, so i need some time to analyze it.Probably i will analyze it on my home PC (this weekend). Thanks for highlighting his method here.[/code]

    I misread you...

  • RE: Excel Result Vs DB Result

    Joe Celko wrote a solution back in November of 1996 titled "aggregate product function" and can be found in "SQL For Smarties"

    Here are Joe Celko's remarks:

    Here is a version of...

  • RE: Run as Proxy in SQL Agent Jobs

    In SSMS, on the job step propertiesm there are two pages in the upper left: "General" and "Advanced", both of which have a "Run As" option:

    On the "General" page, the...

  • RE: Char to Date conversions - interation question

    The easy part is to take the DateAdd of RegistrationDate minus the years in Age to come up with the BirthYear.

    Birth year may not be that easy.

    If...

  • RE: convert dates

    What is the datatype of the column ?

    If datetime, then the display format is what needs to be changed, so read BOL about "SET DATEFORMAT"

  • RE: The Million Message System

    The Reuters Market Data System appears to be using StreamBase although it is not clear if other DBMSs are supported.

    Congratulations to Dr. Stonebraker, who has developed four DBMS with...

  • RE: Deleted Fixed Database Roles

    The privilges of the built-in database role are hard-coded into SQL Server based on the value of the sysusers.uid column, and sp_addrole does not add with the needed values.

    The solution...

Viewing 15 posts - 271 through 285 (of 1,132 total)