Viewing 15 posts - 20,026 through 20,040 (of 22,213 total)
It depends on the context that it's running under. If you're running it in a query window, it probably will return NULL.
Try this:
CREATE PROCEDURE ProcName
AS
SELECT OBJECT_NAME(@@PROCID);
GO
EXEC [ProcName];
You should see 'ProcName'...
July 7, 2008 at 1:08 pm
Thanks for reminding me. That helped.
🙁
Crap! That was seven years ago.
July 7, 2008 at 12:13 pm
Like everyone else, I'd suggest starting small. The best way I found to convince someone of the need to normalize was to find data that was messed up and by...
July 7, 2008 at 11:25 am
I got that old feeling last year when Joey Ramone died... Now it's starting to feel like a conspiracy. I wasn't really a fan of Aspirin, but the others... This...
July 7, 2008 at 11:21 am
I've been very happy with ER/Studio, but we mainly use it for documentation. All the management stuff that comes with it haven't worked out for us.
July 7, 2008 at 10:33 am
Actually no, it's not that weird. The optimizer and the query engine are pretty amazing pieces of engineering. They're able to identify that you only need a single row returned...
July 7, 2008 at 9:03 am
The key problem is, desiging, building and deploying software is still not an act of engineering like building a car, a toaster or a bridge. As Steve pointed out in...
July 7, 2008 at 8:46 am
I outlined a way to hook stuff out of the cached execution plans over here. It's not magic or anything, but you're going to have a tough time assessing what's...
July 7, 2008 at 7:34 am
OK. I'm stumped. I tried mucking with the indexes and loading the data into a temp table. The temp table fixed the query time on the sort, but it took...
July 7, 2008 at 7:25 am
You'd have to show sample code and structure (and preferably some sample data) in order to get really detailed help.
Read this:
http://www.sqlservercentral.com/articles/Best+Practices/61537/%5B/url%5D
July 7, 2008 at 6:50 am
I'm doing about 35 miles each way here in the US. The trick I've found that works is to come in early and leave early. Avoid the common commute times....
July 7, 2008 at 6:43 am
It really sounds like you're trying to generate reports.
I'd suggest one of two options, first, use a reporting tool, like the Reporting Services tool that comes with SQL Server or...
July 7, 2008 at 6:36 am
Personally, I'd go with option 2. That way, you don't have to worry about spelling and, when another state, "suspended" or something, comes along, you're ready and won't have to...
July 7, 2008 at 6:26 am
We get these debates where I work a lot. For some reason, many of my fellow DBA's believe that every known bug has to be addressed prior to release or...
July 7, 2008 at 6:13 am
Viewing 15 posts - 20,026 through 20,040 (of 22,213 total)