Viewing 15 posts - 16 through 30 (of 105 total)
Hopelessly inefficient but I've always had a soft spot for this as a quirky solution to the problem:
SELECT [Month] = DATENAME(mm,SomeDateTime)
...
November 15, 2010 at 9:44 am
I don't believe that is Joe's stance. Note also he has rewritten the UDF as a single statement but not used inline function syntax, so the benefit of the rewrite...
October 26, 2010 at 9:20 am
The sp retrieves nothing; its scope does not extend beyond the database. Think of it like the interface of an object, where the database is the object and the sp...
October 26, 2010 at 9:10 am
I'll confess that I can't just say "oh, do x, y and z" when it comes to client side coding but I can usually muddle through when I need to.
You...
October 26, 2010 at 5:52 am
In terms of comparing the two, easiest method is to isolate the SQL within each function and test the two side by side (by this I mean take the guts...
October 26, 2010 at 5:46 am
This can be done in SQL, but note that the result is no longer a number. You would be best served doing this in your presentation layer. To return a...
October 25, 2010 at 4:15 am
Invaluable tip re. last 10 posts - wish it was expanded by default!
I too have written things like this, and I would not suggest that it is wrong regardless of...
October 22, 2010 at 6:36 am
I hope you understand I am attempting to guide you towards better practice and am not trolling. After that you can take what I say on board or disregard.
The fact...
October 22, 2010 at 5:25 am
rootfixxxer (10/22/2010)
I need this, because it's necessary...
<snip>i can set the name of the columns in the application that will use it, but if i set everything in the sp i...
October 22, 2010 at 4:32 am
Only with dynamic SQL. Why? Because this is something SQL is not designed to do. Why? Because it shouldn't do this.
A stored procedure has a contract with the consumers of...
October 22, 2010 at 3:53 am
I mean reinstall from the operating system upwards. I have just been stung too many times when I have installed then uninstalled then upgraded etc. etc.. I like to start...
October 21, 2010 at 7:21 am
A named instance is not that big a hassle - why do you think it is?
If you are determined to have only a single instance, this is a dedicated dev...
October 21, 2010 at 5:50 am
Yup. You are running SSMS 2008 R2 client tools but connecting to a SQL Server 2005 instance.
So really we are back to the advice in my first post 🙂
October 21, 2010 at 5:17 am
It can't get any larger than the disk array(s) it is placed on.
October 21, 2010 at 5:12 am
In SSMS click Help -> About and post the Version for Microsoft SQL Server Management Studio.
I suspect you are using SSMS 2008 R2 but are connecting to a SQL Server...
October 21, 2010 at 3:49 am
Viewing 15 posts - 16 through 30 (of 105 total)