Viewing 15 posts - 196 through 210 (of 717 total)
Use the standard port? 😉
Here is a recent Microsoft CSS blog about using non-standard ports, they don't recommend it: http://blogs.msdn.com/b/psssql/archive/2011/03/17/to-1433-or-not-to-1433-that-is-the-question.aspx
March 21, 2011 at 8:33 pm
WasimAli (3/21/2011)
1.) The Same query with the same user connection, works fine in SQL Query Analyzer.
2.) Also, to re-state again, the same query works fine from SSMS...
March 21, 2011 at 8:30 pm
WasimAli (3/21/2011)
-- DEV ServerUse abc
go
select * from Table1
I get the below
Msg 208, Level 16, State 1, Line 1
Invalid object name 'account'.
Since you are selecting on Table1 and getting an error...
March 21, 2011 at 8:27 pm
I tested and it works with the sample table I created, but since you didn't provide DDL or an actual data sample I can't test with what you have.
For better,...
March 21, 2011 at 8:21 pm
Assuming that Jeffrey is correct and that the id field is a character field, and it only has numbers in it you could try this:
select max(cast(id as INTEGER)) from phys
You...
March 21, 2011 at 8:05 pm
If everything you want to remove always ends with a comma you could use something like this:
SELECT
[Date],
LTRIM(SUBSTRING([Date], CHARINDEX(',', [Date]) + 1, DATALENGTH([Date]))) AS DateNoComma
FROM...
March 21, 2011 at 8:02 pm
Did you notice that the division increased the scale leaving you with three trailing zeros?
If you look at the link in the explanation you will see that division uses a...
March 21, 2011 at 4:46 pm
Marios Philippopoulos (3/19/2011)
In the Disk Usage by Top Tables report I see a few tables named with application-specific names, such as "dbo.#CustomerData", whereas for the...
March 21, 2011 at 9:35 am
Did you figure this out?
If not here is a link that should get you going: http://www.oracle-base.com/articles/misc/UsingRefCursorsToReturnRecordsets.php
You gotta love Oracle... 😉
March 21, 2011 at 12:37 am
Lynn,
I think what you are looking for is the BEGIN ... EXCEPTION ... END; block in Oracle.
There is some good information and examples here: http://www.techonthenet.com/oracle/exceptions/when_others.php
And here is a link to...
March 21, 2011 at 12:19 am
The problem isn't your GROUP BY it is that you haven't referenced the MaximumLevels CTE in your UPDATE query.
Give this a try:
with CoursePrereqs (
CourseName,
...
March 20, 2011 at 11:05 pm
Thanks for the question, it really does show why we need to pay close attention to the data types we use.
March 20, 2011 at 10:46 pm
There are a couple ways to do what you are looking for, here is one:
UPDATE S
SET
Address1 = A.Address1,
Address2 = A.Address2
FROM Sales S
INNER JOIN Addresses...
March 20, 2011 at 10:38 pm
Yin Halen (3/20/2011)
We are trying to keep costs down with enterprise licensing and only using 1 processor.
If you are worried about having enough CPU power while keeping licensing costs down...
March 20, 2011 at 10:35 pm
Viewing 15 posts - 196 through 210 (of 717 total)