Viewing 15 posts - 3,316 through 3,330 (of 3,396 total)
is there a reason you need to? Just write 3 different queries, one for each table. Or have 3 dataflows in SSIS.
March 29, 2012 at 5:53 pm
add an incrementing identity column to the destination table before running inserts?
March 29, 2012 at 5:51 pm
Are you using SQL Server Security or Integrated Security?
What happens if you log into the computer as local admin? If that works, its most likely a security issue in...
March 14, 2012 at 5:22 pm
Okay, sorry about all the noise. 😀
Problem solved!! Really this time! The map ROCKS!
Here's the update query that worked to fix/populate the Geography data type...
-- you can use...
March 10, 2012 at 12:11 am
Mystery SOLVED!!! Here's the cheat code I found:
DECLARE @g geography = geography::STGeomFromText('POINT(' + CAST(@lng as Varchar(50)) + ' ' + CAST(@lat as varchar(50)) + ')', 4326)
which is here:...
March 9, 2012 at 11:27 pm
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
Viewing 15 posts - 3,316 through 3,330 (of 3,396 total)