Viewing 15 posts - 196 through 210 (of 8,416 total)
L' Eomot Inversé (9/23/2012)
September 23, 2012 at 12:00 pm
Lynn Pettis (9/23/2012)
September 23, 2012 at 10:42 am
PiMané (9/21/2012)
Being a "generic" software spread across the country we can have databases with customers mainly from one state (where...
September 23, 2012 at 10:37 am
Lynn Pettis (9/23/2012)
Once again, you post code that won't even parse. Your CREATE TABLE isn't valid:
All that is missing in a final close-parenthesis for the CREATE TABLE.
September 23, 2012 at 10:06 am
If you can live without the parent_column_id and is_system_named columns, the following will work:
SELECT name, object_id, principal_id, schema_id, parent_object_id,
type, type_desc, create_date, modify_date,
is_ms_shipped, is_published, is_schema_published,
object_definition(object_id) AS definition
FROM tempdb.sys.objects
WHERE type = 'D...
September 23, 2012 at 9:43 am
siggemannen (9/17/2012)
In SQL2012, If i create a temporary table with a column default, it isn't reflected in sys.default_constraints table anymore
Yes it is a bug in the definition of sys.default_constraints:
CREATE VIEW...
September 23, 2012 at 9:36 am
I think the answer P.D. is after is [font="Courier New"]SELECT COUNT(*)[/font] It's not the shortest, though.
edit: Sorry I see 'mickyT' already mentioned this.
September 23, 2012 at 9:07 am
Dave Ballantyne (9/23/2012)
http://blog.sqlauthority.com/2012/09/20/sql-server-2-t-sql-puzzles-and-win-usd-50-worth-amazon-gift-card-and-25-other-prizes/%5B/url%5DQuick, $50 for the correct answer 🙂
Sigh. I suggest these for part 2:
SELECT COUNT(*)
SELECT DAY('')
SELECT DB_ID() -- in master database only
September 23, 2012 at 8:52 am
bitbucket-25253 (9/23/2012)
Scroll down to about the middle of the page to see the explanation.
That's just the SQL Server 2000 version of the same Books Online link to CAST and CONVERT...
September 23, 2012 at 7:42 am
This is documented in the Truncating and Rounding Results section of CAST and CONVERT in Books Online. The * means 'Result length too short to display'. This odd...
September 23, 2012 at 7:03 am
Phil Parkin (9/23/2012)
Estimated costs for different statements are comparing apples with unicorns
I'm pretty sure that my unicorn will run faster than your apple:-D
Ha, true. There again, the apple...
September 23, 2012 at 6:24 am
sidharthgs6, it is helpful to provide sample data using DDL statements as shown below:
CREATE TABLE #Example
(
Product character(3) PRIMARY KEY,
...
September 23, 2012 at 6:02 am
EdA ROC (9/22/2012)
A little background about me and my situation. We have a 3rd party ERP system, SQL Server based. My primary job is to use Access to develop reports.
I'm...
September 23, 2012 at 5:58 am
CELKO (9/22/2012)
Does that help?
It might; but it would have been more likely to if you had read this before replying:
EdA ROC (9/22/2012)
September 23, 2012 at 5:43 am
PiMané (9/19/2012)
September 23, 2012 at 3:15 am
Viewing 15 posts - 196 through 210 (of 8,416 total)