Viewing 15 posts - 31 through 45 (of 91 total)
Brewmanz... keep them coming. That was great, and exactly what we all need! Good explanation, too. I found that it was dependent upon order, but could not figure...
Todd Carrier
MCITP - Database Administrator (SQL 2008)
MCSE: Data Platform (SQL 2012)
October 15, 2008 at 3:31 pm
Same type of logic here, but almost impossible to wrap one's head around the derived table and correlated subquery.
To this day, I still have to deal with code that looks...
Todd Carrier
MCITP - Database Administrator (SQL 2008)
MCSE: Data Platform (SQL 2012)
August 21, 2008 at 3:38 pm
There are a couple of ways to skin the cat, but lately CTE's are in style.
Here I am creating a temp table for demonstration:
CREATE TABLE #TEST
(Customer_id INT,
last_name VARCHAR (25),
...
Todd Carrier
MCITP - Database Administrator (SQL 2008)
MCSE: Data Platform (SQL 2012)
August 21, 2008 at 3:11 pm
Hey there Larson,
When you say time stamp... is that column the datatype of timestamp or datetime?
Can you provide the definition of your table?
SELECT COLUMN_NAME, DATA_TYPE
FROM INFORMATION_SCHEMA.COLUMNS
...
Todd Carrier
MCITP - Database Administrator (SQL 2008)
MCSE: Data Platform (SQL 2012)
August 21, 2008 at 2:14 pm
SMPSMERS,
Did you get it worked out?
Seems to me like if you moved the ReportServer and ReportServerTemp dbs to another server, verified the account that you are connecting with, and change...
Todd Carrier
MCITP - Database Administrator (SQL 2008)
MCSE: Data Platform (SQL 2012)
July 25, 2008 at 10:17 am
And I third the suggestion!
More often than not, tune the queries. That is the first place to start, and the biggest gains can be achieved there. I've seen...
Todd Carrier
MCITP - Database Administrator (SQL 2008)
MCSE: Data Platform (SQL 2012)
July 1, 2008 at 9:28 am
Aiwa,
I am confused by the source of your data to be inserted into resultTB. You say you have 2 different tables as source, but only list TB1.
Also, is newColID...
Todd Carrier
MCITP - Database Administrator (SQL 2008)
MCSE: Data Platform (SQL 2012)
June 9, 2008 at 12:19 pm
Aha,
I am wrong in assuming COUNT (1) refers to the first column.
SELECT COUNT (25)
--or
SELECT COUNT ('something')
these both return 1, as the count of the literal expression, be it integer...
Todd Carrier
MCITP - Database Administrator (SQL 2008)
MCSE: Data Platform (SQL 2012)
June 4, 2008 at 3:34 pm
KB,
The 1 in count 1 refers to the column in the first ordinal position, 2 the second, 3 the third, etc.
Here is a good example below...
CREATE TABLE #TEST
(A...
Todd Carrier
MCITP - Database Administrator (SQL 2008)
MCSE: Data Platform (SQL 2012)
June 4, 2008 at 3:17 pm
It had been a while since I wrote the question, and I MISSED IT! The subtle but important difference between count (*) and count (columnname) is something I will...
Todd Carrier
MCITP - Database Administrator (SQL 2008)
MCSE: Data Platform (SQL 2012)
June 4, 2008 at 8:32 am
Cursor datatype, huh? Does somebody have any sample code to demonstrate? I've never used it before...
Todd Carrier
MCITP - Database Administrator (SQL 2008)
MCSE: Data Platform (SQL 2012)
May 19, 2008 at 9:19 am
JM,
The SQL 2000 install program is cluster aware... so in the install when you get to Computer Name dialog box, check the Virtual Server button (opposed to Local or Remote)...
Todd Carrier
MCITP - Database Administrator (SQL 2008)
MCSE: Data Platform (SQL 2012)
May 16, 2008 at 11:22 am
Absolutely brilliant. Thanks again. I've got a new wrench in the toolbox!
Todd Carrier
MCITP - Database Administrator (SQL 2008)
MCSE: Data Platform (SQL 2012)
May 14, 2008 at 11:39 am
Jeff,
You're the master of set based thinking. Thanks for the contributions and the recent article on the tally tables. It is starting to form in my head (as...
Todd Carrier
MCITP - Database Administrator (SQL 2008)
MCSE: Data Platform (SQL 2012)
May 14, 2008 at 8:50 am
Yup, that functionality is the same between 2000 and 2005.
You will receive a message in Enterprise manager... The filename specified is incorrect. A new log filie may be created. ...
Todd Carrier
MCITP - Database Administrator (SQL 2008)
MCSE: Data Platform (SQL 2012)
May 14, 2008 at 8:26 am
Viewing 15 posts - 31 through 45 (of 91 total)