Forum Replies Created

Viewing 15 posts - 11,116 through 11,130 (of 13,469 total)

  • RE: Query help

    Greg Snidow (5/11/2009)


    I can't see why Lowell's solution does not work, unless everyone, regardless of whether or not they have a photo present, exists in the table selling_photo.

    I'm with Greg,...

  • RE: Computed columns

    this seemed to work for me, but i only had one table with no index:

    select distinct object_name(syscolumns.id),

    syscolumns.name As CalculatedColumn ,

    syscomments.text as TheCalculation,

    isnull(object_name(SYSINDEXKEYS.id),'No Index Using This CalculatedColumn') As IndexName

    from...

  • RE: Computed columns

    syscolumns has a iscomputed column...the calculation is stored in syscomments if you want to join to get that:

    now to get the indexes, that i'm not sure yet....

    select object_name(syscolumns.id),

    syscolumns.name As CalculatedColumn...

  • RE: Restore a SQL Server 2000 .bak to SQL Server 2005 using SQL Server Management Studio Express

    get the script "sp_generate_inserts" from Narayana Vyas Kondreddi at http://vyaskn.tripod.com

    he's got a 200 and 2005 versions, and they generate INSERT INTO [YOURTABLE]....statements for you by simply passing it the tablename.

    be...

  • RE: Audit script

    using COLUMNS_UPDATED, you can't, i guess you'd have to write your trigger to do each column individually, if that's what you wanted to do:

    IF (UPDATE(DESCRIP) )

    BEGIN

    [same code example]

    END

    IF (UPDATE(COLUMN2) )

    BEGIN

    [same...

  • RE: Query help

    the inner join would only show members with records int he detail table...you want a left outer join instead:

    SELECT DISTINCT email

    FROM Member usr

    LEFT OUTER JOIN Selling_Photo pho

    ...

  • RE: Restore a SQL Server 2000 .bak to SQL Server 2005 using SQL Server Management Studio Express

    lleemon13 (5/11/2009)


    In Restore Files and Filegroups, I can select the 'To database:' but in the Source for restore I selected 'From device' but can't paste the location into the box....

  • RE: Restore a SQL Server 2000 .bak to SQL Server 2005 using SQL Server Management Studio Express

    yes you can.

    Paul is right..if you take your backup .bak file, you can restore it on any SQL 2005 instance, but behind the scenes it will be upgraded to the...

  • RE: Sql server Installation Cd

    enterprise? no, that would be illegal. standard and enterprise are all purchases, and often involve thousands of dollars in licensing.

    developer edition costs 50 dollars on amazon.com, and allows you to...

  • RE: Oracle Linked Server

    ive always used the oracle driver from the client install, but the previous poster is right...you might need to install the driver first:

    SET @provider = N'ORAOLEDB.Oracle' --optionally 'MSDAORA' to use...

  • RE: SSIS - How to Set Output column width to varchar(max)

    behind the scenes, the length is set to -1 for the column in syscolumns. can you set the width to -1 instead of 8000?

  • RE: Text editor to copy n lines after occurence of search pattern

    raw text or RTF? editplus can do that easily to raw text,you just set a macro to search for a term to find the start, then make it select while...

  • RE: Audit script

    within a trigger, there is a couple of functions you can use you can use to determine if a column has changed:

    IF (UPDATE(columnname) ) returns true or false, if you...

  • RE: Inserting into variable no. of columns

    are the columns in the spreadsheet in the same order as the columns in the dataset?

    what i mean is, if the spreadsheet has 10 columns today, and 14 columns tomorrow,

    do...

  • RE: Database mail not sending Reply email to multiple recepients

    not on the screens you were setting up; that set up the profile, where it is only one account.

    if you want replys to any email to go to multiple persons,...

Viewing 15 posts - 11,116 through 11,130 (of 13,469 total)