Forum Replies Created

Viewing 15 posts - 76 through 90 (of 358 total)

  • RE: getting row data to return as a cell

    There are a few ways to accomplish this. Here are some examples...

    Example 1

    Declare @Table Table (id int, animals varchar(10))

    Insert Into @Table

    Select 10, 'cow' UNION ALL

    Select 10, 'chicken' UNION ALL

    Select...

  • RE: User running a job without SSMS?

    I have used trigger files for things like this in the past. Not sure if it is the best way, but it works. You can run your job (say...

  • RE: SQL 2008 lock manager gui

    It doesnt look like that feature got carried forward. I ran a trace with profiler to get the script and the same script seems to work in 2008. ...

  • RE: dbcc shrinkfile system views

    If you want to see the reserved disk space and the unallocated space you can use the sp_spaceused stored procedure.

  • RE: temp db backup

    You cannot backup the tempdb. It gets recreated every time SQL Server is restarted.

  • RE: What is the substitute for sp_helptask in sql server 2008 ?

    You can use the following stored procedures in the msdb database to get job information.

    sp_help_job

    sp_help_jobhistory

    sp_help_jobschedule

    sp_help_jobstep

  • RE: Sql Agent Job

    If the job runs over the start time, it will miss the schedule for the next day. I have seen this behavior for transaction log backups. Let's say you...

  • RE: Are the posted questions getting worse?

    Florian Reischl (5/6/2009)


    Bob Hovious (5/6/2009)


    Thankfully, I have yet to see a column named [NULL].

    Sorry, forgot: How often did you have a column "Group" or even "From" (and "To") 😀

    Yep. ...

  • RE: where is Stored Procedure Body or text stored in metadata

    You can find the text in the syscomments table. You can search for your specific table name in the text column.

    Select *

    from sysobjects A

    JOIN syscomments B

    On...

  • RE: When to think about Disaster Recovery?

    vidhyasudha (5/6/2009)


    Does this mean I need to create replication before starting the development?

    Ta

    Not necessarily. You just need to put whatever measures in place that make you feel comfortable...

  • RE: Which query is scanning that index?

    Jack is right. I played around with this a little last night. The xquery is just parsing the xml plan looking for an index scan. You probably...

  • RE: Primary keys and indexes

    By default SQL Server creates a clustered index on the primary key.

  • RE: Accessing tables

    If your database is on the same server, you just need to specify the database name in the query. The syntax below assumes that the table is in the...

  • RE: Divide in SQL Help

    You have to convert one of the columns... Try this.

    select ceiling(5/2.0)

    You may need to use round depending on your requirements. For example, ceiling will always round up.

    select Ceiling(2.1), ROUND(2.1,0)

  • RE: List all tables for a datasbase with row counts AND owner name

    Ok. I played around with it a little more. Try this one.

    Select DISTINCT b.rowcnt, A.*

    FROM INFORMATION_SCHEMA.TABLES A

    JOIN sysindexes B on OBJECT_ID(TABLE_SCHEMA + '.' + TABLE_NAME) = B.id

Viewing 15 posts - 76 through 90 (of 358 total)