Viewing 15 posts - 3,406 through 3,420 (of 3,482 total)
use SSIS or bcp. If you play with SSIS at all, you can preview the contents of the text file before running the import.
March 9, 2012 at 6:10 pm
I can get the individual Longitude and Latitude values for the addresses in my table using this SQL:
UPDATE h
SET h.hLongitude = pa.Longitude,
h.hLatitude = pa.Latitude
FROM House h
CROSS APPLY ProcessAddress(...
March 9, 2012 at 4:11 pm
sandeep4testing (3/8/2012)
I'm trying to adding the primarey key on table column. table having 7 numbers of rows,
Any one can tell me how to primarey key on table.
EX:
create table index1...
March 8, 2012 at 11:04 pm
Just for fun, I'll post the create table and insert statements that I used to figure this out... no doubt I should have done more (to see how slow the...
March 8, 2012 at 10:46 pm
Okay, got the new one to work too... took a little while, so maybe I learned something in the process... (To test on larger datasets???)
ALTER PROCEDURE [dbo].[uspNormalizeData3]
AS
-- Jeff Moden's new...
March 8, 2012 at 9:38 pm
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
Viewing 15 posts - 3,406 through 3,420 (of 3,482 total)