Viewing 15 posts - 18,286 through 18,300 (of 18,926 total)
I think that my version (well Frank Kalis' version) is prettier and actually will run much faster on larger datasets... it's just a matter of understanding what's actually happening under...
March 31, 2005 at 2:32 pm
Select * from dbo.MyTable where
dateadd (d, 0, datediff(d, 0, MyDateField))
=
CAST(dateadd (d, 0, datediff(d, 0, getdate())) AS SMALLDATETIME)
March 31, 2005 at 2:05 pm
NP.. R U normalizing your tables or just doing the select?
March 31, 2005 at 9:50 am
PK, identity, indexes
SELECT O.Name AS ParentName, CASE RTRIM(O.XType)
...
March 31, 2005 at 9:48 am
Can you post the whole code snippet you execute? it's impossible to find the problem for sure with this info.
March 31, 2005 at 9:46 am
Profiler would be one way to go..
another would be to make a log table an log the activity everytime the sp that loads the report is called... that way you...
March 31, 2005 at 9:32 am
Foreign keys :
SELECT TOP 100 PERCENT PTbl.name AS PkTableName, PCol.name AS PkColName, FTbl.name AS ConstraintName, dbo.sysobjects.name AS FkTableName,
...
March 31, 2005 at 9:22 am
This will get you started again :
use my 3rd post
March 31, 2005 at 9:16 am
Delete from dbo.Quick2 Q where exists (Select * from dbo.tmt2 T where Q.num = T.Num)
Select * from dbo.Quick2
March 31, 2005 at 9:02 am
most likely you are not using the same user in asp net than in QA. And that user most likely doesn't have the necessary permission to do the restore.
March 31, 2005 at 6:57 am
Insert into TableB (Tel, name, charge1, adress)
Select tel, name, charge1, adress from dbo.YourTable where Charge1 > 0
UNION ALL
Select tel, name, charge2, adress from dbo.YourTable where Charge2 > 0
UNION ALL
Select tel,...
March 31, 2005 at 6:56 am
There's still work to be done on this but you'll get the idea :
Select USER_NAME(uid) as Owner,O.Name as TableName, C.Name as ColName, Object_name(C.cDefault) as ConstraintName, substring(Text, 2, len(Text) -...
March 30, 2005 at 1:12 pm
You don't actually need to do that, you can simply add a new column of the correct datatype and do something like this :
make sure that this statement returns...
March 30, 2005 at 12:56 pm
Viewing 15 posts - 18,286 through 18,300 (of 18,926 total)