Viewing 15 posts - 121 through 135 (of 153 total)
Yes, I'm familiar with PLCs. I used to work for a company that wrote custom data collection and reporting systems for manufacturers.
January 14, 2008 at 8:03 pm
I'd start out by looking up the JOIN, GROUP BY and HAVING clauses in Books Online.
January 14, 2008 at 8:01 pm
Does this solution take into account that multiple data points could be collected in an alarm state? Does it also take into account that a machine can fall into and...
January 14, 2008 at 5:26 am
Maybe Something like...
Declare @MatchLevel int
Set @MatchLevel = 1
Select ColumnCount =
Case when 1ML <= @MatchLevel Then 1 Else 0 End
+ Case when 2ML <= @MatchLevel Then 1 Else 0 End
+...
January 13, 2008 at 6:20 pm
You can perform cross database joins/unions by fully qualifying the table names like
Select a,b,c
From database.schema.table
union all
Select d, e, f
From database.schema.table
etc...
January 13, 2008 at 6:01 pm
I hope the set based purists don't yell at me... 😀
I'd create a temp table populated with the machines and date ranges I want to process. I'd also create a...
January 13, 2008 at 11:55 am
Is it a typo, or are you really intending on selecting the same table into itself?
I've noticed this on occasion as well (something runs well/as expected in query analyzer, but...
January 9, 2008 at 8:48 pm
I've been developing VB apps since around '98, and we have never really used ADOs built in record creating/editing capabilities. If you can, a better route is to create an...
January 9, 2008 at 8:32 pm
Look up the SET ANSI_WARNINGS and SET ANSI_NULLS statements in the Books Online, and let us know what you find...
January 9, 2008 at 8:27 pm
I see another potential problem here...what is the datatype of your column in the table? You are declaring your variables as type varchar, but if your columns are a datetime,...
January 5, 2008 at 8:29 pm
You haven't recently turned on transactional replication have you? That may cause your log size to increase. Also, Index reorganization and rebuilding (depending on your recovery model) are fully logged,...
January 2, 2008 at 1:09 pm
If you're using SQL 2005, then SSMS IS Query analyzer as well... They are not 2 seperate tools like they were in 2000.
January 2, 2008 at 11:08 am
Another thought here...
you can "cast" a column to a particular collation at select time.
For Example
Select distinct LastName COLLATE SQL_Latin1_General_CP1_CI_AS
From testtable
If you had a case sensitive column, you can...
January 2, 2008 at 11:04 am
A very warm New Year to you too (and hopefully not because of global warming 🙂
Are you asking to do something like this?
Select * from
table1 join table2 on whatever
Where...
January 2, 2008 at 10:54 am
OK. Well, sometimes just writing something out loud helps you problem solve.
I decided to do a schema compare to find a list of indexes in the main database that...
January 2, 2008 at 8:04 am
Viewing 15 posts - 121 through 135 (of 153 total)