Viewing 15 posts - 6,676 through 6,690 (of 7,608 total)
Or you can use EXISTS:
SELECT
sno, sname, address,
CASE
WHEN EXISTS(SELECT 1 FROM dbo.StudentDrillEnrolled sde WHERE sde.sno...
March 5, 2013 at 4:09 pm
Check out OBJECT_DEFINITION(). That returns a single nvarchar(MAX) that is the whole procedure, rather than 255 characters per row (artificial "line"?) that sp_helptext seems to do.
I find it useful...
March 5, 2013 at 3:54 pm
In SQL 2008, if you want a specific user to be able to execute any stored proc (existing ones and newly created ones), you can do this:
USE <your_db_name>
GRANT EXECUTE TO...
March 5, 2013 at 3:43 pm
Lynn Pettis (3/5/2013)
ScottPletcher (3/5/2013)
Lynn Pettis (3/5/2013)
ScottPletcher (3/5/2013)
Jeff Moden (3/4/2013)
March 5, 2013 at 8:00 am
There's no physical db differences from Enterprise to Std, so if the SQL version numbers are the same, you should be able to restore all dbs, including system dbs, from...
March 5, 2013 at 7:56 am
Lynn Pettis (3/5/2013)
ScottPletcher (3/5/2013)
Jeff Moden (3/4/2013)
I was...
March 5, 2013 at 7:39 am
Jeff Moden (3/4/2013)
I was just curious as...
March 5, 2013 at 7:25 am
GilaMonster (3/4/2013)
ScottPletcher (3/4/2013)
March 4, 2013 at 5:16 pm
Jeff Moden (3/4/2013)
I'm not so sure why you insist on using codes for literal dates, but I prefer not to.
Where in the world did I suggest using a format code...
March 4, 2013 at 5:07 pm
Uniqueness should not be the primary consideration for a clus key. Uniqueness should be a factor, but it's not the most important factor. The proper clus key depends...
March 4, 2013 at 5:05 pm
GilaMonster (3/4/2013)
ScottPletcher (3/4/2013)
GilaMonster (3/4/2013)
dembones79 (3/4/2013)
Should the region and district columns be included in the unique clustered index of the view?
Bear in mind that a clustered index implicitly includes all...
March 4, 2013 at 4:26 pm
GilaMonster (3/4/2013)
ScottPletcher (3/4/2013)
The ALTER command to try to change an existing file to a smaller size gives you an error on SQL 2005.
That's when you're trying to reduce the initial...
March 4, 2013 at 4:04 pm
GilaMonster (3/4/2013)
dembones79 (3/4/2013)
Should the region and district columns be included in the unique clustered index of the view?
Bear in mind that a clustered index implicitly includes all the columns...
March 4, 2013 at 4:00 pm
Ok.
At any rate, typically you'll want to cluster the table on the most common queries that can't be easily satisified by a nonclustered index you need anyway.
For example, if (nearly)...
March 4, 2013 at 3:03 pm
You're going to exactly the same version as originally, right?
I think it's easiest to just restore all the dbs (other than model) after the switch.
There are so many things in...
March 4, 2013 at 12:52 pm
Viewing 15 posts - 6,676 through 6,690 (of 7,608 total)