Forum Replies Created

Viewing 15 posts - 16 through 30 (of 48 total)

  • RE: dangers of copying to excel from ssms

    In my experience Excel tries to be 'clever' with formatting and presentation.

    If it 'recognises' something then it will pre-format.

    Usually it gets it right, but sometimes it can mess up your...

    ---------------------------------------------
    If data can screw you, it will; never assume the data are correct.

  • RE: General - Point in the right Direction Pls!!!!

    The two systems are similar but as you have found not equal 🙂

    If you have managed to get a full output of the DDL for the database and code then...

    ---------------------------------------------
    If data can screw you, it will; never assume the data are correct.

  • RE: delete records by day

    Yes one could delete a big lump at a time, both methods are valid.

    Sometimes, simply due to size of data (original post mentions 300m rows) it is more sympathetic to...

    ---------------------------------------------
    If data can screw you, it will; never assume the data are correct.

  • RE: Indexed View Issue - Error converting data type nvarchar to numeric

    Looking at ISNUMERIC()

    SELECT ISNUMERIC('1.')

    Returns True (or 1)

    However

    SELECT CAST('1.' AS INT)

    Won't cast to an integer

    ---------------------------------------------
    If data can screw you, it will; never assume the data are correct.

  • RE: Indexed View Issue - Error converting data type nvarchar to numeric

    Try

    SELECT /*TOP 99 PERCENT*/ cast(cast(DataValue as decimal) as int) as 'CallNo',EventFk

    FROM dbo.[EventData] a

    INNER JOIN dbo.DataItem b ON a.EventDataId =b.EventDataFk

    WHERE b.[EventDataFK] = a.EventDataID

    AND DataKey = N'AuditCallRef'

    AND DataValue LIKE '%[^0-9]%'

    Will show if...

    ---------------------------------------------
    If data can screw you, it will; never assume the data are correct.

  • RE: Create Login?!

    Early thoughts.

    Is the command running as the account you think it is?

    If you genuinely have sysadmin then CREATE LOGIN shouldn't give permission erros.

    ---------------------------------------------
    If data can screw you, it will; never assume the data are correct.

  • RE: X in query

    It is expected when the FROM clause is fed by a query in brackets that an alias is given.

    Even though the X is not explicitly referenced by the rest of...

    ---------------------------------------------
    If data can screw you, it will; never assume the data are correct.

  • RE: SQL Server2008 producing same result set but with changed in order seq after upgrading from sqlserver2008

    What is the query you are running?

    Without an explicit ORDER BY clause, it is by design that queries are not guaranteed to return data in a set order.

    Even (i think)...

    ---------------------------------------------
    If data can screw you, it will; never assume the data are correct.

  • RE: Identifying hidden characters (pipes)

    A pipe within a column would give simply a column with a pipe in it 🙂

    It probably wont be what you want but the db can handle it.

    So assuming thats...

    ---------------------------------------------
    If data can screw you, it will; never assume the data are correct.

  • RE: Visual Studio on a Production Server

    Typically wouldnt install on a production box.

    VS is a development environment and its results such as ssis packages can be deployed to wherever they need to be from the ide.

    However...

    ---------------------------------------------
    If data can screw you, it will; never assume the data are correct.

  • RE: How to monitor disk perfrmance o mounted disks volume

    Best place to start would be the WMI, counters provided within windows.

    Have a root around.

    There are loads of Physical Disk performance counters that can be used although they'll report the...

    ---------------------------------------------
    If data can screw you, it will; never assume the data are correct.

  • RE: any trigger to monitor certain PCs\IPs DML?

    SQL Server Profiler will monitor queries sent to the server.

    It can certainly do user name filters, so maybe it will meet your needs.

    ---------------------------------------------
    If data can screw you, it will; never assume the data are correct.

  • RE: Data Modeling with Visio -- is it worth it?

    Seconded for TOAD.

    At about £400 notes it's possibly easier to sell to the boss than ERWin.

    Couldn't give a genuine comparison of TOAD vs ERWin, however I assume ERWin does something...

    ---------------------------------------------
    If data can screw you, it will; never assume the data are correct.

  • RE: Poor database design

    Also, there may be a little bit of back-end tweaking that can be done, whilst using views to present the same logical output to the application. Not knowing the structure...

    ---------------------------------------------
    If data can screw you, it will; never assume the data are correct.

  • RE: Poor database design

    Sometimes when we do a large load of data the system grinds to a halt until we rebuild the database

    Just a thought, do you drop the indexes prior to a...

    ---------------------------------------------
    If data can screw you, it will; never assume the data are correct.

Viewing 15 posts - 16 through 30 (of 48 total)