Forum Replies Created

Viewing 15 posts - 61 through 75 (of 272 total)

  • RE: Error converting varchar to float help...

    DDL = Data Definition Language.

    i.e. your create table scripts.

    Converting oxygen into carbon dioxide, since 1955.
  • RE: Resource Pools

    Let me be the first to say I DON'T want my point pack!! 😀

    Great question though. Anything that makes me think is a good question, regardless of the...

    Converting oxygen into carbon dioxide, since 1955.
  • RE: Script

    I assumed the OP was referring to data changes.

    Of course change management should be used for any DDL/code deployment.

    Converting oxygen into carbon dioxide, since 1955.
  • RE: Script

    No.

    If you need to be able to know who changed data in a table, you either need to have a trace running or set up auditing.

    Converting oxygen into carbon dioxide, since 1955.
  • RE: Wide table performance issue

    I'm guessing your table was imported from excel or access at some point.

    Yes, if you plan to store 126M rows in a table, you need to do some serious optimization.

    Converting oxygen into carbon dioxide, since 1955.
  • RE: Wide table performance issue

    We need a create table DDL (you don't have data types). 😉

    Converting oxygen into carbon dioxide, since 1955.
  • RE: Is there a "tables collection" in T-SQL?

    You may also need to filter with a WHERE clause on the table name (WHERE name like '%XYZ%') or whatever filter you might need.

    Converting oxygen into carbon dioxide, since 1955.
  • RE: Wide table performance issue

    EXEC sp_updatestats will work for all tables in the database

    UPDATE STATISTICS tablename will run for just the one table.

    Converting oxygen into carbon dioxide, since 1955.
  • RE: Is there a "tables collection" in T-SQL?

    SELECT CASE WHEN ROW_NUMBER() OVER (ORDER BY object_id) > 1 THEN 'UNION ALL ' ELSE '' END +

    'SELECT * FROM ' + NAME + ' WHERE PROTOCOLNAME = ''ISUP'''...

    Converting oxygen into carbon dioxide, since 1955.
  • RE: Wide table performance issue

    Another suggestion would be to recompute statistics on that table on a regular basis, especially if you're adding 100,000 rows daily.

    Converting oxygen into carbon dioxide, since 1955.
  • RE: Wide table performance issue

    A NONCLUSTERED INDEX on SQL_POST_DATE might help if you don't have one.

    Converting oxygen into carbon dioxide, since 1955.
  • RE: How to log all queries against a database?

    Just set the Events Selection page to filter on the DatabaseName you want to capture.

    Converting oxygen into carbon dioxide, since 1955.
  • RE: How to generate script for database mail?

    EXEC msdb.dbo.sp_send_dbmail

    Check BOL for the arguments you need.

    Converting oxygen into carbon dioxide, since 1955.
  • RE: One Way Transactional Replication Scheduling

    We keep several servers sync'd hourly using this method. You can set up whatever shedule you like and you can change those schedules on the job if you like...

    Converting oxygen into carbon dioxide, since 1955.
  • RE: Count Number of Rows per Employee

    SELECT Empid, Name, EmergContact,

    ROW_NUMBER() OVER (PARTITION BY Empid order BY Name) [Number]

    FROM table

    Converting oxygen into carbon dioxide, since 1955.

Viewing 15 posts - 61 through 75 (of 272 total)