Viewing 15 posts - 4,756 through 4,770 (of 6,486 total)
Do you care which of the three doesn't match? If not - you could use JUST the "matches" part below
;with JoinMath as (
Select...
February 13, 2008 at 7:56 am
Of course - the SQLCMD utility MIGHT do what you want....
February 13, 2008 at 7:32 am
xp_cmdshell doesn't work for those kinds of things. It's designed to run/process non-interactive commands from the OS. It's not going to spawn windows, open up documents for you...
February 13, 2008 at 7:27 am
drop can't take a dynamic parameter.
Use
Exec sp_droplogin @name
or
Exec sp_dropUser @name
Instead
February 12, 2008 at 7:58 pm
Michael Valentine Jones (2/12/2008)
Ordering during an INSERT may or may not happen the way you hope in any version...
February 12, 2008 at 6:27 pm
Rewrite # 2
SELECT DepartmentID, DepartmentName, AgencyName, ShortName, CreatedOn, Status, UpdatedOn, UpdatedBy,
CASE WHEN delOK.delcount > 1 THEN 'N' ELSE 'Y'...
February 12, 2008 at 4:58 pm
True - but I cust those chances in half with concatenating two of them together. Still not entirely gone I suppose, but probably good enough for government work:)
Of course...
February 12, 2008 at 4:54 pm
Set up an ODBC connection (system DSN) to the FoxPro files. Once you have it you should be able to use that with the Native client's OLE provider for...
February 12, 2008 at 4:03 pm
Completely agreed with above. SQLCLR does NOT give you FULL access to the framework. It's a specific subset.
February 12, 2008 at 3:56 pm
Well - it looks to me that you have 2 correlated sub-queries, and one is substantially more complicated than it needs to be (gut-feeling - not proof).
How about this as...
February 12, 2008 at 3:51 pm
Hey - it's easy when you sit back and watch the fur fly - sometimes a new answer just pops into your head....
Of course - it's swatting a fly with...
February 12, 2008 at 3:26 pm
Why not just use the replace function?
update mytable
set streetaddress=replace(streetaddress,'McDonald','MacDonald')
February 12, 2008 at 2:47 pm
Roy Ernest (2/12/2008)
Ah Yes Matt, you are right. Thats what happens when you start typing the query in without looking at it carefully:hehe:. My bad..
Hey - I WROTE the T-shirt...
February 12, 2008 at 2:36 pm
Of course - why generate each digit separately, when you get get them all at once?
Should you need a few million (or in my example, 1 million) at a time:
...
February 12, 2008 at 2:32 pm
Adam Haines (2/12/2008)
You could also union all the query results together like this:
...except you don't get the results displayed in the way the OP requested the data....
February 12, 2008 at 2:10 pm
Viewing 15 posts - 4,756 through 4,770 (of 6,486 total)