Viewing 15 posts - 2,341 through 2,355 (of 2,647 total)
We recently had an issue where we created all of our log files in a location other than the default location. However, "someone" deleted the actual folder that the...
October 24, 2011 at 8:26 am
Roust_m (10/23/2011)
jared-709193 (10/19/2011)
October 24, 2011 at 7:37 am
Ok. Assuming this is a table for analysis and nothing else we don't split the table. What is zid? Is this a unique id from the main system? ...
October 20, 2011 at 2:42 pm
So this is only 27 days worth of data? Is that correct? When you say that it grows by 100000 each day, does that mean the main system takes on...
October 20, 2011 at 2:21 pm
I'm sorry, I don't understand. How many rows are currently in the table? How do these 100,000 rows get inserted into SQL currently (I assume by some of the...
October 20, 2011 at 2:01 pm
I am assuming that the goal of this is for analysis only. It is not to be used as a transactional database? If so, don't spend so much time...
October 20, 2011 at 1:48 pm
Yes, well you can't properly analyze data efficiently in multiple ways with simply a table. Mind you, the proper indexes and query optimization will speed it up... but it...
October 20, 2011 at 1:40 pm
Please go to each table and generate a CREATE script for each one and place the script here. Please also place the script for the compare/insert script.
Thanks,
Jared
October 20, 2011 at 1:34 pm
How exactly are you going to be presenting your data? For example, if you are looking year over year then you may want to partition on year, not month. ...
October 20, 2011 at 12:31 pm
Tracing is good, but in my experience you also need to set a cutoff for people. Especially if these databases are running 2 different applications and one is "supposed"...
October 20, 2011 at 12:19 pm
anthony.green (10/20/2011)
when a row is deleted it is actually marked for deletion, then the internal clean up tasks comes along...
October 20, 2011 at 12:11 pm
Awesome! FYI... I tested the CAST vs CONVERT. Use CONVERT for each one to increase performance over the CAST. So:
ROUND(CONVERT(FLOAT,ColumnName),2)
🙂
Jared
October 20, 2011 at 12:06 pm
jared-709193 (10/20/2011)
I'm sorry... Maybe you misunderstand. CAST vs CONVERT would only be for performance.Do this:
SELECT ROUND(CAST(ColumnName AS FLOAT),2) FROM Table
Thanks,
Jared
More specifically like this:
USE [EAF]
select
WSHHeatNumberID,
Grade,
Round(CAST(Carbon AS FLOAT),2) AS C,
Round(CAST(Nickel AS...
October 20, 2011 at 11:51 am
I'm sorry... Maybe you misunderstand. CAST vs CONVERT would only be for performance.
Do this:
SELECT ROUND(CAST(ColumnName AS FLOAT),2) FROM Table
Thanks,
Jared
October 20, 2011 at 11:45 am
However, my first guess is that you are trying to round a varchar. Imagine trying to do this:
SELECT ROUND('jared')
I wouldn't do ROUND until your final calculation. However, for the...
October 20, 2011 at 11:32 am
Viewing 15 posts - 2,341 through 2,355 (of 2,647 total)