Forum Replies Created

Viewing 15 posts - 6,541 through 6,555 (of 7,185 total)

  • RE: sql 05 spread one mdf to multiple ndf

    Brian doesn't want to control which objects go to which file.  He only wants to ensure that data is split evenly across the files.  Having multiple files within the same...

  • RE: Help needed for moving from standalone to cluster

    Michelle

    That's just too tricky.  If you don't have somewhere you can test this before you do it for real, then a large part of it is going to be keeping...

  • RE: Help needed for moving from standalone to cluster

    Michelle

    I wouldn't risk trying to restore the system databases.  That's why I suggested scripting out logins, jobs and so on, so that you can do a clean install and then...

  • RE: How can I turn this into a SP or Function?

    Adam

    This will work in SQL Server 2005 as well:

    CREATE PROCEDURE MyProc @colname sysname

    AS

    SELECT 'select [' + column_name + '] from [' + table_schema + '].[' + table_name + ']'

    FROM information_schema.columns

    WHERE column_name = @colname

    GO

    Call it like this:

  • RE: SQL Query

    Charlie

    I'm not sure how you got any results at all from that query, but never mind - try this:

    --Table

    CREATE TABLE MyTable (sampleno INT,  workcode decimal(5, 2), result INT)

    --Data

    INSERT INTO MyTable VALUES (211,  33,  50)

    INSERT INTO MyTable VALUES (211,   33.01,  51)

    INSERT INTO MyTable VALUES (211,  33.02,  54)

    INSERT INTO MyTable VALUES (211,  33.03,  32)

    INSERT INTO MyTable VALUES (212,  33,  23)

    INSERT INTO MyTable VALUES (212,  33.01,  34)

    INSERT INTO MyTable VALUES (212,  33.02,  24)...

  • RE: sql 05 spread one mdf to multiple ndf

    Brian

    I suppose one way to do it would be to create twelve new files in a new filegroup.  Then you can drop the clustered index of each table and recreate...

  • RE: unique column in 2 tables - interesting problem

    Adam

    It sounds like poor database design to me - are we allowed to know why they want to do this?

    Anyway, to answer your question.  How about creating a table with...

  • RE: Login Fixed Server & Database Roles

    BK

    Use the sp_helplogins stored procedure to get a list of how logins map to users and roles in databases.  The query below will return a list of logins and what...

  • RE: Help with looping syntax

    Kenneth

    Some DDL would have been helpful.  Still, here's a guess.  Despite the title of the thread, you don't need a loop - you can do it with a set-based query.

  • RE: why SQL Server 2000 service eating so much memory?

    Alex

    That behaviour is typical of SQL Server.  It grabs all the memory it can and only gives it back if another process requires it.  If you find that there's contention...

  • RE: tables not showing up in sysobjects

    Could it be that you have a case-sensitive collation, so that when you do SELECT * FROM sysobjects WHERE name = 'MYTABLE' and xtype = 'U', it doesn't return anything...

  • RE: Need a script to print out Jobs in DB

    SELECT

    [name]

          ,[enabled]

          ,[description]

    FROM [msdb].[dbo].[sysjobs]

  • RE: Update with Select...

    This should do it for you.

    UPDATE PRODDTA.F0911

    SET [GLREG#] = 0

    WHERE GLLT = 'AA' AND GLPN = 12

    AND GLCTRY = 20 AND GLFY = 5

    The reason your update...

  • RE: Data load

    Imke

    This query returns the data and log size for all databases on the server, right?  But it only provides a snapshot of the sizes at the time the query is...

Viewing 15 posts - 6,541 through 6,555 (of 7,185 total)