Viewing 15 posts - 12,136 through 12,150 (of 13,461 total)
In SQL 2000, you can use a trick to order the contents of a view; In 2005, you cannot use the trick anymore, because logically, the select statement should contain...
January 31, 2008 at 7:41 am
I was in a similar thread a while back, where there were really three different measures that we discussed:
max defined rowsize of the table
the actual max rowsize of...
January 30, 2008 at 11:12 am
well, you could insert it into a table, but I'm not sure that would help much.
the report has 48 lines of header information, that may or may not be a...
January 29, 2008 at 10:36 am
Jeremy's method is better; your statement will not catch an error if a space ro multiple spaces are entered...only an empty string; Jeremy catches null, empty string, and spaces...
January 29, 2008 at 10:25 am
what you are missing is an UPDATE FROM statement.
you can say UPDATE [sometable]
from [someothertable]
where sometable.id=someothertable.id
in your case, you know where the data is...you were able to select it as...
January 28, 2008 at 9:51 am
Christopher Taylor (1/25/2008)
ObjectID: NULL - looks like this is the problem!
hr: 0x80042727
Source: ODSOLE Extended Procedure
Description:...
January 28, 2008 at 6:36 am
Phil you just made me so happy;
I had previously bookmarked http://www.simple-talk.com/prettifier/default.php,
which is fine for formatting code for some things, but not for here at SSC.
the new link you posted at...
January 25, 2008 at 9:15 am
I would have changed the process to get the data myself. your proc is what my boss calls "putting wings and wheels on a horse"...that is, using one procedure to...
January 25, 2008 at 8:40 am
if the tablename is a parameter, then you must use dynamic sql.
here's an example:
--for users who are too lazy to type "SELECT * FROM"
CREATE procedure sp_show...
January 25, 2008 at 8:24 am
since YEAR() function returns an integer, you could use where Year() > 2003 instead:
select distinct CustNumber
from dbo.InvoicesView
where CustNumber in
( select distinct CustNumber
from dbo.InvoicesView
...
January 25, 2008 at 8:07 am
ok here's a script that creates the statements to delete or truncate where appropriate, and creates the statements in Foreign Key Hierarchy Order.
now remember there are always tables you...
January 25, 2008 at 6:59 am
try this and look at the results:
SELECT *
FROM GRADSTUDENTS G
FULL OUTER JOIN TA T ON G.LOGINID = T.LOGINID
--WHERE G.LOGINID IS NULL
--WHERE T.LOGINID IS NULL
the first rows in...
January 24, 2008 at 6:36 pm
it has to do with mix mode being allowed or not. on express, it's turned off by default, but usually on for production servers.
1) Open up SQL Server Management Studio...
January 24, 2008 at 12:31 pm
when you get a problem where it say find data that is NOT [whatever]
you typically need to use a LEFT OUTER JOIN, instead of an INNER JOIN
the word "join" in...
January 24, 2008 at 12:27 pm
I'm just guessing, but it might be the size of the variable being passed; I'm also assuming your not using the fnParseRTF, since that doesnt need CLR or OLE.
add this...
January 24, 2008 at 12:12 pm
Viewing 15 posts - 12,136 through 12,150 (of 13,461 total)