Viewing 15 posts - 11,476 through 11,490 (of 13,460 total)
for varchar strings, the = comparison operator strips out ending whitespace.
that is different fromt eh LIKE operator...if you do LIKE 'phrase %', that would not find the item because of...
Lowell
March 4, 2009 at 11:17 am
compatibility level just decides which syntax rules will be applied against any queries hitting the database...it does not change the behind-the-scenes way the database is stored/saved.
that's why you can switch...
Lowell
March 4, 2009 at 11:12 am
all minor syntax stuff; i found three things:
the higher case statement for a.staff said case a.staff andf then had WHEN a.staff...; should be one syntax or the other...
second...
Lowell
March 4, 2009 at 8:22 am
it'd be something like this:
--kick everyone off no matter what!
ALTER DATABASE [YOURDATABASENAME] SET SINGLE_USER WITH ROLLBACK IMMEDIATE
GO
--make sure it's really just for me
ALTER DATABASE [YOURDATABASENAME] SET SINGLE_USER
GO
--do...
Lowell
March 4, 2009 at 7:16 am
your question reads like it came straight from a problem in a textbook...telling us what the required results are...are we doing your homework?
what have you tried so far?
I can tell...
Lowell
March 4, 2009 at 7:07 am
i'd just set the database to single user mode, do my work, and then change it back to multi user;
no fiddling with groups, and you'll know you are the only...
Lowell
March 3, 2009 at 6:19 pm
if you use GROUP BY, then every column that is not using a SUM() or AVG() or other grouping operation MUST be in the GROUP BY Statement...so your query would...
Lowell
March 3, 2009 at 3:44 pm
you must create the tables with the PK's and FK's...otherwise what you stated....inserting 5 into the child table without checking that the 5 exists in the parent table could occur...that's...
Lowell
March 3, 2009 at 11:13 am
it depends on the locks that the update and insert will demand.
if your update is fiddling with, say, a single row of data, then the update will get a shared...
Lowell
March 3, 2009 at 11:09 am
i guess more information is needed...
nothing gets handled automatically for you as far as PK/FK's go....you might not be doing things in the right order of operation.
did you add new...
Lowell
March 3, 2009 at 8:31 am
there is a real good artical called "calculating work days"[/url] by Jeff Moden here on SQL Server Central that explains the concept and also has a function at the end...
Lowell
March 2, 2009 at 6:17 pm
can you show us the execution plan when you run the update? that will tell us exactly what the update is doing, and allow us to offer suggestions like indexes...
Lowell
March 2, 2009 at 4:34 pm
there's a script contribution that would load the default trace into a table for review:
Load All 5 Default Trace Files[/url]
maybe that will help
Lowell
March 2, 2009 at 5:04 am
there you go Jeff; Call Microsoft and tell them that the premiere RE-BAR avoidance specialist is offering to rewrite any of their 194 stored procs at the everyday low price...
Lowell
March 1, 2009 at 10:04 am
very wierd;
I have half a dozen DotNetNuke installations either locally, for friends, or on my hosted web site;
if you are in as sa or admin you should see everything;
when i...
Lowell
March 1, 2009 at 7:50 am
Viewing 15 posts - 11,476 through 11,490 (of 13,460 total)