Viewing 15 posts - 3,331 through 3,345 (of 3,401 total)
Just for fun (and a little learning), I made it work with your example:
SELECT lw.SomeCode, lw.Seq, lw.LWType, lw.Age,lw.Race,lw.Sex,
SUBSTRING(','+lw.Crimes+',',N+1,CHARINDEX(',',','+lw.Crimes+',',N+1)-N-1) AS Value
FROM SCRIDB.dbo.Tally t
CROSS JOIN lwNames lw
WHERE N < LEN(','+lw.Crimes+',')
...
March 8, 2012 at 2:27 pm
Create two tables with the same basic structure, one for each design. then run the same INSERT script against each one and do performance testing. The only way...
March 6, 2012 at 3:44 pm
Is there a need to shrink the file? Do you know all the ugly things that shrinkfile does to your indexing etc? Unless you absolutely must do it,...
March 5, 2012 at 4:24 pm
This was interesting... Ran this
CREATE PROC uspHouseRepairs
AS
SELECT pa.Longitude, pa.Latitude, geography::Point(pa.Longitude, pa.Latitude, 4326) As MyPoint, h.Location, h.StreetAddress, h.City, h.HState, RepairList.RepairName, RepairList.RequiresLicense, HouseRepairs.StartDate,
...
February 27, 2012 at 11:12 pm
HappyCat,
Thanks for answering, but mission failed! Your SQL ran, but nothing got updated.
It would appear that for some reason, I cannot use CROSS APPLY in an update query.... If...
February 27, 2012 at 10:16 pm
Hopefully this helps someone else...
I got Itzik Ben-Gan's book Inside MS SQL Server 2008 T-SQL Querying, and basically modified one of his SQL queries to suit my problem. ...
February 25, 2012 at 12:51 pm
Answered my own question... ("Re-search. It means 'look again', don't it?") After a few minutes of surfing, I found this: http://stackoverflow.com/questions/2120544/how-to-get-cumulative-sum, which I basically tweaked for my own...
February 19, 2012 at 11:14 pm
You could always have Reporting Services do the pivot... just drop a matrix onto your report...
February 13, 2012 at 10:35 am
I'm needing to get the most recent AP_Ex.Ap_Expt_Date for each AP_Ex.Student_ID
SELECT Max(AP_Ex.Ap_Expt_Date) As LatestDate, AP_Ex.Student_ID
FROM...
GROUP BY AP_Ex.Student_ID;
February 13, 2012 at 10:33 am
Do you really mean Modals? Or do you really mean Models? From the context, it would appear you mean "Models".
February 4, 2012 at 1:02 pm
Do you mean aside from the fact that it requires the Enterprise version of SQL Server?
December 4, 2011 at 8:57 am
Usually, when an .LDB file is still around, the Access database was not closed properly. Standard way of fixing the problem is to delete the LDB file and then...
October 30, 2011 at 10:28 pm
Maybe the best way to handle this is to put your read only tables in one or more filegroups that are separate from your read/write tables. Then you can...
October 26, 2011 at 1:05 pm
use the same password on both servers or set up impersonation.
October 18, 2011 at 10:20 am
Viewing 15 posts - 3,331 through 3,345 (of 3,401 total)