Viewing 15 posts - 61 through 75 (of 121 total)
I had a similar requirement, and FTS was the way to go. Only way the performance would get close to being reasonable. A LIKE with % on both...
October 26, 2012 at 12:54 pm
I have seen it at one of the Big 3. And I actually agreed with why they did it. They had so many disparate systems that you could...
October 25, 2012 at 1:00 pm
I would also take into consideration what is accessing the data. Entity Framework in .NET positively hates compound primary keys when generating POCO classes. Therefore, by default have...
October 25, 2012 at 10:19 am
boehnc (10/25/2012)
Table: tbl.transactions T
Fields: T.visitid, T.diagnosiscode
It looks like this:
visitid, diagnosiscode
1111,34.0
1111,68.0
1111,34.2
1112,34.3
1112,45.0
1112,23.4
I need to identify the individuals that have CHF or pneumonia for each visitID. The...
October 25, 2012 at 10:12 am
PiMané (10/25/2012)
I was trying to get a "rule" for table naming but it's kind of hard to do it since every case is a casa...
You can have a table Customers...
October 25, 2012 at 10:07 am
selvakumar.sms (10/25/2012)
I have ON INSERT and UPDATE trigger for my table,if i update any column or inserting any rows in SSMS, trigger is working well, but i...
October 25, 2012 at 8:48 am
baabhu (10/19/2012)
I have a SQL job that deletes 10,000 records in batches of 1000 rows for every 4 minutes.
There is another job that updates the record for the...
October 19, 2012 at 10:33 am
jefferyweeks 30481 (10/18/2012)
I am new to SQL Server management and I created a BIDS package that accesses QuickBooks and pulls data into Excel. The package runs fine in...
October 19, 2012 at 10:17 am
Luis Cazares (10/18/2012)
Eugene Elutin
I don't think that Luis example will run (WHERE IsSuperUser AND...)
I forgot to complete the condition, it's corrected now.
kapil_kk
October 18, 2012 at 1:14 pm
Sergei Zarembo (10/12/2012)
SELECT AVG(load_factor*1.0) as avg_load_factor
FROM sys.dm_os_schedulers
WHERE scheduler_id < 255
..as some indication of work load on the server?
I currently se...
October 12, 2012 at 1:03 pm
For older environments or other than T-SQL flavor, more generically would be something like (untested):
SELECT c.Accountno,C.Company,C.Contact,C.Recid,H.lastuser,H.lastdate
FROM contact C
LEFT JOIN history h ON C.accountno=h.accountno
LEFT JOIN (SELECT accountno,MAX(lastdate) AS lastdate
...
October 12, 2012 at 11:45 am
If it is indeed SQL Server... I would think a long look at the MERGE INSERT/UPDATE command would be beneficial.
Very handy 😀
October 9, 2012 at 10:26 am
There are so many WTF's here. First, the argument where you can only access through views has been thoroughly debated and debunked, it shouldn't be held to high here,...
October 2, 2012 at 10:04 am
FYI:
The query plans in 2000, 2005 and 2008R2 all appear to be the same regardless if I use IN (x,y,z) OR use or X or Y or Z.
Using UNIONs...
June 29, 2012 at 11:20 am
Suresh Kumar-284278 (6/21/2012)
I am currently working for retail client and primarily on SQL 2008 DB designs though their applications are spread across 3 different DBs (SQL Server 2008, DB2, ORACLE)
I...
June 21, 2012 at 10:16 am
Viewing 15 posts - 61 through 75 (of 121 total)