Forum Replies Created

Viewing 15 posts - 631 through 645 (of 701 total)

  • RE: SQL Server License for a Test Server

    Developer Edition is a license for a single user.  If multiple users will be testing against the test server, they each will need a Dev Edition license.

    There is no distinction...

  • RE: Determining the column name using this sp_MSforeachtable

    This query should get you started:

    SELECT c.TABLE_SCHEMA, c.TABLE_NAME, c.COLUMN_NAME
      FROM INFORMATION_SCHEMA.COLUMNS c INNER JOIN
           INFORMATION_SCHEMA.TABLES t ON t.TABLE_SCHEMA = c.TABLE_SCHEMA AND t.TABLE_NAME = c.TABLE_NAME 
     WHERE t.TABLE_TYPE...
  • RE: CHAR(13) Prints an Invisible Character

    0x0a (hexadecimal) = decimal 10

    char(10) = line feed

    select 'A' + convert(char(1),0x0a) + 'B'

    is the same as

    select 'A' + char(10) + 
  • RE: Replacing Cursor with UDF slower...

    When using the udf like this:

    UPDATE #final SET

         intl_codes1 = dbo.GetInternationalCodes( award_id)

     you're still performing row-by-row actions, and hopping off to a separate function each time to...

  • RE: Output to a Web Page

    You can also take a look into using XML templates to present query results through the SQLXML IIS plugin.  Query + FOR XML + XSLT = web page

    Marshall's suggestion of...

  • RE: Helpdesk to ''''Kill'''' users

    I would advise writing a stored procedure to do the work, and grant access to the procedure.

    You could include checks in the procedure so it only works in a certain...

  • RE: Stored Procedures - what have they done??

    1. When a procedure is named sp_<name>  (or dbo.sp_<name> ), SQL Server will search for it in the Master database before searching in the current database.  If you have a server...

  • RE: query i cant get my head round...

    If I'm reading this right...

    You don't need the DISTINCT statement, the GROUP handles that.

    To filter on aggregates after the grouping, use the HAVING clause:

    SELECT hist.ConsultancyID
      FROM  ben_vw_consultancy_history hist...
  • RE: Value?

    Go for DBA if you want to be a DBA.  The talent pool and market needs change often enough that by the time you're really good at it, the money...

  • RE: calculating problem

    To total the sum of all columns together:

    SELECT IntrestMark, SUM(col1 + col2 + col3 + col4 + col5 + col6) AS [Total]
      FROM mytable
     GROUP BY IntrestMark

    (See...

  • RE: Moving tables to different filegroups?

    First, your current arrangement is actually part of a recommended practice:  put only system tables on the [PRIMARY] group, then create one or more additional filegroups for data tables and...

  • RE: SP_SPACEUSED results (2 recordsets) to temp table...need help

    Take a look at the sp_spaceused_report procedure posted in message

    http://www.sqlservercentral.com/forums/shwmessage.aspx?forumid=8&messageid=265290#bm265442

    You can change the final SELECT statement to sum up the #Res table for your result.

    You can also remove all...

  • RE: Programatically printing using Report Services

    Reports are delivered either

    A: Upon user request, to a browser

    B: On a schedule to an email address or network location (or other if you've rolled your own extension), or

    C:...

  • RE: UNION ALL between two recursive WITH

    1. The message about the semicolon is part of the answer:

    <...>

    SET @user-id = 'EC3C39B4-0E80-4EE9-A235-364A17B3A92C';

    WITH

  • RE: SQL Mail

    Outlook 2003 does not install MAPI.  You will need to install an older version of Outlook.

    I keep a CD with Outlook97 on it just to install MAPI on SQL Servers.

    #!&^&**$!!!...

Viewing 15 posts - 631 through 645 (of 701 total)