Viewing 15 posts - 76 through 90 (of 358 total)
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...
May 8, 2009 at 2:55 pm
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...
May 8, 2009 at 2:05 pm
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. ...
May 7, 2009 at 8:57 pm
If you want to see the reserved disk space and the unallocated space you can use the sp_spaceused stored procedure.
May 7, 2009 at 7:39 pm
You cannot backup the tempdb. It gets recreated every time SQL Server is restarted.
May 7, 2009 at 11:51 am
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
May 6, 2009 at 7:20 pm
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...
May 6, 2009 at 6:00 pm
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. ...
May 6, 2009 at 1:25 pm
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...
May 6, 2009 at 12:18 pm
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...
May 6, 2009 at 7:42 am
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...
May 6, 2009 at 7:26 am
By default SQL Server creates a clustered index on the primary key.
May 6, 2009 at 7:22 am
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...
May 6, 2009 at 7:11 am
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)
May 5, 2009 at 11:47 am
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
May 5, 2009 at 9:39 am
Viewing 15 posts - 76 through 90 (of 358 total)