Viewing 15 posts - 121 through 135 (of 162 total)
In your original post your SQL creates a stored procedure prefixed with "sp_". Make sure you're aware of the potential knock-on affect of creating sp's that are prefixed "sp_".
December 16, 2009 at 2:46 am
Try something like this and check for createddate
select * from sys.objects where type = 'U'
*Thats create_date, not createddate
December 15, 2009 at 8:35 am
Bkirk....Jeff is bang on the money there, if you choose to use that undocummented sp it'll run for EVERY database, including system ones.
Without showing us the table defs etc it's...
December 15, 2009 at 7:56 am
You may want to check out the undocummented procedure sp_msforeachdb
December 15, 2009 at 5:13 am
Ok my understanding is that the filegroups are "owned" by the database owner. And therefore you'd need to call the sp_changedbowner procedure. But wait about for one of the experts...
December 15, 2009 at 4:39 am
There is no TRIM() function in SQL Server, although you could argue there should be, for times when you need it.
You can always create your own udf which basically...
December 8, 2009 at 4:36 am
This kind of overview is easily obtained with a simple google search.
Try this
December 8, 2009 at 4:27 am
I think its due to the fact that each call to xp_cmdshell spawns a new shell process and so the second call (2nd process) can't see the variable. Which explains...
December 8, 2009 at 3:55 am
Yes, there's no [WHERE] clause?
To audit you'll need to set up an UPDATE trigger on the table in question. Check BOL for INSERTED / DELETED tables inside triggers
December 4, 2009 at 9:30 am
What about merge replication?
December 4, 2009 at 6:16 am
Ah thats a much better solution. Great technique, will remember that one for the future. Cheers
December 3, 2009 at 6:56 am
The problem here is that if you want SQL Server to display that date in this format DD MMM YYYY (20 Dec 2009) then you need to convert it to...
December 3, 2009 at 5:39 am
Recommend looking up PIVOT in BOL.
December 3, 2009 at 5:00 am
Hi, you need to convert back to datetime in order to get the correct ordering.
Something like this..
select convert(datetime,convert(varchar(11),datecolumn),103)
order by datecolumn
December 3, 2009 at 4:36 am
Viewing 15 posts - 121 through 135 (of 162 total)