Viewing 15 posts - 6,856 through 6,870 (of 7,636 total)
MsSqlSystemResource is a hidden system database that is only accessible through the pre-defined objects in the "sys" schema, supplied by Microsoft. It is not intended to be accessed directly...
May 26, 2008 at 3:52 pm
Alternatively, you could use dynamic SQL to pre-generate a seperate function for each table that you want this function to apply to.
May 26, 2008 at 3:35 pm
we still don't know what you are trying to do.
May 26, 2008 at 12:24 pm
You need to use dynamic SQL if you want to treat the tablename as a variable.
However, you cannot use dynamic SQL in a user-defined function.
You'll have to use another approach.
May 26, 2008 at 12:21 pm
jlp3630 (5/26/2008)
Is using ON DELETE CASCADE always preferred versus creating stored procedures to perform the same functionality?
Definitely not. In fact I would say that it is more the reverse:...
May 26, 2008 at 12:03 pm
If on the other hand, you are already committed to a DW approach, then I would say that your original idea is on the right track. I would simply...
May 26, 2008 at 10:51 am
I agree with Jeff, and just to add to it: From a relational design standpoint, this is better implemented as a PrimaryEmailID attribute (column) of the Employee table where...
May 26, 2008 at 10:28 am
Heh. I remember the first time that I saw it. A co-worker called me over to his desk asked me what I thought it meant. I looked...
May 26, 2008 at 10:06 am
Please post the sql code from the stored procedures and the XML qeury plans for your DEV and production environments.
May 25, 2008 at 11:43 am
This trigger text should be able to extract it for any Server-level trigger:
select
CAST(eventdata().query('/EVENT_INSTANCE/DatabaseName[1]/text()') as NVarchar(128))
May 24, 2008 at 10:01 pm
OK, well this is ugly as sin, but it will work:
Select
Case When Min(substring(COLUM_NAME, 1, 1))
= Max(substring(COLUM_NAME, 1, 1))
Then Min(substring(COLUM_NAME, 1, 1))
Else '' END
+Case When...
May 24, 2008 at 9:29 pm
Viewing 15 posts - 6,856 through 6,870 (of 7,636 total)